Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Weird Rebol Error Message

From: fsievert:uos at: 24-Nov-2000 10:38

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 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 [feedback--rebol--com] Hope that helps. Frank