Re: Error on Win32 builds

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.


Other related posts: