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

[REBOL] [view] crashing...

From: moliad::aei::ca at: 14-Mar-2004 14:31

hi all, I've been working hard on glayout, and its now entering clean-up stage. I had noticed a wild memory leak : EVERY new window would gobble up 6MB... even closed... only 300kb would come back. that when I noticed that I was re-creating a new style for every window... somehow, that is staying in ram even though the window is not visible and all of its reference (that I control) are set to none. I have changed method, Now, and am creating the style once and re-using it on all windows... Now with the shared style, opening a new window is about 50 times faster, but I loose 1 MB per window. Even when using vid direcly, I noticed a rather large 200-300 kb memory hole... glayout, had NEVER crashed once within the two weeks of operation, and now, since my style is shared, I can make rebol crash just by opening several windows EVERY time it gets started ... when it crashes is upon opening or closing a window. The actual number or windows I can open before a crash is completely variable , but I am guessing that its whenever a garbage collection occurs. Furthermore I still get a memory leak ON EACH window but... its already better since only 1MB is leaking ... not that its great... but better. if it where only a fact that a function block keeps a reference to the last window opened, I should be getting a leak only the first time IMO... maybe it is view or layout themselves which have a leak, and since I am calling vid several times, it eventually creates larger leakeage... I am using v1.2.10... has anyone had bad experiences like this one, or know of any specific issues with styles (using the stylize function) ? note that as part of glayout, VID is automatically relaunched several times within the same layout... any help appreciated. -MAx