CompuServe Thread

VBX player loses memory

3 messages in this thread
#105280From: David PhibbsJun 2, 1994 8:05 AM
Brian, Several weeks ago I posted a message about how the VBX player Autodesk provides is losing memory when you let it play for extended periods. Basically, what I do is use the VBX in my Visual Basic application to play a series of FLC files as an attract loop for when the machine is not in use. I play a FLC for several minutes and then play the next one, and so on, and so on. I bring up a utility that displays the amount of availabe memory and as time goes by, the amount of memory keeps decreasing. This is bad for me because my application is suppose to run non-stop. Eventually, I will get an 'Out Of Memory' error and the application will crash. Are there any fixes for this yet?? It appears as though the DLL may be the problem. It doesn't appear to be freeing up all the memory as I cycle through the FLC files (I use three). I am currently running a version of AAPLAY.DLL dated 12/1/93 and 140,816 bytes in size; I'm also using VBPLAY.VBX dated 5/27/93 and 30,043 bytes in size. Finally, if there is a fix, where is it?? Thanks in advance. Dave
#105344From: Brian Rudolph [Adesk]Jun 2, 1994 11:15 AM
David, I passed your memory leak problem along to the programmers. If/When there is an update to the player utility, it should be fixed at that time. At the moment, however, there is no "fix" for the .DLL that you currently have. One possible, although non-elegant, solution might be for your program to watch the system clock as it is looping. If 1 hour, or whatever unit of time, goes by with no activity, have the program close the .DLL application and then open it again immediately. This should clear out the memory that is being held. Admittedly it is not an elegant or seamless solution, but it might solve the problem. To help make it more seamless, you might experiment with starting a second instance of the .DLL file before closing the first one. This way there wouldn't actually be a gap in the presentation as the .DLL cleared itself out of memory. Hope ths helps. -Brian
#105452From: Tim HitchingsJun 2, 1994 7:06 PM
Brian, David, If you set Color Cycling and Use All Colors properties to true you will NOT lose memory! – Tim Hitchings, Written 02-Jun-1994 @ 18:49:10 Using: Windows NavCIS PRO 1.2