Crash on wake from sleep - mmap issue?

2014-08-06 Thread Trygve Inda
This crash is when trying to read from a file (130mb) that has been mmap'd. It only happens rarely, and only when waking from sleep, but happens on both 10.8 and 10.9. It is almost like the mmap memory is not available right when the system is woken up Any ideas? Exception Type: EXC_BAD_ACC

Crash on wake from sleep

2009-06-30 Thread Trygve Inda
My app has a single window with a single view and I call: NSImage*theImage = [[[NSImage alloc] initWithContentsOfFile:mapImagePath] autorelease]; [window orderFront:self]; [imageView setImage:theImage]; [imageView setNeedsDisplay:YES]; The file that this image comes from will be deleted