3

OmniThreadLibrary is a very interesting library. However, I'm worried about its use in a Windows Service.

All tests from repository are Forms based. And most of them use (implicitly or explicitly) a message-based infrastructure (via TOmniEventMonitor).

I made a small DUnit test and it never worked as expected. It only started to work after I put Application.ProcessMessages in several key places of my code. (!)

The same tests worked correctly in a Forms application. But never in a continuous procedure code like a DUnit test.

I'm missing something? How could I use OmniThreadLibrary in a Windows Service? or in a continuous procedure without spreading Application.ProcessMessages in several points?

bummi
  • 27,123
  • 14
  • 62
  • 101
JohnnyG
  • 31
  • 1

1 Answers1

0

OmniThreadLibrary in a service works just fine. There's an example in the repo showing that.

gabr
  • 26,580
  • 9
  • 75
  • 141