Re: Error on Win32 builds
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Fri, 18 Apr 2008 18:17:29 -0500
Ron Benditt wrote:
I've come across an error that happens only on Windows builds, and
its somewhat intermittent. It happens about half of the time when
I open up a new window that has a FTC on it. On open, I first
resize the window and the FTC based on the user's preferences. I'm
finding that the program crashes with a nilObjectException error in
the adjustDisplayPicture method because the variable "doc" is nil at
this point. Mac builds seem to not have this problem for some
reason. Also... this problem started appearing when I've upgraded
to pv19.
Stack:
FormattedText.adjustDisplayPicture%%o<FormattedText>
FormattedText.resize%%o<FormattedText>
FormattedText.resized%%o<FormattedText>
MIDIEventEdit.MIDIEventEdit.ResizeWindow%
%o<MIDIEventEdit.MIDIEventEdit>
MIDIEventEdit.MIDIEventEdit.Event_Resized%
%o<MIDIEventEdit.MIDIEventEdit>
MIDIEventEdit is my window.
This is probably a thread problem in the RB framework.
Place the following line of code at the top of the
adjustDisplayPicture, resize, and resized methods in
the FormattedText class.
if not isInitialized then return
Report back to me how this affects the problem.
FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
- Follow-Ups:
- Re: Error on Win32 builds
- From: Brendan Murphy
- References:
- Error on Win32 builds
- From: Ron Benditt
Other related posts:
- » Error on Win32 builds
- » Re: Error on Win32 builds
- » Re: Error on Win32 builds
- » Re: Error on Win32 builds
Stack: FormattedText.adjustDisplayPicture%%o<FormattedText> FormattedText.resize%%o<FormattedText> FormattedText.resized%%o<FormattedText>MIDIEventEdit.MIDIEventEdit.ResizeWindow% %o<MIDIEventEdit.MIDIEventEdit> MIDIEventEdit.MIDIEventEdit.Event_Resized% %o<MIDIEventEdit.MIDIEventEdit>
MIDIEventEdit is my window.
- Re: Error on Win32 builds
- From: Brendan Murphy
- Error on Win32 builds
- From: Ron Benditt