mrimer
Level: Legendary Smitemaster
Rank Points: 5064
Registered: 02-04-2003
IP: Logged
File: BadData.zip (136.7 KB) Downloaded 45 times. License: Other From: Unspecified
|
Re: Bug: Import/Export problems with my hold, build 27 (0)
I think this indicates a data file is corrupted -- not just incorrect hold or player data, etc., but that the file itself is now bad (it happened to me -- so attached are my data files for developers and posterity to look at).
Here's some developer jive for those who want to look into how to fix it. Metakit is throwing an assertion at (here's the function trace):
c4_Persist::Load(c4_Stream * 0x00d29e68) line 1121 + 32 bytes
c4_Storage::LoadFrom(c4_Stream & {...}) line 408 + 9 bytes
CDbBase::-Open(const unsigned short * 0x00000000) line 210 + 18 bytes
InitDB() line 225 + 13 bytes
Init(const unsigned short * 0x00d444d2, unsigned char 0, unsigned char 0) line 173 + 5 bytes
So it's actually Metakit getting stuck in an infinite loop. Maybe there's a way to check whether the file data is incorrect before calling LoadFrom() -- KitViewer, for example, won't open the drod1_6.dat file either -- or tweak this assertion in the Metakit code (although I'm sure that's discouraged), or maybe specialize the storage class so our code persists as we upgrade the Metakit library... Maybe getting rid of that stream stuff to speed up the load like we earlier discussed would then side-step this unpleasant situation as well.
[Edited by mrimer on 07-08-2003 at 08:13 PM]
____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
|