Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8162145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:38:43+00:00 2026-06-06T18:38:43+00:00

I am writing a mono app for OSX that needs to use AppleScript. I

  • 0

I am writing a mono app for OSX that needs to use AppleScript. I am using the
AppleScript class from the Monodevelop source
which works fine most of the time, but every now and then it causes a SIGSEGV and my program crashes.

Being new to both Mono and OSX I am not sure how to debug this problem. MonoDevelop doesn’t break even if I am running through the debugger and C# exception handling doesn’t seem to help anything. Is there any way to figure out what’s going on? Right now it seems that the only way I can protect my program is to actually spawn a separate process for the AppleScript code.

The script that I run is always the same and 99% of the time it runs without problems.
This is the stack trace:

Stacktrace:

at (wrapper managed-to-native) MonoDevelop.MacInterop.AppleScript.OSACompile (MonoDevelop.MacInterop.ComponentInstance,MonoDevelop.MacInterop.AEDesc&,MonoDevelop.MacInterop.OsaMode,MonoDevelop.MacInterop.OsaId&) <IL 0x00028, 0xffffffff>
at MonoDevelop.MacInterop.AppleScript.Run (bool,MonoDevelop.MacInterop.AEDesc&,string&) [0x0007f] in /Users/kristian/Repositories/Kristian/projects/CherryTomato_NT/mono_osx/CherryTomato.Core_OSX/MacInterop/AppleScript.cs:131
at MonoDevelop.MacInterop.AppleScript.Run (bool,MonoDevelop.MacInterop.AEDesc&) [0x00000] in /Users/kristian/Repositories/Kristian/projects/CherryTomato_NT/mono_osx/CherryTomato.Core_OSX/MacInterop/AppleScript.cs:103
at MonoDevelop.MacInterop.AppleScript.Run (string) [0x00010] in /Users/kristian/Repositories/Kristian/projects/CherryTomato_NT/mono_osx/CherryTomato.Core_OSX/MacInterop/AppleScript.cs:83
...

There is a bunch of other information in the output which I can post if necessary but it looks rather generic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:38:44+00:00Added an answer on June 6, 2026 at 6:38 pm

    To debug native crashes (SIGSEGV) you need to use gdb (attach gdb to your program (gdb program #PID), run it, and execution will stop when you hit the SIGSEGV).

    Here are a few hints to using gdb with mono: http://www.mono-project.com/Debugging#Debugging_with_GDB (in particular you’ll want to create the .gdbinit file as explained there).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an app that would work for both .NET and Mono. However
I'm writing a console app in C#, using Mono on OS X. On Windows,
I am writing a simple timer app for OSX10.6 using Mono. How can I
NB: I'm using the Mono environment, if that makes a difference. I'm writing some
writing a server that runs on linux (Ubuntu) using mono. and a client that
I'm working on writing a FileSystemWatcher using Mono but for some reason the callback
Writing htaccess that allows me to remove index.php from the URL can confuse search
I have an iPhone app that publishes through Bonjour. The Mac counterpart works, they
I've decided to start writing an iPhone app and coming from a c# background,
I am using the Mono.Cecil DLL file and writing this code: AssemblyDefinition sourceAssembly =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.