CreateThread and VB6, Anyone got it working 
Author Message
 CreateThread and VB6, Anyone got it working

I did. Try downloading the Visual Studio Service Pack 2. I had the same problem with multithreadin in VB6 (it worked in VB5 but it was no longer working). I installed VSSP2 on my computer and started by mistake the application with multithreading code. And IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!
                                                                    Greatings.
    Has anyone managed to get this to work yet ?



Sat, 28 Jul 2001 03:00:00 GMT  
 CreateThread and VB6, Anyone got it working

Just because you weren't real clear...did you run the code in VB6's IDE or as a standalone, natively compiled EXE?  As MS has stated, compiling the code as P-code may circumvent CreateThread problems.  Also, I've found that VB6 IDE doesn't bark as loud as VB5's IDE with CreateThread.

If SP2 does make all the problems go away, I'd advise against it anyway.  I love CreateThread and I wish VB would support multithreading (without using COM) but until they explicitly do, I've chucked any development using CreateThread in VB.  Personally, I'm using powerbasic to handle my threading - it's so freaking easy in that tool, it makes me wonder at times why VB doesn't add it.

Regards,

Jason

    I did. Try downloading the Visual Studio Service Pack 2. I had the same problem with multithreadin in VB6 (it worked in VB5 but it was no longer working). I installed VSSP2 on my computer and started by mistake the application with multithreading code. And IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!
                                                                        Greatings.

        Has anyone managed to get this to work yet ?



Sun, 29 Jul 2001 03:00:00 GMT  
 CreateThread and VB6, Anyone got it working


Fri, 19 Jun 1992 00:00:00 GMT  
 CreateThread and VB6, Anyone got it working

I installed VB6 on my work PC with SP2, and calling CreateThread makes the EXE crash.  Sorry, but I couldn't confirm Adi's code.  The project I used can be downloaded in a zip file at:

http://www.execpc.com/~jrbock/ft.zip

Regards,

Jason

    Just because you weren't real clear...did you run the code in VB6's IDE or as a standalone, natively compiled EXE?  As MS has stated, compiling the code as P-code may circumvent CreateThread problems.  Also, I've found that VB6 IDE doesn't bark as loud as VB5's IDE with CreateThread.

    If SP2 does make all the problems go away, I'd advise against it anyway.  I love CreateThread and I wish VB would support multithreading (without using COM) but until they explicitly do, I've chucked any development using CreateThread in VB.  Personally, I'm using PowerBASIC to handle my threading - it's so freaking easy in that tool, it makes me wonder at times why VB doesn't add it.

    Regards,

    Jason

        I did. Try downloading the Visual Studio Service Pack 2. I had the same problem with multithreadin in VB6 (it worked in VB5 but it was no longer working). I installed VSSP2 on my computer and started by mistake the application with multithreading code. And IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!
                                                                            Greatings.

            Has anyone managed to get this to work yet ?



Mon, 30 Jul 2001 03:00:00 GMT  
 CreateThread and VB6, Anyone got it working

I donwloaded the zip file you posted, but.... it worked when I ran it.  I'm using VB6.0SP2.

  I installed VB6 on my work PC with SP2, and calling CreateThread makes the EXE crash.  Sorry, but I couldn't confirm Adi's code.  The project I used can be downloaded in a zip file at:

  http://www.execpc.com/~jrbock/ft.zip

  Regards,

  Jason

    Just because you weren't real clear...did you run the code in VB6's IDE or as a standalone, natively compiled EXE?  As MS has stated, compiling the code as P-code may circumvent CreateThread problems.  Also, I've found that VB6 IDE doesn't bark as loud as VB5's IDE with CreateThread.

    If SP2 does make all the problems go away, I'd advise against it anyway.  I love CreateThread and I wish VB would support multithreading (without using COM) but until they explicitly do, I've chucked any development using CreateThread in VB.  Personally, I'm using PowerBASIC to handle my threading - it's so freaking easy in that tool, it makes me wonder at times why VB doesn't add it.

    Regards,

    Jason

      I did. Try downloading the Visual Studio Service Pack 2. I had the same problem with multithreadin in VB6 (it worked in VB5 but it was no longer working). I installed VSSP2 on my computer and started by mistake the application with multithreading code. And IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!
                                                                          Greatings.

        Has anyone managed to get this to work yet ?



Mon, 30 Jul 2001 03:00:00 GMT  
 CreateThread and VB6, Anyone got it working

As a standalone EXE natively compiled?  Sorry to harp on this requirement all the time, but if that's the way you ran it, very interesting.  Weird that it would run on your PC and not mine (lord knows what's different, though ;) ).

Jason

    I donwloaded the zip file you posted, but.... it worked when I ran it.  I'm using VB6.0SP2.

        I installed VB6 on my work PC with SP2, and calling CreateThread makes the EXE crash.  Sorry, but I couldn't confirm Adi's code.  The project I used can be downloaded in a zip file at:

        http://www.execpc.com/~jrbock/ft.zip

        Regards,

        Jason



Mon, 30 Jul 2001 03:00:00 GMT  
 CreateThread and VB6, Anyone got it working

As a standalone EXE natively compiled?  Sorry to harp on this requirement all the time, but if that's the way you ran it, very interesting.  Weird that it would run on your PC and not mine (lord knows what's different, though ;) ).

Jason

    I donwloaded the zip file you posted, but.... it worked when I ran it.  I'm using VB6.0SP2.

        I installed VB6 on my work PC with SP2, and calling CreateThread makes the EXE crash.  Sorry, but I couldn't confirm Adi's code.  The project I used can be downloaded in a zip file at:

        http://www.execpc.com/~jrbock/ft.zip

        Regards,

        Jason



Mon, 30 Jul 2001 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. anyone gotten VB6 ActiveX doc to work?

2. CreateThread doesn't work with SP1 installed for VB6 either

3. Has anyone EVER gotten this one to work?? ;-((

4. Anyone gotten ListView SubItemImages + FullRowSelect + Sorting working?

5. Code works when run in VB6, gets error when compiled (Browse for Outlook Folder)

6. Code works when run in VB6, gets error when compiled (Browse for Outlook Folder)

7. Problem getting ChrW(8593) working in VB6.

8. VB 6: CreateThread: EXE works fine, IDE Blows up

9. Cant get CreateThread to work

10. Cannot make CreateThread work?

11. Windows Service Calling VB6 dll doesn't work but works with VB6

 

 
Powered by phpBB® Forum Software