getworldtoeyetransform failes
getworldtoeyetransform failes
i have a call to...
odgismartdrawobject::getworldtoeyetransform(odgema trix3d&)
...which fails with....
first-chance exception in gdp_deb.exe (kernel32.dll): 0xe06d7363: microsoft c++ exception.
first-chance exception in gdp_deb.exe: 0xc0000005: access violation.
...probably because there is something wrong with my odgismartdrawobject-derived object.
any suggestion on what can cause this? some initialization that is missed on the odgismartdrawobject-derived object?
-rune
-rune jorgensen
www.dds.no
hi,
[code]
try
{...}catch(const oderror& e) { e.description(); }
sorry, prev msg was not complette. try use next code to see exeption message.
code:
try
{
// you code causing exeption
}
catch(const oderror& e)
{
cout << e.description().c_str();
}
default values for some vectors were all 0. it fixed the problem to first call...
setview(position, target, upvector, fieldwidth, fieldheight);
but why doesn't default constructors init all objects with legal default values?
-rune jorgensen
www.dds.no