Re: pr20

Ron Benditt wrote:
I just downloaded the pr20 release to give it a try. I'm finding an OutOfBounds error immediately when I run it. Here's a stack trace:

Stack:
RaiseOutOfBoundsException
_Z17RegistryItemClassv
FTPage.findParagraphIndex%i4%o<FTPage>i4
FTPage.drawNormalViewMode% %o<FTPage>o<Graphics>o<FTDocument>i4i4o<FTInsertionPoint>
FTDocument.drawNormalViewMode%%o<FTDocument>i4i4i4i4
FTDocument.draw%%o<FTDocument>i4i4i4i4
FormattedText.draw%%o<FormattedText>
FormattedText.resize%%o<FormattedText>
FormattedText.resized%%o<FormattedText>
RunWindow.RunWindow.SetupControlPositions%%o<RunWindow.RunWindow>
Main.Event_Open%%o<Main>
RuntimeExit
RuntimeRegisterAppObject
REALbasic._RuntimeRegisterAppObject%%o<Application>
_NewAppInstance
_Main
% main


In the findParagraphIndex(y as Integer) method, its bombing out in the for...next loop when it tries to reference paragraph(i). i is equal to -25! Also, the variable slot is equal to -1, so that's where the negative value is coming from. Hope that helps.


If this is the result from running it in you application, from our
off line discussions about your Win32 problem I know you have the
FTC misconfigured and are misusing the functionality which is
causing the problems you have seen. So I will work with you off
line to get it correctly configured in your application. I suspect
this problem will disappear after we configure it correctly.


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: