Hello
I posted this problem yesterday and got one reply which
wasn't what I was looking for. Can anyone take a look and
a guess please?
Thanks
As part of a project I am working on, I am developing an
ActiveX exe which acts as an alarm logger. if any of the
back office processes (standard exe) fail, they invoke a
method on the activeX exe (ReceiveAlarm) which raises an
alarm event (AlarmOccured). the idea is that one can have
a monitopring program (standard exe) which when running
will immediately receive this alarm event and display
something on the screen to alert someone. Nothing tricky
so far, but as a test, I get one of the processes to call
the activeX exe's Receivealarm method, but the monitoring
application doesn't receive the alarm. I have debugged it
and cansee that when the activex receives the ReceiveAlarm
method, it raises the AlarmOccured event, but no luck with
the monitor app. If I manualy raise AlarmOccured for test
purposes, say by using a timer, the monitor app receives
it. The activex exe's instancing property is set to
multiuse, but it is as if, the active X can only talk to
one client. I am using simple event notification method. I
have tried many things. If you look at the attached file,
I have modified a very simple version of the VB sample's
coffee program (very short code). one is the server, one
is the client (analogous to my monitor app) and the last
is the caller (analogous to my backoffice process)
Any help would be appritiated as i am getting quite
desperate.
Regards
Nima Kamkar
|
|
Coffee sample.txt
2K
Download
|