CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: COM

  1. #1
    Join Date
    Sep 2001
    Posts
    169

    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


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    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

  3. #3
    Join Date
    Sep 2001
    Posts
    169

    Re: COM

    thanks a lot after doing marshalling it worked


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured