I am having trouble with garbage collection, I wonder if anyone can help...
Using MP2004 OCX, vb5
I've read the articles about forcing garbage collection by using the Sendmessage API call, and getting the hwnd of the mappoint control via Sergiy Pavlov's code.
so I started with sergiys program http://www3.sympatico.ca/spavlov/mappoint_extended.zip
and added the deffinition
Public Const SC_MINIMIZE = &HF020
and a command button
Private Sub Command1_Click()
Dim TWnd As New TWindow
Dim lResult As Long
TWnd.hwnd = objMap.hWnd_Frame
lResult = SendMessage(TWnd.hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0)
Clicking the button seems to do nothing, no minimise, no change in memory useage, what am I doing wrong?!