An odd problem I need another pair of eyes to look at.
I\'ve got a resource index/version control database I\'m trying to implement and the program crashes on exit at seemingly random times. The only item I\'ve been able to successfully look up w/o errors is \"BMN-12\" (see the attached database).
It seems the program successfully loads the entire DB. However, several problems rear their ugly heads when you try to look up a resource. First, if the resource isn\'t found, the program crashes on exit. Second, the DB lookup code returns with failure even if it should find the item in the DB.
Anyone have any ideas about what the problem could be? Note that when I have the program just print out the DB there\'s no crash, even though I don\'t clean up memory before terminating the program.
Thanks for the help.
type Database_Entry
Designator as string
Path as string
Version as string
endtype
type Environment_Variables
Version as string
DatabaseLoaded as boolean
Directory as string
endtype
dim Database() as Database_Entry
global Database
global Environment as Environment_Variables
set display mode 1440, 900, 32
Database_Load()
`Enable for error (use \"BMN-12\" for success)
P$ = Database_Get_Path(\"TBSM-0002\")
print P$
`Enable to print the DB to the screen
`for a = 0 to a
Keep your Hope & Change to yourself, I choose Liberty! Stop by for a chat! [IXE]Nateholio on irc.maxgaming.net:6667 #GarageGames