Hi,
I have written an ActiveX exe. It is used by another Standard exe and several other VBA applications. When the standard exe uses the AxtiveX exe over and over again, a "Run-time error '7';Out of memory" error occurs.
Stepping through the program and watching the windows process monitor I can see the memory increase each time the ActiveX exe is called.
I have tried setting the object which references the ActiveX exe in the Standard exe to nothing as soon as control is returned to the Standard exe but this does not have any affect.
How do I prevent the calls to the ActiveX exe from using additional memory on each call?
It takes a while to load the ActiveX exe on the first call so I would prefer not to remove it from memory. Rather I would like to reuse it on the next call without the memory penalty.
thanks,
pat
What is being processed - The Standard exe compiles information on a product. It then passes the information to the ActiveX exe which produces a document. Control is returned to the Standard exe and another product is processed.
I have written an ActiveX exe. It is used by another Standard exe and several other VBA applications. When the standard exe uses the AxtiveX exe over and over again, a "Run-time error '7';Out of memory" error occurs.
Stepping through the program and watching the windows process monitor I can see the memory increase each time the ActiveX exe is called.
I have tried setting the object which references the ActiveX exe in the Standard exe to nothing as soon as control is returned to the Standard exe but this does not have any affect.
How do I prevent the calls to the ActiveX exe from using additional memory on each call?
It takes a while to load the ActiveX exe on the first call so I would prefer not to remove it from memory. Rather I would like to reuse it on the next call without the memory penalty.
thanks,
pat
What is being processed - The Standard exe compiles information on a product. It then passes the information to the ActiveX exe which produces a document. Control is returned to the Standard exe and another product is processed.