Warning about canvases
BlitzPlus Forums/BlitzPlus Programming/Warning about canvases
| ||
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. |
| ||
I free everything, starting with child gadgets and working to the window finally |
| ||
I free everything, starting with child gadgets and working to the window finally Seems to help with memory leakage |
| ||
i also do free everything. its good practice to get into, especially where i have to use other languages etc |
| ||
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 :) |
| ||
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) |