NSSavePanel crashing on instantiation.
-
I am simply throwing up a save panel and doing a runModal on it. I'm
not doing anything fancy at all. I am getting a lot of crashes (not
always) in:
21 com.apple.AppKit 0x92f5852c +[NSSavePanel
_crunchyRawUnbonedPanel] + 0x7c
Any ideas what could be causing this? The app is multithreaded.
However, I have been careful to do all gui operations only in the main
thread. That said, this call to NSSavePanel is done in a method that
is called with performSelectorOnMainThread:withObject:waitUntilDone:
waitUntilDone: TRUE is used of course.
Dominic Feira / Code Monkey / Ambrosia Software, Inc. -
On 2005-03-14, at 22.34, Dominic Feira wrote:
> I am simply throwing up a save panel and doing a runModal on it. I'm
> not doing anything fancy at all. I am getting a lot of crashes (not
> always) in:
The crashes that are not in this method, where do they pop up?
> 21 com.apple.AppKit 0x92f5852c +[NSSavePanel _crunchyRawUnbonedPanel]
> + 0x7c
I hope you got the Monty Python reference? :-)
<http://orangecow.org/pythonet/sketches/crunchy.htm>
Could you show a bit more of the backtrace btw.?
> Any ideas what could be causing this? The app is multithreaded.
> However, I have been careful to do all gui operations only in the main
> thread. That said, this call to NSSavePanel is done in a method that
> is called with performSelectorOnMainThread:withObject:waitUntilDone:
>
> waitUntilDone: TRUE is used of course.
Why "of course"? Is the other thread going to do anything with the data
returned from the save panel?
j o a r -
I found the problem. Buffer overrun in one of my threads. I was
stomping on the other threads memory and things were going kablooey all
over the place. :)
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
On Mar 14, 2005, at 4:48 PM, j o a r wrote:
>
> On 2005-03-14, at 22.34, Dominic Feira wrote:
>
>> I am simply throwing up a save panel and doing a runModal on it. I'm
>> not doing anything fancy at all. I am getting a lot of crashes (not
>> always) in:
>
> The crashes that are not in this method, where do they pop up?
>
>> 21 com.apple.AppKit 0x92f5852c +[NSSavePanel
>> _crunchyRawUnbonedPanel] + 0x7c
>
> I hope you got the Monty Python reference? :-)
>
> <http://orangecow.org/pythonet/sketches/crunchy.htm>
>
> Could you show a bit more of the backtrace btw.?
>
>> Any ideas what could be causing this? The app is multithreaded.
>> However, I have been careful to do all gui operations only in the
>> main thread. That said, this call to NSSavePanel is done in a method
>> that is called with
>> performSelectorOnMainThread:withObject:waitUntilDone:
>>
>> waitUntilDone: TRUE is used of course.
>
> Why "of course"? Is the other thread going to do anything with the
> data returned from the save panel?
>
> j o a r
>


