Le 3 f�vr. 05, � 11:10, Richard Frith-Macdonald a �crit :

In which case, you can use NSSetUncaughtExceptionHandler(), which is documented in the macros part of the 'Functions' section of the base library documentation.

This seems to be the most appropriate solution :)
Actually, I managed to track the source of the double free using the `malloc_history' command to get the type of object that was released twice. I found valuable information here, too <http://www.cocoadev.com/index.pl?DebuggingAutorelease>.


The environment variable is documented at the top level (introductory) page of the base library documentation in the section on environment variables.
The global variable (set from the environment variable) is documented in the 'Types and Constants' documentation of the base library.

Thanks, I assumed it was documented in the base reference <http://www.gnustep.org/resources/documentation/Developer/Base/ Reference/index.html> - but I found the pages you mention by googlin' ;)


Basically, it allows deallocated objects to persist and call a standard function when you try to use them ... so you can track them down more easily under debug.

It's strange, because in the case of my autoreleasing of an already released object, this did not work, neither on OSX or GNUstep. I will try to write examples and see if I can reproduce this.


Thanks a lot for your help (and saving me hours of bug chasing ;)

 -- S�bastien

--
�La plupart des journaux ou des �missions d'actualit� sont
con�us pour donner au spectateur l'impression d'�tre un mouton
bien prot�g� qui ne peut que souffrir s'il s'�carte du troupeau�
<http://www.type-z.org> -- Poppy Z.Brite, La po�sie de la violence



_______________________________________________
Help-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnustep

Reply via email to