activex and cpu eating
Posted: 18 Sep 2006 10:53
in our application we use 4 small activex windows (116x85) to show 4 different mpg2 ts multicast streams sent in 116x85 pixels. We did this before by using 4 VLC instances without activex and it worked very well without any problems.
Now with activex this workes well for a few minutes. The application takes about 3-7% of cpu time. After about 15 minutes cpu usage increases suddenly to 30-40% and returns after about 1 minute to 15-20%. A few minutes later the same happens, but increasing to 60-60% and returning to 40%. After 30-60 minutes the application hangs and tells there wqas a problem and the app has to be terminated and wheather the report should be sent to micosoft.
Another thing what happens at the same time is that the application uses at the beginning about 40MB of memory (this is caused by our app, not by activex and it is ok). Immediatly after starting the memory usage increases within 5 minutes until a value of about 130-160 MB, then it remains there and does not increase any more.
Both things only happen, when we the multicast streams are really shown. When there is no stream sent, the memory usage does not increase and also the cpu usage does not increase.
Then we tried to stop showing the 4 streams. The cpu usage decreased at once to a low level. But when starting the streams again, cpu usage increases at once to 80-100%.
We use WIN XP prof SP2, VLC085
AMD Sempron 2.8, 500 MB RAM
Is there anyone who can help us with this problem? Thanks in advance.
Uli
Now with activex this workes well for a few minutes. The application takes about 3-7% of cpu time. After about 15 minutes cpu usage increases suddenly to 30-40% and returns after about 1 minute to 15-20%. A few minutes later the same happens, but increasing to 60-60% and returning to 40%. After 30-60 minutes the application hangs and tells there wqas a problem and the app has to be terminated and wheather the report should be sent to micosoft.
Another thing what happens at the same time is that the application uses at the beginning about 40MB of memory (this is caused by our app, not by activex and it is ok). Immediatly after starting the memory usage increases within 5 minutes until a value of about 130-160 MB, then it remains there and does not increase any more.
Both things only happen, when we the multicast streams are really shown. When there is no stream sent, the memory usage does not increase and also the cpu usage does not increase.
Then we tried to stop showing the 4 streams. The cpu usage decreased at once to a low level. But when starting the streams again, cpu usage increases at once to 80-100%.
We use WIN XP prof SP2, VLC085
AMD Sempron 2.8, 500 MB RAM
Is there anyone who can help us with this problem? Thanks in advance.
Uli