几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】getworldtoeyetransform failes (http://www.dimcax.com/hust/showthread.php?t=16427)

yang686526 2009-05-05 11:35 AM

【转帖】getworldtoeyetransform failes
 
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


所有的时间均为北京时间。 现在的时间是 05:22 AM.