Page 1 of 1

timerSet Problem n VIP10CE

Posted: 16 May 2021 21:25
by daveplummermd
Hello
A recent upgrade from VIP9CE to VIP10CE is throwing an error on previously working code (the same project works in VIP9).

Constructing a DLG, I have the code:

Code: Select all

clauses     new(Parent) :-         dialog::new(Parent),         generatedInitialize(),          _ = timerSet(20),         !.       new(_).
Compiles fine and at runtime produces the error:

----------------------------------------
No attached VPI window

Removing the timerSet removes the error. This works:

Code: Select all

clauses     new(Parent) :-         dialog::new(Parent),         generatedInitialize(),         % _ = timerSet(20),         !.       new(_).
Any ideas on what has changed?

Thanks in advance
Dave Plummer

Re: timerSet Problem n VIP10CE

Posted: 17 May 2021 11:07
by Thomas Linder Puls
That is clearly a bug, which we will fix. Meanwhile you can enclose the call in a show listener:

Code: Select all

        addShowListener({ :- _ = timerSet(20) }),

Re: timerSet Problem n VIP10CE

Posted: 17 May 2021 13:54
by daveplummermd
Thanks much