查看单个帖子
旧 2009-05-06, 09:59 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)