we have got 3 instances.
one driver and two applications.
ok
setevent() is in the driver only.

now there r two cases which have to be looked for ......

1. if am passing the address of setevent() and waiting for that event
(waitforsingleobject)
in one single application or the same application. it is working fine . no
problem.....

the trouble comes in the 2nd case......
2. passing the address of event and waiting for that event
(waitforsinglrobject)
in different thread and then seeting this event in driver in ISR. event is
not trigerred .....
in the first point the event setting is happening in normal driver function
not in ISR

what can be the problem. .....??????

hope to get a reply soon...

thnaks in advance

Re: setevent problem by Michael

Michael
Fri May 27 08:35:51 CDT 2005

Not quite sure I followed all that, but perhaps you need a manual reset
event? To do that, you'd pass TRUE as the first parameter in the call to
CreateEvent.

--
Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com


"sabya" <sabya@discussions.microsoft.com> wrote in message
news:64B8EA6E-7302-4162-B93B-08420E8A20BE@microsoft.com...
> we have got 3 instances.
> one driver and two applications.
> ok
> setevent() is in the driver only.
>
> now there r two cases which have to be looked for ......
>
> 1. if am passing the address of setevent() and waiting for that event
> (waitforsingleobject)
> in one single application or the same application. it is working fine . no
> problem.....
>
> the trouble comes in the 2nd case......
> 2. passing the address of event and waiting for that event
> (waitforsinglrobject)
> in different thread and then seeting this event in driver in ISR. event is
> not trigerred .....
> in the first point the event setting is happening in normal driver
> function
> not in ISR
>
> what can be the problem. .....??????
>
> hope to get a reply soon...
>
> thnaks in advance
>



Re: setevent problem by Bruce

Bruce
Fri May 27 08:41:39 CDT 2005

Use named events and create the event in each app.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"sabya" <sabya@discussions.microsoft.com> wrote in message
news:64B8EA6E-7302-4162-B93B-08420E8A20BE@microsoft.com...
> we have got 3 instances.
> one driver and two applications.
> ok
> setevent() is in the driver only.
>
> now there r two cases which have to be looked for ......
>
> 1. if am passing the address of setevent() and waiting for that event
> (waitforsingleobject)
> in one single application or the same application. it is working fine . no
> problem.....
>
> the trouble comes in the 2nd case......
> 2. passing the address of event and waiting for that event
> (waitforsinglrobject)
> in different thread and then seeting this event in driver in ISR. event is
> not trigerred .....
> in the first point the event setting is happening in normal driver
function
> not in ISR
>
> what can be the problem. .....??????
>
> hope to get a reply soon...
>
> thnaks in advance
>