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

crashing Rebol/View trying to duplicate a layout

 [1/2] from: laurent::giroud::libertysurf::fr at: 30-Sep-2002 23:34


Hello, while doing a few tests with VID I managed to crash Rebol. My goal was to create a layout containing a button which once pressed would create a new view containing the same button which pressed would... you see the point ;) This had no particular purposes other than fun (ahem, some kind of fun at least). So, I tried this :
>> view lay: layout [button "Hop" "Poh" [view/new make object! lay]]
which crashes hopelessly when pressing the button It seems that what crashes rebol is duplicating the lay object since the code below crashes in a similar way :
>> lay: layout [button "hop"] >> make object! lay
**CRASH** Since I don't know if this is a know problem I thought to ask there before sending the bug to feedback. Is there anything wrong in trying to "make object! lay" ? I guess that even if it was, Rebol should not crash doing so ;) I tried to probe the lay object and it seems to never finish, so I though that the crash might result from a very large number of recursions causing a stack overflow... I finally managed to get my idea to work using :
>> block: [button "hop" [view/new layout block]]
== [button "hop" [view/new layout block]]
>> view layout block
But would it be possible to duplicate the first layout instead of building a new layout again from the block value ? Laurent -- Laurent Giroud mailto:[laurent--giroud--libertysurf--fr]

 [2/2] from: anton:lexicon at: 1-Oct-2002 17:29


This crash doesn't happen on the newer betas: REBOL/View 1.2.8.3.1 3-Aug-2002 REBOL/View 1.2.5.3.1 6-May-2002 so it looks like that one is fixed already. I reduced the crash to: f: make face [] make object! f which crashes on: REBOL/View 1.2.1.3.1 21-Jun-2001 Anton.
> while doing a few tests with VID I managed to crash Rebol. > >> view lay: layout [button "Hop" "Poh" [view/new make object! lay]]
<<quoted lines omitted: 9>>
> "make object! > lay" ? I guess that even if it was, Rebol should not crash doing so ;)
Crashes should never happen and should be reported.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted