Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error handling for sync invocations in Java
01-12-2011, 10:37 AM
Post: #12
RE: Error handling for sync invocations in Java
(01-12-2011 09:53 AM)simoncn Wrote:  Although I can install Visual Studio (at the cost of a little inconvenience), it clearly isn't something that I could ask a user of my software to do if they had a problem like this. Would it be possible to add code to ohNet to print the stack trace information in the event of this kind of problem?

Stack traces will already be printed to console for any unhandled exception (including assertion failures) in threads created by ohNet. I'm guessing that your exception occurs in your main app thread so isn't caught by ohNet code.

The solution to this would be to expose ohNet's unhandled exception handler to client code. I'll try to do this in the next couple of weeks. You'd then need to catch all exceptions in your app thread(s) and call the new ohNet function. This function would attempt to print a call stack then abort the process.
Find all posts by this user


Messages In This Thread
RE: Error handling for sync invocations in Java - simonc - 01-12-2011 10:37 AM

Forum Jump: