On Sat, 17 Mar 2007 13:18:44 -0400 Giel van Schijndel 
<[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] schreef:
>> In openWarzoneKey(), if registry_load() fails, it should init 
>the 
>> config file yes?
>>   
>I'm assuming yes, it should fill the config file with default 
>values
>then. Still looking into that atm.
>> In linux, is there good debugger like MSVS2005 has
>Yep, GNU delivers us the GNU DeBugger, also known as gdb (just 
>type
>`sudo aptitude install gdb` in a shell console on your ubuntu 
>system, or
>install the package `gdb` using your favourite package manager, 
>e.g. adept).
>
>If that is installed (already is installed I think, from looking 
>at your
>dumpfile) you can just run warzone in gdb.
>
>To do so, in a terminal emulator, start gdb with the warzone 
>binary as
>its argument: e.g. `gdb warzone2100` (when the binary is in your 
>path or
>your current directory). Then simply type `run` in the console 
>you'll
>get from gdb and type `bt` (shorthand for `backtrace`) or `bt 
>full` when
>it crashes.
>
>-- 
>Giel

Thanks for info!  This will help more.

I meant if there was a GUI debugger, I no like command line for 
debug?

I booted back to windows, and found the issue by delete file 
config, and trace to see what it does.

Problem is in configfile.c, registry_save()
                for (j = registry[i]; j != NULL; j = j->next) {
 registry[] is nothing!
so ... if (!saveFile(filename, buffer, count) ...
filename =config, buffer is 
"ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
ÌÌÌÌÌÌÌÌÌÌ"     (char [8160]), count = 0.

So problem is registry is not initialized, registry_set_key() is 
never called!
Fix is to call that before registry_save() is called if file is 
empty/not found.

--
Click for free info on adult education and start making $150k/ year
http://tagline.hushmail.com/fc/CAaCXv1S62dZP8XooCEoTxQPEbq1dZyW/






_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to