| View previous topic :: View next topic |
| Author |
Message |
qlawson Member
Joined: 04 Nov 2005 Posts: 7
|
Posted: Fri Nov 04, 2005 9:53 pm Post subject: Memory leak in VB6 with PowerCDG Control |
|
|
I have the PowerCDG Control software and seem to be encountering an error with a memory leak. When I load a new file with the loadfile() method, more memory is assigned without freeing the old memory from the previous file. So, after playing several karaoke songs I run out of memory. I have tried using the close method and the same problem still occurs.
Any suggestions? |
|
| Back to top |
|
 |
admin Admin

Joined: 29 Nov 2002 Posts: 2401
|
|
| Back to top |
|
 |
qlawson Member
Joined: 04 Nov 2005 Posts: 7
|
Posted: Mon Nov 07, 2005 10:56 am Post subject: |
|
|
| I use WMA and CDG files. |
|
| Back to top |
|
 |
admin Admin

Joined: 29 Nov 2002 Posts: 2401
|
Posted: Tue Nov 08, 2005 3:59 am Post subject: |
|
|
Is the memory leak unique for WMA files or does it happen with MP3 files as well? Please give it a try and this information would help us to find the problem. _________________ Piotr
info@powerkaraoke.com
PowerKaraoke
www.powerkaraoke.com |
|
| Back to top |
|
 |
qlawson Member
Joined: 04 Nov 2005 Posts: 7
|
Posted: Thu Nov 10, 2005 9:25 pm Post subject: |
|
|
| I did attempt to use an MP3 instead of a WMA and still encountered the same problem. |
|
| Back to top |
|
 |
admin Admin

Joined: 29 Nov 2002 Posts: 2401
|
Posted: Fri Nov 11, 2005 12:39 pm Post subject: |
|
|
Does it happen under Windows XP or some other OS? I will look into this early next week. _________________ Piotr
info@powerkaraoke.com
PowerKaraoke
www.powerkaraoke.com |
|
| Back to top |
|
 |
qlawson Member
Joined: 04 Nov 2005 Posts: 7
|
Posted: Fri Nov 11, 2005 3:18 pm Post subject: |
|
|
| Yes, this occurs in Windows XP (I have not tried Windows 2000). |
|
| Back to top |
|
 |
qlawson Member
Joined: 04 Nov 2005 Posts: 7
|
Posted: Thu Nov 17, 2005 3:09 pm Post subject: |
|
|
| Any ideas so far? |
|
| Back to top |
|
 |
admin Admin

Joined: 29 Nov 2002 Posts: 2401
|
Posted: Thu Nov 17, 2005 4:40 pm Post subject: |
|
|
I am sorry I did not reply sooner.
I have tested the control under Visual Basic -- there is a Visual Basic sample in Samples directory. I have loaded various files, played it was unable to get memory usage over 21 MB, which should not be a problem. Loading new file did not cause significant memory usage increase.
Can you please test this? You should be able to see the memory used by the process with Windows Task Manager. _________________ Piotr
info@powerkaraoke.com
PowerKaraoke
www.powerkaraoke.com |
|
| Back to top |
|
 |
qlawson Member
Joined: 04 Nov 2005 Posts: 7
|
Posted: Fri Nov 18, 2005 9:06 pm Post subject: |
|
|
I tested once again with your included sample file as well. The problem occurs there too.
I have noted a slight difference if the file is allowed to end versus if it is stopped. When the file ends on its own, the codec appears to grab less memory when a new file is loaded. But, when a file is stopped before finishing and a new file is loaded, the problem occurs.
I observed the memory usage with the Task Manager to confirm this behavior. Each new file loaded captured 3-7MB of additional RAM, without releasing. This problem occurs on every system that I have the software installed (both versions 1.0.12 and 1.0.11). |
|
| Back to top |
|
 |
qlawson Member
Joined: 04 Nov 2005 Posts: 7
|
Posted: Fri Dec 09, 2005 10:42 am Post subject: |
|
|
| I am still having this problem. Do you have any ideas? |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Dec 20, 2005 2:48 am Post subject: |
|
|
I see the same issue, play a cdg either wma or mp3, stop a track part way through and the memory used by the previous track is not frred so on loading abother track slowly but surely the less memory you have.
This has only been tested in the demo application of yours |
|
| Back to top |
|
 |
admin Admin

Joined: 29 Nov 2002 Posts: 2401
|
Posted: Tue Dec 20, 2005 4:55 am Post subject: |
|
|
We will be revisiting the control in January -- I hope that that release will fix the problems. _________________ Piotr
info@powerkaraoke.com
PowerKaraoke
www.powerkaraoke.com |
|
| Back to top |
|
 |
|