Terminate Scheduler Events

Home Forums kbmMW Terminate Scheduler Events

Viewing 2 reply threads
  • Author
    Posts
    • #54777
      chmichael
      Participant

      Hello,

      When i close the form i call “Scheduler.Events.Stop;” in order to terminate all the active schedules (currently 1 schedule) i have working the background but it freezes.

      Any ideas ?

    • #54779
      TomYU
      Participant

      Do you call the Stop method in the thread executed by the Scheduler?

      If so, that is the reason.

    • #54780
      chmichael
      Participant

      Hello Tomy,

      Ok, i move it into a window message using PostMessage and it seems to be working! Thanks!

      • This reply was modified 1 week, 6 days ago by chmichael.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.