Results 1 to 10 of 31

Thread: Problem with FreePascal + MacOS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by Andru View Post
    For Carbon you need to process kEventClassKeyboard event.
    Yes, I was already using that.
    The new problem, when calling Halt(), I get the message "Three Bobs quit unexpectedly, open again or ignore?"
    Do you know what is the problem?

  2. #2
    Quote Originally Posted by Relfos
    Do you know what is the problem?
    I don't know how exact you use Carbon(with your own main loop or with RunBlaBlaBla from standard Carbon API), so I can't answer you Anyway, halt is bad way to terminate your application.
    Last edited by Andru; 03-02-2011 at 07:27 PM.

  3. #3
    Hmm, a bad way, why?
    Before calling Halt() I release all allocated memory and resources, and destroy the Carbon window, well, maybe there is still something left to release, and that is causing the problem.

  4. #4
    Quote Originally Posted by Relfos
    Hmm, a bad way, why?
    Because of "maybe there is still something left to release", but halt terminate your application immediately.

  5. #5
    I think, traditionally, Halt is used to preemptively terminate a program. It should of course work okay, which could indicate a bug in the termination code. But usually would use just exiting the normal "PASCALMAIN" procedure as usual
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •