Hi!
COM objects are quite different than usual VFP objects. It is not recommended to use any other class than "custom" for COM objects.
I don't know exactly if it will work, but try following:
- Make your COM object as custom object
- in the INIT event create timer object and assign it to the custom hidden property of main COM object
- in the Destroy method of COM object free timer object
- in the methods of COM object you can access internal timer object. Timer event of timer should fire even when COM object is remote.
Hope this will work.
>I create a timer class that I instantiate in my application which is an OLEPUBLIC. I also set the timer to OLEPUBLIC and put some code in the Timer Event.
>When my app is compiled as an EXE COM, the Timer fires off properly. However when I compile it as multithreaded whether single or multiple instance , it does not fire the Timer. Has anyone experienced this kind of problem before?
>
>In either case my app starts by instantiating with createObject() and then calling a public method to start the timer.
>
>Thanks in advance
>
>Costas
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.