Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Memory leaks Collapse All
Subject Author Date
Dev3DFeel Dev3DFeel Mar 9, 2007 - 3:21 AM

Hi,

I have integrated the "Prof-UIS" lib in my program. It’s similar to the "SDIDocView" sample : One document type et one view.

There are memory leaks when the program is closed.

I think the "g_CmdManager" is not desallocated :Visual Studio says "ExtCmdIcon.cpp", "ExtPaintManager.cpp", and "ExtCmdManager.cpp"... are sources of problem.

My ressources are loaded from a Dll which doesn’t use "Prof-Uis". Only my .exe use it.

Thank you

Dev 3Dfeel.




Suhai Gyorgy Mar 9, 2007 - 3:42 AM

It’s hard to say from this much information what could cause the problem. What are the exact messages VS shows you about the memory leak? If you followed SDIDOCVIEW sample, what are the differences between your app and that sample, regarding those classes mentioned above? Is it possible to make a sample application that shows the same problem?

Dev3DFeel Dev3DFeel Mar 12, 2007 - 7:45 AM

I’ve found the problem but i don’t know how to solve it.

My ".exe" loads a Dll which includes MFC lib.

This Dll doesn’t need "Prof-UIs" (only my ".exe" et its own Dialogs need it) so i haven’t changed its code.

When ".exe" just include the Dll and not call code from it, memory leaks don’t exist. If i call just one function of the dll, memory leaks appear.

What change may i do to solve that?

Thanks!!

Dev 3dfeel

Technical Support Mar 13, 2007 - 3:42 AM

It seems we need to take a look at the source code. Would you send us a stripped version of your project and dll, which reproduces the problem?

Dev3DFeel Dev3DFeel Mar 13, 2007 - 7:30 AM

I’ve sent it.

Thanks

Dev3DFeel

Technical Support Mar 14, 2007 - 9:32 AM

Thank you. We sent you a fixed project via email.