Search:

Type: Posts; User: lozware

Search: Search took 0.04 seconds.

  1. Replies
    47
    Views
    14,233

    Re: Winsock & Multithreading with Activex EXE

    DigiRev, what do you mean by having the actual connections on separate threads? A network connection under windows is simply a socket handle, and it's owned by a process, not a thread. Are you...
  2. Replies
    47
    Views
    14,233

    Re: Winsock & Multithreading with Activex EXE

    Hi AKSHU,

    Just a quick word of warning about Woka's method of multithreading:

    Woka's method isn't true multithreading in the sense of you have 1 process that spawns multiple threads. Instead he...
  3. Re: New code for simulating multithreading in VB6...

    Right - I am sorry, but I wasn't aware that my knowledge in VB and multithreading was reflected in my post-count.

    si_the_geek:
    Don't patronise me.

    Wokka:
    Good luck with your code, but I will...
  4. Re: New code for simulating multithreading in VB6...

    I still think you should give it a go, you havent seen it running yet. I know you have seen the code in the ZIP file, but unless you are either super-naturally clever, or have some sort of built-in...
  5. Re: New code for simulating multithreading in VB6...

    IMO I prefer my method. If you need to read a property from the busy thread, then make a new thread to do so... like I said, it makes sense. If you actually run the compiled EXE of the project I...
  6. Re: New code for simulating multithreading in VB6...

    Well yeah, that’s kinda pointing out the obvious. A thread is just that... a thread. If any thread is busy (whether it was written in C++ or VB), then it wont respond. If you wanted to have the...
  7. Re: New code for simulating multithreading in VB6...

    Where abouts are you saying it would freeze up? If I were to put that loop in one of the threads it would not freeze up - I can give you a working example if you want.
  8. Re: New code for simulating multithreading in VB6...

    Ok, here we go...

    1) Create a New ActiveX EXE project.

    2) Go into Properties, and select 'Thread per Object' (under the General tab), and set the Start-up object to 'Sub Main'.

    3) Then click...
  9. Re: New code for simulating multithreading in VB6...

    Whooooo! I just learned how to multithread properly (i.e. Multiple threads under just 1 process). Its absolutely amazing, but I’m still having a bit of grief with the ol' Winsock... I’m getting...
  10. Load a form-based Winsocket Array from a Class

    Hi Guys,

    I have a 2 Winsock controls on a form, one called WAN (which is a control array) and one called Listener. I also have a Class Module in this application, which has the following code...
    ...
  11. Re: New code for simulating multithreading in VB6...

    It does work, but not very well... this is why I seeked guidance in the first place.

    There is a delay between the time that the new connection is accepted, and the time it takes for the new...
  12. Re: New code for simulating multithreading in VB6...

    But how is that different from what I am doing at the moment? At the mo I have an ActiveX EXE that listens for connection,s nd accepts them. Then, when it does accept a new connection, it loads...
  13. Re: New code for simulating multithreading in VB6...

    AAAAAAAAARRGGGGGGGGGHHHHH!!!!!!!!

    Thanks anyway, nice code.

    (p.s. Why did you suggest using this code if you knew that it wouldnt work?!?!)
  14. Re: New code for simulating multithreading in VB6...

    haha, ok.

    But did you take a chance to look at my other problem - its in my last post (I editted it in, its to do with using Winsock).
  15. Re: New code for simulating multithreading in VB6...

    In the demo that I am using there are only two applications, and they alk to each other. One says Sausages, and the other says Growl. Dont worry about that though, I've worked it out now (I've just...
  16. Re: New code for simulating multithreading in VB6...

    Again, I apologize for bringing up an old thread, but I was wondering...

    Can you have more than 2 applications that work in a multi-threaded state?

    I am planning on having 1 main ActiveX...
  17. Replies
    47
    Views
    14,233

    Re: Winsock & Multithreading with Activex EXE

    Ok, first of all I must say that I am new here, and I am VERY sorry for bringing up this 1-year old thread... but I have searched long and hard for these answers, and this thread is the only hope...
Results 1 to 17 of 17



Click Here to Expand Forum to Full Width