Discussion:
call block
(too old to reply)
iso
2005-12-09 21:56:18 UTC
Permalink
hi everybody,
I have faxobject and timer in my application. It seems like timer event and
faxobject evnts block each other. How can I run them in thread.
Thanks
iso
swdev2
2005-12-11 16:39:01 UTC
Permalink
IF I WERE U - on the init of the timer method call -
check to see if the faxobject state is active, then if so, don't use the
timer object at all.

OR

it may be you need to decouple something in your application, making it 2
applications where one does some workhorse stuff (like faxing) and the other
is the regular application.

I'm sure there are other approaches to this, and it may be that I've indeed
missed the main gist of the issue you're trying to solve. Tell me more
about your faxobject? which one? which vendor? how's it coded up to interact
with VFP?

hth - regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net
Post by iso
hi everybody,
I have faxobject and timer in my application. It seems like timer event and
faxobject evnts block each other. How can I run them in thread.
Thanks
iso
Michael Drozdov
2005-12-12 13:25:18 UTC
Permalink
iso,
Post by iso
faxobject evnts block each other. How can I run them in thread.
try to see code example on http://vfpdev.narod.ru/util_e.html - tsthread.zip
[12.12.2005] (205KB) - C++ code of example Win32Api-dll (MS VS.NET 2003 SP1)
for create background thread in VFP 9.0 (or later) applications. On the
demonstration example usage obtained testThread.dll for call from background
thread VFP-COM-component.

Best regards.
íÉÈÁÉÌ äÒÏÚÄÏ×, é÷ó óÏÆÔ, ðÅÒÍØ, òÏÓÓÉÑ
[Michael Drozdov, ICS Soft, Perm, Russia]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My Page: http://vfpdev.narod.ru/
ICS Page: http://www.ics.perm.ru/ [on Russian]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Post by iso
hi everybody,
I have faxobject and timer in my application. It seems like timer event and
faxobject evnts block each other. How can I run them in thread.
Thanks
iso
iso
2005-12-12 15:26:56 UTC
Permalink
thanks for reply,
here is the scenario
every some second timer event check the DB and if Field1 is "1" then
application send job to fax (window fax object). After the job done the fax
fired job complete event to the application. to cathch the event of fax I
cretae Class as

DEFINE CLASS clFaxEvents as custom
IMPLEMENTS IFaxServerNotify IN "FAXCOMEX.faxserver"
PROCEDURE IFaxServerNotify_OnIncomingJobAdded(.........some other events
the problem is when timer events is fired, at same time if the fax events
also be fired.

thanks
iso
Post by iso
hi everybody,
I have faxobject and timer in my application. It seems like timer event
and faxobject evnts block each other. How can I run them in thread.
Thanks
iso
Continue reading on narkive:
Loading...