-
COM
in my application i'm having a method in which i make a thread and then i have to fire an event to my vb client but that i can do in two ways
1>i can post a message from secondary thread receive it in primary thread and foire the event from there.
2>i can directly fire event from secondary thread.
first scenario works properly but when i use second ,event is properly fired but if i put a break point at vb side(at event function) then it hangs.if i don't put any break point then it works fine here also.
i don't know why please help me
-
Re: COM
that's has to do with marshalling or more generally syncronization. 2 books which help on this, Advanced VB 6 by Matthew J. Curland & Inside COM by by Dale Rogerson.
you must be working in VB6, I found VB5 is much "friendly" in enforcing the COM thread rules. I haven't work with VB.Net yet, probably VB.Net do all the work for us, i.e marshall the interface pointer for us, but i doubt.
HTH
cksiow
http://vblib.virtualave.net - share our codes
-
Re: COM
thanks a lot after doing marshalling it worked