123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|733|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Odd crash behaviour

Mon, 12 Apr 2010, 23:17
Mog
Here's an oddity.... I'm working on a b3d loader, but if i run it again, i sometimes get a Memory Access Violation. So i run it once, and it's fine. Then i quit and run it again- and it MAVs on 'AddTriangle' in the meshbuilder either once, then works again, or just keeps crashing around 5 times before working once more. Argh!

Now- has anyone else ever experienced something like this? A crash that only happens every so often? I'm thinking it has to do something with the file or something in memory, but i can't be sure since it's crashing after the fact of the file being closed, and within the actual builder part. Any theories?

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Tue, 13 Apr 2010, 00:21
Jayenkai
Check for /0 or Mod 0, or any other 0 based maths. That's usually what does it for me!
I'd assume you're using floats, and that every so often one's reaching that annoying little number.

-=-=-
''Load, Next List!''
Tue, 13 Apr 2010, 01:28
Mog
It was my dreaded enemy: I was off by one on the vertexes, and overshooting the array. The error wasn't AddVertex- it was on the line below it: VertexNormals. Damn you IDEal and pointing me in the wrong direction!

In a side note, i've been testing different texture formats. If at all possible, everyone should use DDS- it loads super quick, not to mention the memory compression perk. Worst to best: PNG took 121ms to load textures, JPG - 90ms, bmp - 62ms and DDS - 14ms --- really dramatic difference! Only complaint is DDS looks like shit under certain light

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Tue, 13 Apr 2010, 01:31
Jayenkai
Wow, that's a huge difference!