Re: R: [Plib-devel] Update on 3ds loader
Brought to you by:
sjbaker
From: Wolfram K. <w_...@rz...> - 2000-04-07 16:25:18
|
My problem is not that something is loaded too often or some texture is not found, but that it crashes because it is dereferencing an invalid pointer. I am working under (on??) Windows NT. It crashes while loading chevy.3ds because it tries to reference an undefined pointer (the hex address is cdcdcdcd, which is Visual C++ way of saying bad pointer). I set a break point in parse_material and another one in parse_mapname. The first three times it finds a breakpoint is in parse_material. Then it goes into parse_mapname. num_materials is three. mat_tfnames is obviously a array of pointers. The array is defined. However, the pointers are not. MAYBE the first three materials are un-textured, the texturenames are therefore not defined and when it finds the first mapname it tries to compare it to the undefined, previous ones? Are you (Per/Paolo) working under Windo$? Paolo, shall I send you the file? Per, have you looked at the newest CVS-code, perhaps it is different from the code you have? Do you use MSVC 6? Do you do a debug build? Bye bye, Wolfram. |