[AD] warning for set_config_file

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


After suddenly getting random crashes and weird effects in my program, I
debugged for a long time and finally came up with this patch, maybe it
can save someone in the future.

RCS file: /cvsroot/alleg/allegro/docs/allegro._tx,v
retrieving revision 1.119
diff -u -r1.119 allegro._tx
--- allegro._tx 2001/07/26 12:54:25 1.119
+++ allegro._tx 2001/07/27 18:10:53
@@ -779,6 +779,9 @@
    functions. If you don't call this function, Allegro will use the default 
    allegro.cfg file, looking first in the same directory as your program and 
    then in the directory pointed to by the ALLEGRO environment variable.
+   
+   All pointers returned by previous calls to 'get_config_string' are
+   invalidated when you call this function!
 
 @@void @set_config_data(const char *data, int length);
 @xref set_config_file, override_config_data, push_config_state


--
Elias Pschernig



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/