Frank:

As promise I give you a feedback...

It seems that the redefinition of func with recycle was the solution  to my
problems!

After some fine tuning, I found it better to set the random limit to 10.

Thx a lot! I will had your name to the thanks-list of the project !

CU,

Christophe


> -----Original Message-----
> From: Frank Sievertsen [SMTP:[EMAIL PROTECTED]]
> Sent: vrijdag 24 november 2000 10:38
> To:   REBOL List (E-mail)
> Subject:      [REBOL] Re: Weird Rebol Error Message
> 
> 
> 
> On Thu, 23 Nov 2000, CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN wrote:
> 
> > REBOL generates a DHTML page which displays an image during 3/100th sec,
> > then switch to the generation of another page which requests an user's
> > input, etc...
> > Those pages are distributed by a hacked rebweb as page server.
> >
> > Well after a few cycle, I get the message:
> > 
> > "Invalid data during recycle"
> > 
> > and the server crashes !
> > 
> > Do I have to put some recycle instruction somewhere ?
> > Any other idea ?
> 
> You can try to use the latest /CORE xper, which has some bugfixes. When it
> still crashes you can try the script
>    http://proton.cl-ki.uni-osnabrueck.de/REBOL/bugfixes.r
> 
> Which trys to fix some GC-Problems.
> 
> If this doesn't work, you can try this:
> 
> - First try _not_ to use %bugfixes.r
> - add recycle/off at the beginning of your script
> - add recycle in all functions and loops
> 
> You can also try to only add this at the beginning of your program:
> 
> ---snip---
> recycle/off
> 
> func: func [
>     "Defines a user function with given spec and body." [catch]
>     spec [block!] {Help string (opt) followed by arg words (and opt type
> and str
> ing)}
>     body [block!] "The body block of the function"
> ][
>     insert body: copy body [if 1 = random 100 [recycle]]
>     throw-on-error [make function! spec body]
> ]
> ---snap---
> 
> This will turn of the recycle and recycles from time to time when one of
> your functions is called.
> 
> And last but not least you can try to find out which part of your program
> causes the crash, create a small demonstration script and send this to
> [EMAIL PROTECTED]
> 
> Hope that helps.
> Frank
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to