查看单个帖子
旧 2009-05-04, 06:34 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】crash on exit on macintosh

crash on exit on macintosh
crash on exit on macintosh
i'm getting a crash on exit when i use dwgdirect in a loadable bundle.
that's a dylib inside a bundle. i have included a zip file containing 2
xcode projects. the first is the odwriteex example modified to be a
loadable bundle. the second project is a simple command line
application which loads the bundle, exports a dwg file (just as the
odwriteex example does), unloads the bundle and exits.
the crash is occurring after the application's main function returns.
you should be able to just run the application as long as the directory
structure is maintained. run the application, dd_bundle_loader2, from
the build directory in a terminal window. the application looks
for the bundle in ../../dd_bundle2/build.
if the following lines are removed from the applications main function,
the application does not crash.
cfbundleunloadexecutable(bref_id);
cfrelease(bref_id);
is there something i am missing or doing wrong? any help with would
be much appriciated. i'm using dwgdirect v1.12.4, xcode 1.5 (gcc 3.3),
and maxosx 10.3.8.
thanks,
tim
i can't seem to upload the attachment. it's right at 4 mbytes. is that too
big? here's the error i'm getting:
there seems to have been a slight problem with the open design alliance forum database.
please try again by pressing the refresh button in your browser.
an e-mail has been dispatched to our technical staff, who you can also contact if the problem persists.
we apologise for any inconvenience.
please let me know if there's another way i can get it to you.
last edited by thanes; 4th may 2005 at 12:59 pmfff">. reason: can't upload attachment.
please send it to and we will look into the problem.

thanks, i just sent it
tim
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)