PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Roger Garstang on September 08, 2004, 04:38:30 PM

Title: Listview problem.
Post by: Roger Garstang on September 08, 2004, 04:38:30 PM
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
Title: Listview problem.
Post by: Roger Garstang on September 08, 2004, 05:09:12 PM
Problem found:

@ff.OldProc is never getting called when the control is destroyed, so no
memory is being freed.
Title: Listview problem.
Post by: Roger Garstang on September 08, 2004, 05:41:56 PM
Shouldn't the DefWindowProc be called during WM_DESTROY for the form as well instead of exiting the function?
Title: Listview problem.
Post by: Jose Roca on September 08, 2004, 06:05:57 PM
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.
Title: Listview problem.
Post by: Roger Garstang on September 08, 2004, 06:10:11 PM
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.