几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】please help me to solve this access violation problem (http://www.dimcax.com/hust/showthread.php?t=17899)

yang686526 2009-05-06 09:59 PM

【转帖】please help me to solve this access violation problem
 
please help me to solve this access violation problem
please help me to solve this access violation problem
gentlemen,i am a student new learner of dwgdirect c++ 2.06.03 and i came across a access violation problem as follow:
unhanled exception in cad.exe (ntdll.dll):0xc0000005:access violation
it comes from the odinitialize(&systemservices) function of the following codes:
extern "c" int dwgdirectread(char* pfilename)
{
odrxobjectimpl<myservices> systemservices;
odinitialize(&systemservices)
.....
}
ps:i don't know my former version of dwgdirect c++,which defines odinitialize() in the file of "dynamiclinker.h" as the form of
toolkit_export void odinitialize(oddbsystemservices* psystemservices);
however,dwgdirect c++ 2.06.03 defines it in the file"dbsystemservices.h". i hasn't done much job but replacing the include files.has it something to do with the files?
any help will be appreciated. thanks!
if you have some idea,please email me at yanyunseu@yahoo.cnfff">.thanks again.
last edited by james.xu@ddsoft.com.cn; 14th december 2008 at 06:34 pmfff">.
sorry,this error may has nothing to do with the function odinitialize() itself.
though i haven't figured it out yet, i think this error may lies in dll setting of vc6 envrionment.
thanks.
be sure to update not only include files but lib also.
it's better to unpack new version into a new empty folder to avoid mixture of different non-compatible versions.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 01:11 PM.