This tries to run an external application called “dosbox” (an unix executable with exactly this name, no app package, found at Daum Cafe).
Other DOSBox ports started from within the application developed with XOJO runs fine (the framework is Cocoa based).
The Shell command stored in app.ausfuehren (text string) is compiled by code, providing the path to the 3rd-party application and options to be sent to.
It will be executed from within a superclass “Thread” named as “Class1”, which contains these lines, among other lines:
app.s=new Shell
app.s.Mode=2
... //
app.s.Execute app.ausfuehren
The method app.rundosbox calls the lines above by using:
t = new Class1
t.run
Properties affected are:
ausfuehren as string
PathToDaum as string: “/Applications/20140127_Intel_i386/dosbox” (as provided by the 3rd-party developer)
t as thread
s as shell, all of them added as property to the superclass “app”.
While other DOSBox ports will be executed without problems, this one crashes all the time.
So far I’ve determined, this port doesn’t like quotation marks in its options line (will not execute at all, if set with),
Without the XOJO-developed application, when I run the external application in request from within the Terminal.app, it runs fine.
So I think, it doesn’t like to be executed from within other applications, except someone of you could find what’s going wrong, please.
This is an excerpt of the Crash Report:
[quote]Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dosbox 0x001875c9 0x1000 + 1598921
1 dosbox 0x002f174d 0x1000 + 3082061
2 com.apple.Foundation 0x90f32732 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 49
3 com.apple.CoreFoundation 0x96f345a4 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 20
4 com.apple.CoreFoundation 0x96e1617b _CFXNotificationPost + 3435
5 com.apple.Foundation 0x90f2121f -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
6 com.apple.AppKit 0x9aaa95b5 -[NSApplication _postDidFinishNotification] + 367
7 com.apple.AppKit 0x9aaa9255 -[NSApplication _sendFinishLaunchingNotification] + 239
8 com.apple.AppKit 0x9aaa5b84 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 840
9 com.apple.AppKit 0x9aaa5471 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 277
10 libobjc.A.dylib 0x96c77304 -[NSObject performSelector:withObject:withObject:] + 77
11 com.apple.Foundation 0x90f4147a __76-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke + 121
12 com.apple.Foundation 0x90f40fb1 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 430
13 com.apple.Foundation 0x90f40dbb _NSAppleEventManagerGenericHandler + 218
14 com.apple.AE 0x98140b15 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 387
15 com.apple.AE 0x9810fed6 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
16 com.apple.AE 0x9810fdce aeProcessAppleEvent + 318
17 com.apple.HIToolbox 0x99c26591 AEProcessAppleEvent + 55
18 com.apple.AppKit 0x9aaa1188 _DPSNextEvent + 1089
19 com.apple.AppKit 0x9aaa08b0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
20 com.apple.AppKit 0x9aa9319c -[NSApplication run] + 727
21 dosbox 0x002f1efc 0x1000 + 3084028
22 libdyld.dylib 0x91a51701 start + 1[/quote]
The full crash report can be found at http://pastebin.com/6GfKbEp3