ActiveForm with ThreadedTimer
Posted on 2003-03-02
Can someone tell me why this doesn't work? I've been trying to work this out and getting nowhere.
I'm having problems when trying to use threading on an ActiveForm (D7 on XP Pro). For a simple test, I created a new ActiveForm project and added a TMemo and ThreadedTimer (one I picked up on Torry's) to the form.
On the form's OnCreate I enable the timer. On the OnTimer event for the threaded timer component I add a line to the memo:
I use Web Deploy, then launch the resulting htm file in IE. The memo shows as expected but the memo never has any lines added.
If I replace the ThreadedTimer component with Delphi's standard TTimer and recompile, the ActiveForm works fine.
I have been trying to convert an existing app to ActiveForms for use in MMC. As I was doing this I found that anywhere I was using threads was not working.
Thanks - Eric