几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】crash on exit on macintosh (http://www.dimcax.com/hust/showthread.php?t=15535)

yang686526 2009-05-04 06:34 PM

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


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