keman
Gast
Java: Programm stürzt dauernd ab
Hallo
Ich habe es jetzt zwar geschafft, Eclipse zusammen mit Cocoa verwenden, habe aber noch ein Problem:
// String script ist der AppleScript, der ausgeführt werden soll
NSApplication.sharedApplication();
NSAppleScript myScript = new NSAppleScript(script);
NSMutableDictionary errors = new NSMutableDictionary();
myScript.execute(errors);
Wenn ich damit einen einfachen AppleScript ausführe, wie z.B. say etc., also einen Script, der keine GUI benötigt (keine Dialoge etc.), funktioniert das Ganze problemlos. Wenn ich jedoch z.B. display dialog verwende, stürzt das Programm gnadenlos ab:
****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = <Pfad der log-Datei>
PC = 0x0x9036bb7a
SIGNAL = 10
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = /System/Library/Frameworks/ApplicationServices.framework/
Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
Wo liegt das Problem?
Hallo
Ich habe es jetzt zwar geschafft, Eclipse zusammen mit Cocoa verwenden, habe aber noch ein Problem:
// String script ist der AppleScript, der ausgeführt werden soll
NSApplication.sharedApplication();
NSAppleScript myScript = new NSAppleScript(script);
NSMutableDictionary errors = new NSMutableDictionary();
myScript.execute(errors);
Wenn ich damit einen einfachen AppleScript ausführe, wie z.B. say etc., also einen Script, der keine GUI benötigt (keine Dialoge etc.), funktioniert das Ganze problemlos. Wenn ich jedoch z.B. display dialog verwende, stürzt das Programm gnadenlos ab:
****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = <Pfad der log-Datei>
PC = 0x0x9036bb7a
SIGNAL = 10
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = /System/Library/Frameworks/ApplicationServices.framework/
Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
Wo liegt das Problem?
Zuletzt bearbeitet von einem Moderator: