Crashes on iMac machine
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