[futurebasic] Re: [FB] Repeated input statement stalls

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Tue, 7 Jun 2011 11:22:14 -0700
Dan - a few suggestions and a request

On Jun 7, 2011, at 10:47 AM, Dan Baeckström wrote:

> For a simple debugging purposes, I inserted an INPUT statement into a piece of repeated code, finding that the program stalled and quit unexpectedly
> after a few dozen repetitions.
Suggestions for debugging that don’t use INPUT:

(2) Runtime functions for a quick look:
fn DebugString( "some message" )
fn DebugNumber( someValue )
fn DebugRect( someRect )

(3) The Stop alert
stop "x is totally FUBAR" + str$( x )

(4) Logging to Console.app is useful when apps crash because the output isn’t dependent on your app continuing to run:

DebugStr( "Got to this point in fn xxxx" )
CFShow( someCFStringOrOtherCFVariable )

(5) Debug in the Xcode debugger ( Make Xcode project from FBtoC first )

> -----
> On my machine (10.5.8), the program will stall after 56 repeats, showing this error message:

It does stall here but I don’t get the crash. Please:
(1) Recreate the problem
(2) When you see the dialog press the "Report…" button
(3) Post the crashreporter log shown after pressing "Report…"

Thank you

Brian S