• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Crashes on iMac machine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crashes on iMac machine


  • Subject: Crashes on iMac machine
  • From: "Patrick Lee" <email@hidden>
  • Date: Fri, 10 Mar 2006 14:06:04 -0700
  • Thread-topic: Crashes on iMac machine

Title: Crashes on iMac machine

Hi,

Our application creates its own thread using BSD call. It then registers a run loop source (m_hShutdownEvent) with the run loop before starting the run loop. Here is the portion of the code:.

        {
                CSmartCriticalSection cs(&m_hAccessCS);
                               
                m_hCFRunLoop = CFRunLoopGetCurrent();
       
                // Register the shutdown event
                CFRunLoopAddSource(m_hCFRunLoop, m_hShutdownEvent, kCFRunLoopDefaultMode);
        }
       
        // Start the run loop
        CFRunLoopRun();

where m_hShutdownEvent is declared as "CFRunLoopSourceRef m_hShutdownEvent"

The problem is that the program always crashes at CFRunLoopAddSource() call. Occasionally it has luck the first time but gets hit again the second time the code is executed. As far as I know, this problem only occurs on iMac machine.

Am I missing anything?

Patrick

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: CFM app calling to BSD sockets interface
  • Next by Date: SSLRead fails with errSSLBadRecordMac
  • Previous by thread: Re: CFM app calling to BSD sockets interface
  • Next by thread: SSLRead fails with errSSLBadRecordMac
  • Index(es):
    • Date
    • Thread