Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
- Subject: Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
- From: Igor Delovski <email@hidden>
- Date: Tue, 18 Jun 2013 02:53:52 -0700 (PDT)
Now with NSApplicationLoad() the problem becomes more specific. Here are the stack trace and the log message:
#0 0xffff12b9 in __longcopy
#1 0xffff0876 in __memcpy
#2 0x9426624c in fixupSelectorsInMethodList
#3 0x9426ea16 in _class_getMethodNoSuper_nolock
#4 0x9426fd23 in lookUpMethod
#5 0x94267417 in _class_lookupMethodAndLoadCache
#6 0x94266fc3 in objc_msgSend
#7 0x98709b63 in -[NSApplication updateWindows]
#8 0x98709aa2 in _handleWindowsNeedUpdateNote
#9 0x977d5dd2 in __CFRunLoopDoObservers
#10 0x97791ced in __CFRunLoopRun
#11 0x977913c4 in CFRunLoopRunSpecific
#12 0x977911f1 in CFRunLoopRunInMode
#13 0x999f9e04 in RunCurrentEventLoopInMode
#14 0x99b81be0 in GetNextEventMatchingMask
#15 0x99b81d96 in WNEInternal
#16 0x99b81f41 in WaitNextEvent
malloc: *** mmap(size=2262044672) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Program received signal: “EXC_BAD_ACCESS”.
Crash occurs after the plugin loads, fills some buffer with its name and unloads. Then when I move or just touch the main window of the application I get bad access.
Igor
--- On Tue, 6/18/13, Igor Delovski wrote:
> From: Igor Delovski
> Subject: Re: Carbon app and Cocoa/Carbon Bundle plugin - possible?!
> To: "Nick Zitzmann"
> Cc: "email@hidden"
> Date: Tuesday, June 18, 2013, 2:31 AM
> Thanks, looks like I do need
> NSApplicationLoad().
>
> Sent from my iPhone
>
> On 18. 6. 2013., at 02:17, Nick Zitzmann
> wrote:
>
> >
> > On Jun 17, 2013, at 4:57 PM, Igor Delovski
> wrote:
> >
> >> So, my question is if this is expected or can I
> make it work? Can carbon app use bundle plugin that is using
> Cocoa and newer SDK?
> >
> > It should. If your bundle uses any AppKit code, don't
> forget that you must call NSApplicationLoad() before using
> any AppKit class, or you will get bizarre behavior in any
> Carbon-only app.
> >
> > Nick Zitzmann
> >
> >
>
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden