Results 1 to 6 of 6

Thread: How to create Mulit-threading Application[Resolved]

  1. #1

    Thread Starter
    Hyperactive Member nazeem_khan's Avatar
    Join Date
    Nov 2002
    Location
    India
    Posts
    305

    How to create Mulit-threading Application[Resolved]

    Can anybody tell me how to create a multi-threading application.

    Thanks in advance
    Last edited by nazeem_khan; Dec 22nd, 2002 at 08:42 AM.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try searching the forums for MultiThreading or Async there have been lots of examples of the different ways of doing this.

  3. #3
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    hi,
    the only way to create multi thread app in vb is to use ActiveX EXE.
    do not use CreateThread API (or some kind of function) because your app will crash.
    ActiveX EXE is an out of process COM server.
    u can configure the threads in the app, right click on project name and choosing Project Properties, u can define Thread Per Object which said: create new thread for each client, or Thread Pool, in that option app will create the client object in one of the threads it have (note: if u define Thread Pool of one object, VB will create all clients in the same thread which is much like in proc COM - ActiveX DLL).

  4. #4

    Thread Starter
    Hyperactive Member nazeem_khan's Avatar
    Join Date
    Nov 2002
    Location
    India
    Posts
    305
    Is it required to create the ActiveX as a separate project or i can create as a subproject in the exe project????


  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    What do you mean by 'subproject'?

    I don't think the IDE will let you manage both in the same group since they are both exes.

  6. #6

    Thread Starter
    Hyperactive Member nazeem_khan's Avatar
    Join Date
    Nov 2002
    Location
    India
    Posts
    305
    Thank you for your lightning response

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