Memory leak in VB6 with PowerCDG Control

Get help with the bugs you encounter in our software

Moderators: admin, Piotr, adam

Post Reply
qlawson
Member
Posts: 7
Joined: Fri Nov 04, 2005 9:47 pm

Memory leak in VB6 with PowerCDG Control

Post by qlawson »

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?
admin
Admin
Posts: 2393
Joined: Fri Nov 29, 2002 4:06 am

Post by admin »

What kind of audio file are you using? (MP3, WAV, BIN)?
qlawson
Member
Posts: 7
Joined: Fri Nov 04, 2005 9:47 pm

Post by qlawson »

I use WMA and CDG files.
admin
Admin
Posts: 2393
Joined: Fri Nov 29, 2002 4:06 am

Post by admin »

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.
qlawson
Member
Posts: 7
Joined: Fri Nov 04, 2005 9:47 pm

Post by qlawson »

I did attempt to use an MP3 instead of a WMA and still encountered the same problem.
admin
Admin
Posts: 2393
Joined: Fri Nov 29, 2002 4:06 am

Post by admin »

Does it happen under Windows XP or some other OS? I will look into this early next week.
qlawson
Member
Posts: 7
Joined: Fri Nov 04, 2005 9:47 pm

Post by qlawson »

Yes, this occurs in Windows XP (I have not tried Windows 2000).
qlawson
Member
Posts: 7
Joined: Fri Nov 04, 2005 9:47 pm

Post by qlawson »

Any ideas so far?
admin
Admin
Posts: 2393
Joined: Fri Nov 29, 2002 4:06 am

Post by admin »

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.
qlawson
Member
Posts: 7
Joined: Fri Nov 04, 2005 9:47 pm

Post by qlawson »

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).
qlawson
Member
Posts: 7
Joined: Fri Nov 04, 2005 9:47 pm

Post by qlawson »

I am still having this problem. Do you have any ideas?
Guest

Post by Guest »

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
admin
Admin
Posts: 2393
Joined: Fri Nov 29, 2002 4:06 am

Post by admin »

We will be revisiting the control in January -- I hope that that release will fix the problems.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest