Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Dr. Hawkins
On Wed, Sep 23, 2015 at 9:58 AM, Richard Gaskin wrote: > > Ah - thanks. > > Print spooling in the OS is often so slow, does this really make an > appreciable difference? > > Heavens, yes. A typical bankruptcy petition can be 60-90 pages. Each has to be rendered. Or when drawing a slider throug

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Scott Rossi
I had/have your same concerns, and while the stack can be saved, it's not intended to be saved on a regular basis (only during development). If I somehow reached control ids over a billion, I could create a new editor stack and copy over the core controls while saving dozens of hours of developmen

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Richard Gaskin
Scott Rossi wrote: > I have a property editor that builds/positions its editing controls > dynamically, based on some simple rules. When a new object is > selected, the editing controls for the recent object are removed and > replaced with editing controls for the newly selected object. Using >

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Scott Rossi
I have a property editor that builds/positions its editing controls dynamically, based on some simple rules. When a new object is selected, the editing controls for the recent object are removed and replaced with editing controls for the newly selected object. Using this process, I don't have to

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Mark Waddingham
On 2015-09-23 19:27, Richard Gaskin wrote: The "how" was pretty clear from the Release Notes. I just couldn't figure out the "why". How often to people create objects they don't want? Ah - don't think about it as people creating objects they don't want... Think of it allowing people to creat

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Richard Gaskin
Mark Waddingham wrote: > On 2015-09-23 18:44, Richard Gaskin wrote: >> I'm having a hard time conceiving of a circumstance in which it's >> necessary o build a large number of objects only to delete them again >> in the same handler. >> >> What am I missing? > > Any loop of the form: > > repeat ..

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Mark Waddingham
On 2015-09-23 18:44, Richard Gaskin wrote: I'm having a hard time conceiving of a circumstance in which it's necessary o build a large number of objects only to delete them again in the same handler. What am I missing? Any loop of the form: repeat ... create stack / object do something

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Richard Gaskin
Dr. Hawkins wrote: On Wed, Sep 23, 2015 at 9:44 AM, Richard Gaskin wrote: I'm having a hard time conceiving of a circumstance in which it's necessary o build a large number of objects only to delete them again in the same handler. Printing. Ah - thanks. Print spooling in the OS is often s

Re: Why "Objects are only deleted on idle"?

2015-09-23 Thread Dr. Hawkins
On Wed, Sep 23, 2015 at 9:44 AM, Richard Gaskin wrote: > > I'm having a hard time conceiving of a circumstance in which it's > necessary o build a large number of objects only to delete them again in > the same handler. > Printing. I do this to bring my multi-pages output of forms. The page is

Why "Objects are only deleted on idle"?

2015-09-23 Thread Richard Gaskin
In the LC 8 Release Notes I see: Objects are only deleted on idle (8.0.0-dp-3) The engine will now flush any recently deleted objects after each command as long as they were created during the current event handling loop. If an object is created during one event handling loop, and