1. Erick Siliezar
  2. PowerBuilder
  3. Monday, 29 June 2020 18:16 PM UTC

Hi Everyone, I'm having an issue on a VM (Windows 10 Enterprise , 64 bit, 12 GB Ram). I'm using a timer to start a windows login application, but for some reason timer event never runs. Any idea about this issue.

I ran same application on a different VM (Windows 10 Enterprise,, 64 bit, 12 GB Ram ) and it works as expected.

 

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 29 June 2020 18:57 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Erick;

   Are you using a Window Timer or the Timing Object approach in your PB App?

Regards ... Chris

Comment
  1. Erick Siliezar
  2. Monday, 29 June 2020 19:47 PM UTC
Hi Chris, I'm using timer object.



I have the following instruction , in the open event

Timer(2)



But my code in the event timer never runs. But again, I have the same code in a different VM and my app is working fine.



event timer;

application app

app = GetApplication()

app.PostEvent('ue_logon')

Timer(0)

end event

  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 29 June 2020 21:05 PM UTC
Nope ... your using the Window Timer feature and thus, its corresponding Window event. The Timing *object* is a completely different approach. ;-)

Q1: Did you try placing a break point on the Window Timer Event and run the App via the debugger to see if actually gets there?

Q2: Same as #1 but on the Timer() command. Also, does you code check the return code on the Timer() command?
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.