[Gc] Strange issues

Emmanuel Stapf [ES] manus at eiffel.com
Fri Dec 23 14:00:56 PST 2005


Hi,

I'm using version 6.5 and I have a case where I have a static C variable which
points to a structure, which points to another structure and it should never be
freed. However it does get collected.

My static variable is defined as:

volatile char * oresult = NULL;

Am I missing something?

Although I believe it should not change anything, I've tried the following 2:
1 - store the address of oresult in a pointer allocated by `GC_malloc' it still
fails
2 - store it in a pointer allocated by `GC_malloc_uncollectable' then it works
fine.

Regards,
Manu

 
------------------------------------------------------------------------  
Eiffel Software	
805-685-1006	
http://www.eiffel.com	
Customer support: http://support.eiffel.com	
Product information: mailto:info at eiffel.com	
User group: http://groups.eiffel.com/join	
------------------------------------------------------------------------ 



More information about the Gc mailing list