acrown
May 6th, 1999, 04:35 PM
I have an COM in-process DLL server (Debug Build) built using VC++ 6.0. When I use a VB client to instanciate, run and release via
1) Dim MyObject as xyz
2) Set MyObj=new xyz
3) Call some property or method
4) Set MyObj=nothing
VC++ does not detect any memory leaks.
When I instanciate and immediately release the object from a VC++ client via
1) CoCreateInstance()
2) AddRef()
3) Release()
and then the VC++ client exits, lots memory leaks are detected. Some seem to be CString objects (i.e., member variables - not pointers belonging to classes on the COM server) that do not get released, other allocation done by ATL.
Has anyone seen this before and have an idea as so what is going on. Also are there any tools for identifying the "real" leaks.
Thkx in advance for any help
1) Dim MyObject as xyz
2) Set MyObj=new xyz
3) Call some property or method
4) Set MyObj=nothing
VC++ does not detect any memory leaks.
When I instanciate and immediately release the object from a VC++ client via
1) CoCreateInstance()
2) AddRef()
3) Release()
and then the VC++ client exits, lots memory leaks are detected. Some seem to be CString objects (i.e., member variables - not pointers belonging to classes on the COM server) that do not get released, other allocation done by ATL.
Has anyone seen this before and have an idea as so what is going on. Also are there any tools for identifying the "real" leaks.
Thkx in advance for any help