Listview problem.

Started by Roger Garstang, September 08, 2004, 04:38:30 PM

Previous topic - Next topic

Roger Garstang

Borje tested a listview problem I'm having in PBforms and didn't have the same issue, so I'm thinking it may be an FF problem???

http://www.powerbasic.com/support/forums/Forum4/HTML/010993.html

Roger Garstang

Problem found:

@ff.OldProc is never getting called when the control is destroyed, so no
memory is being freed.

Roger Garstang

Shouldn't the DefWindowProc be called during WM_DESTROY for the form as well instead of exiting the function?

Jose Roca

Quote from: Roger GarstangShouldn't the DefWindowProc be called during WM_DESTROY for the form as well instead of exiting the function?

No. DefWindowProc function calls the default window procedure to provide default processing for any window messages that an application does not process. After destroying the window there are no more messages to process. You have to quit.

Roger Garstang

Ok, just making sure.  If the default procedure for a control needs to be called to free memory, I figured maybe the same thing would apply for a form/window.