Re: Thread changes?

Hi Brendan,

ON LINUX with b15pv18
The NilObjectException only occurs with Pictures in the document.
It occurs in restartUpdateThread()

  ' Start update thread.
    updateThread.restart

updateThread is Nil.

ON WINDOWS with b15pv18
The crash still occurs. I have seven FTEditField in a window with
pagepanels. I stepped into the code with the debugger. The crash happens
when the application releases the threads of the last FTEditField. I had a
look at my other controls and none of them crashes when I close the window.

I couldn't reproduce the problem with your example. So I will try to
investigate more.



On 09/04/2008, Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Yoann Besnard wrote:
>
> > Until I switched to 15pv17, I was using 15pv13 on Mac, Windows and
> > Linux. All of them worked fine. Since I've updated to 15pv13, I encounter
> > the following issues:
> >
> > On Windows, when my application quits, it crashes all the time. I
> > tracked down the problem to the threads, SpellCheckThread and UpdateThread.
> > They seem to crash when they're called from the method 'ReleaseThreads'.
> >
>
> I could not reproduce your problem, but I beefed up the thread
> handling code in preview 18. Please test it out and tell me the
> result.
>
>  On linux, when I have a note with a picture, I always have a NilObject
> > exception. However the application doesn't crash when quitting. From the
> > code I looked at, it seems normal as threads are not used in the Linux
> > platform.
> >
>
> Your description of the problem is a little ambiguous. Could you
> tell me where it creates the NilObjectException.
>
> Note, on Linux RB has some serious problems with threads. The RB
> framework does not properly handle the scheduling of the threads
> even when the threads are suspended and doing nothing. The CPU
> will peg out at nearly 100%. This is why I turned off threads for
> Linux.
>
>
> 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: