Recent

Author Topic: Make main class wait for another class (console program)  (Read 9987 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Make main class wait for another class (console program)
« Reply #15 on: August 14, 2014, 04:27:00 pm »
Afaik that is possible. But then you must postpone the usage of the whole LCL, so also the main body.

On Windows, some minor additional extra calls might be needed, but it is possible there too afaik.

The typical problem is that if the non LCL part of the application uses LCL components like timers.  But that can be solved by either writing your own message pump (for windows timers) or checksynchronize loop (for syncronize based timers)

 

TinyPortal © 2005-2018