THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/07/2003 at 10:02, xxxxxxxx wrote:
is just a pointer to a document , you either point it at a document that you create somewhere else or you will need to allocate a document for it.if you allocate this later , youll need to free it for sure.if you point it to another doucment , youll need to free that one (if you made it)
e.g if you later do globaldoc=LoadDocument(blabla) , you will need to free this globaldoc yourself before your plugin exits.
same with all these pointers , if your allocating them somewhere else , you will need to free whatever you put in them.
depending on what your doing , its often usefull to use AutoAlloc , then you dont need to think about allocation.
there a couple of places that you can deallocate within a GeDialog.
you can use :
virtual color=#800080~GeDialog(void); // destructor
virtual void color=#800080DestroyWindow(void); // geeneral cleanup
use these to cleanup when the dialog is destroyed.