Discussions related to Visual Prolog
daveplummermd
VIP Member
Posts: 80
Joined: 18 Jul 2006 17:18

timerSet Problem n VIP10CE

Unread post 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
Dave Plummer
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: timerSet Problem n VIP10CE

Unread post 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) }),
Regards Thomas Linder Puls
PDC
daveplummermd
VIP Member
Posts: 80
Joined: 18 Jul 2006 17:18

Re: timerSet Problem n VIP10CE

Unread post by daveplummermd »

Thanks much
Dave Plummer
Post Reply