First thing, something simple to help keep your code clean. Rather than this:
if (TextureList) delete TextureList;
you can safely do this:
delete TextureList;
since the language states that delete NULL is okay to do.
Now, as to your problem, I don't see anything wrong offhand. Perhaps something in the CBinaryArray class is causing a problem? Is it your class or a library? If yours or if you have the library source, I suggest using the debugger to step into the delete function and find out what specifically is causing the problem. Debuggers also usually have the ability to break on exception, to help find problems such as this.
---- --- -- -
Blue programmer needs food badly. Blue programmer is about to die!
Edited by - mossmoss on July 21, 2001 12:36:04 AM