Results 1 to 4 of 4

Thread: Multithreading... :-(

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Greece
    Posts
    164

    Multithreading... :-(

    Hello,

    I wrote a program that fires a couple of threads using the common CreateThread API call. Everything works just fine from the IDE. HOWEVER, after running the compiled program it I get an error when calling the thread. (tried ActiveX-EXE and Standard-EXE)



    Does anyone know if this is a VB6 - sp5 fault ?

    Thanks

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I'd forget about multithreading and VB. You can do that with C++ or delphi.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    grantfrench
    Guest
    VB does for some reason have a problem with multi threading. The easiest way to get around this is by using multiple activeX controls such as the Timer control as this will allow you to do multi threading in a way. Basically get several timers to fire off different function/API calls and they should run at the same time, independant of each other.

    Hope this helps, if you need an example or a clearer explaination just say.

    Grant French
    [email protected]

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Greece
    Posts
    164

    Sure, but...

    If you have an example that works, sure help me out !!

    However, I use multithreading and it works perfectly !! (in the IDE)
    My problem is at run-time : when the thread is launched, I get a GPF. Why ???? This must be a VB6 run-time fault, mustn' it ??,

    Thanks

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