I have a Type which at some point creates some memory using MemAlloc().
Without adding a special "FreeMyType()" kind of method, am I safe to put into a Delete() method something like this:
I realise that I don't know "when" the Object will be deleted, but am I right to assume that when the GC decides it is time for it to go, Delete() is called and I can free the allocated memory that way?
:o)
noob
Without adding a special "FreeMyType()" kind of method, am I safe to put into a Delete() method something like this:
Method Delete() If myBytePointer Then MemFree(myBytePointer) End If End Method
I realise that I don't know "when" the Object will be deleted, but am I right to assume that when the GC decides it is time for it to go, Delete() is called and I can free the allocated memory that way?
:o)
noob