Results 1 to 23 of 23

Thread: VB crashes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    VB crashes

    Hi im working with vb 6 and after a few seconds (sometimes minutes) of working it just crashes.

    the following is diplayed:

    Visual Basic has encountered a problem and needs to close. We are sorry for the inconvenience.
    It's one of those "send error report" windows. I've uninstalled vb6 and reinstalled to no avail. please can someone help it's quite frusutrating. I cant do anything in vb.

    the error information details are

    AppName: vb6.exe AppVer: 6.0.81.76 ModName: vb6.exe
    ModVer: 6.0.81.76 Offset: 000581f1
    thanx in advance

  2. #2

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB crashes

    And speaking of projects, does this happen with ALL projects, or just one specific project?

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB crashes

    amarbolla,

    Did you install the VS/VB SP's also????

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    It does this with all projects regardless.

    sorry randem, what are VS/VB SP's?

    i just uninstalled all components and reinstalled

    thanx guys

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB crashes

    There are service packs that need to be installed with Visual Studios and Visual Basic. You will need them for VB to run correctly.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    I seem to have isolated the problem the error ocurs when i put a text box or radio button, or list box or anyting complicated onto the onto a form and try to run the program, or click on the form with the object on it in to view it from the project explorer. The form works fine with a command button though!!

    when i get the error debug takes me into visual c++ the Diassembly shows the following error

    Code:
    004581F1   mov         ecx,dword ptr [eax]
    hope this means something to any one!

    thanks again peeps

  8. #8

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    where can i get these service packs? i have professional version of visual studio (licensed). vb 6 used to work before, c++ works fine iv'e been using that for months

    thanks

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    yes it happens with all new project that i try to compile
    thanks

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB crashes

    Microsoft's Web site. Just go there and do a search for "Service Packs"

  12. #12
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB crashes

    Another question.

    When was the last time you ran ScanDisk or Defraged your hard drive?

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    right iv just run (vbrun60sp6.exe) from the microsoft sit and had no luck.

    i ran scandisk not so long ago but i havn't defrag in a while should i do both now?
    in fact i will!!

    thanks!

  14. #14
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB crashes

    Quote Originally Posted by amarbolla
    right iv just run (vbrun60sp6.exe) from the microsoft sit and had no luck.

    i ran scandisk not so long ago but i havn't defrag in a while should i do both now?
    in fact i will!!

    thanks!
    The only thing that makes any sense (if you have installed the service packs) is that you have a bad memory location or something along those lines that defrag might take care of.

    Another thing to try, just to eliminate any possibilities, is to use the same CD that you use to install VB on your machine, and install it on another machine.

    If you have the same problem on the other machine, then maybe you have a bad CD.

    If you don't have the same problem on the other machine, then the problem is probably your machine itself.

  15. #15

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    i do actually have the same cd installation of vb 6 on my brothers pc, his version works fine

    thanks

  16. #16
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB crashes

    Quote Originally Posted by amarbolla
    i do actually have the same cd installation of vb 6 on my brothers pc, his version works fine

    thanks
    Then I'm guessing it has something to do with your machine itself.

    Lets see what happens after a defrag.

  17. #17

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    cheers see you in a bit

    thanks

  18. #18
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB crashes

    That happen to me a long time ago. I believe I had to rename the VB.ini file and rerun VB and all was well.

  19. #19
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: VB crashes

    randem, it would be interesting if you looked at your vb.ini and the one you renamed and found the difference between them. Especially if one wasn't human readable. (It should be all plain text.)

  20. #20
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: VB crashes

    Quote Originally Posted by amarbolla
    where can i get these service packs?
    http://msdn.microsoft.com/vstudio/do...6/default.aspx
    Quote Originally Posted by amarbolla
    right iv just run (vbrun60sp6.exe) from the microsoft sit and had no luck.
    vbrun60sp6.exe is only the basic runtime files. The service pack updates all additional ActiveX controls as well.

    Download Service Pack 6 for Visual Basic 6.0, Visual C++ 6.0 with Visual Source Safe 6.0d as either a single download or a multi-part download.

    You can download the Full Version of Service Pack 6, Vs6sp6.exe - 62.7Mb or 8 Individual downloads.

    You can download just Service Pack 6 for Visual Basic 6.0 which is Vs6sp6B.exe - 27.9Mb or 8 Individual downloads.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  21. #21
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB crashes

    Al42,

    Yes, but that doesn't make a difference. If it is corrupted, it is corrupted. It could be a simple a a CR when there should be a CRLF. It all depends on the level of the person who wrote the ini Parser for the program.

    It was something like that anyway...

  22. #22

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    27

    Re: VB crashes

    wehey!! peeps!!
    defrag didnt fix it but. . .



    . . . Vs6sp6.exe did the job! no more crashes! thanks to everyone in the forum!! if i ever hav any more vb problems (god forbid) i'll know where to come!

    thanks again to everyone who posted!

  23. #23
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: VB crashes

    Now that we've helped you, you can help us by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button which will let everyone know that you have your answer. Also if someone has been particularly helpful, or even particularly unhelpful, you have the ability to affect a their forum "reputation" by rating their post.

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