Warning about canvases

BlitzPlus Forums/BlitzPlus Programming/Warning about canvases

JoshK(Posted 2005) [#1]
I have determined that canvases must be freed explicitly to prevent crashing. Freeing a window a canvas is grouped to is not safe.

Hmmm, even that doesn't fix crashing (in executables only).

Be warned.


Nicstt(Posted 2005) [#2]
I free everything, starting with child gadgets and working to the window finally


Nicstt(Posted 2005) [#3]
I free everything, starting with child gadgets and working to the window finally

Seems to help with memory leakage


aab(Posted 2005) [#4]
i also do free everything. its good practice to get into, especially where i have to use other languages etc


*(Posted 2005) [#5]
I normally go by the adage last in first out, in that way if you free the gadgets in reverse order from what they were created you cant go wrong :)


CS_TBL(Posted 2005) [#6]
Uh... o_O .. when do apps with an unfree'd canvas crash? Never had that before, and I'm even running the unstable win98se..

(I do release banks tho)