Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.