View Single Post
  #20  
Old 10-07-2003, 04:38 PM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Trump,

Here's the code you added to avoid the crash problem:
Code:
                                const Item_Struct* myitem = database.GetItem(atoi(row[0]));
                                if ( myitem !=0)
The problem is that I tracked down the source of the crash inside of the GetItem method. You won't get to check myitem!=0, because it's too late, world has crashed already.

This is what I saw in my testing. GetItem calls something in the Mutex library and I really didn't want to mess with that stuff. If I get a chance, I'll try to reproduce and give you a gdb backtrace.

Regards,

krich
Reply With Quote