Matthew Stone wrote:
Andreas,
Thank you for the example threaded file loading example you sent, but I
am having some problems with it. If the loading is cancelled and
_pLoader->kill(); is executed, the next time the code executes the
thread doesn't execute and the pls variable contains a null pointer.
Any thoughts?
Thanks,
~Matt Stone
Hi Matthew,
Are you sure that the thread doesn't execute? For me this works.
Well I think killing the thread is not a good idea this leaves the
parser in a undefined state and also leads to a memory leak. Because of
this the next time you load a file you get an parse error. To solve this
problem it would be necessary to add a new reset() method to
SceneFileHandler and SceneFileType. I will think about this.
Andreas
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users