CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15
  1. #1
    Join Date
    Nov 1999
    Location
    NY
    Posts
    906

    VB 6 crashes during debug

    I am running Win NT 4.0 SP6.
    When debugging my VB program, I step into my VB DLL, which calls an Err.Raise 5 (on some error).

    At this point, VB6.EXE crashes. Any idea what might be going on ? I have Visual Studio 6 SP 3.

    Thanks,
    Kailash


  2. #2
    Guest

    Re: VB 6 crashes during debug

    OK.....THE TRICK IS TO GET THE EXE TO WORK PROPERLY....AND TO DO THAT YOU MUST INSERT THE DATA INTO THE FILE WITHOUT ALERTING THE DEBUG ACTION SEQUENCE IN ORDER TO DO THAT YOU MUST INSERT A MODULE 837538....TYPE THOSE NUMBERS IN WITHOUT EXECUTING THE FORM AND SHOWING THE MODULES TRUE COLORS BECAUSE ONCE THE DEBUG FORM CAUSES THE WARNING AND TRIES TO CATCH THE COMPILER OFF GUARD. THIS IS ALL IN THE MATH SO JUST USE INT 63, 6374, 747, AND INT 00112 ONCE YOU INPUT THOSE INTO THE DEBUG FORMATION OF THE MODULES CONSOLE AND YOU WILL BE ALL SET TO GO! GOO LUCK BUDDY!


  3. #3
    Join Date
    Nov 1999
    Location
    NY
    Posts
    906

    Re: VB 6 crashes during debug

    I am sorry my friend, but I did not quite understand. I am a relative newbie at VB so, maybe I don't dig the "lingo".

    If you elaborate a bit, I may be able to catch up. Sorry about that.

    Kailash


  4. #4
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: VB 6 crashes during debug

    What an absolute load of rubbish.

    This is a VB programming forum - not some site where you can just throw in 'buzz' words and hope that someone understands your meaningless post.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  5. #5
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: VB 6 crashes during debug

    Are you using :

    1 - Any third party OCX / DLL's ?
    2 - Any WinAPI calls ?
    3 - Any Subclassing at all ?
    4 - Loading more than one project at a time (ie. a 'vbg' group) ?

    All of these can cause the kinds of crashes you are experiencing.

    I had a similar problem in VB5 when it would crash just loading a project - in the end I found removing the '.vbw' files from the project directory made some difference (although it shouldn't).


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  6. #6
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: VB 6 crashes during debug

    You had to remove *.vbw files to make it work? Wow.. that's a huge bug I'd say...

    Well if you can give us some more details of what your project is doing we might be able to help more. I'd definitely look at the points Chris mentioned, they might help a lot.

    Crazy D :-)
    "One ring rules them all"

  7. #7
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: VB 6 crashes during debug

    >You had to remove *.vbw files to make it work? Wow.. that's a huge bug I'd say...

    Strange isn't it ? As far as I can tell, the VBW file just contains the positions of the windows that were open.

    Other 'strange' fixes that I've done over the years include :

    - Re-organizing a 'vbg' file to change the order of loaded projects (that stopped a nasty GPF I was getting loading a project group)
    - I also found that removing other 'temporary' files that Visual Basic creates behind the scenes sometimes helps with these 'random' crashes - although I have no idea how this stops the crashes happening.


    VB huh ? Don't you just love it.



    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  8. #8
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: VB 6 crashes during debug

    *LOL* and my boss is wondering why I complain about VB...

    And when are they fixing the bug that the project explorer stays on the desktop while VB is minimized? :-)

    Oh and I had a problem with my scrollwheel which I use for souble click.. *all* windooz programs do the doubleclick trick when I click on the wheel, except for VB and VB programs.. then it goes into scroll mode... any ideas?

    Btw, I heard something that Borland releases a VB??

    Crazy D :-)
    "One ring rules them all"

  9. #9
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: VB 6 crashes during debug

    >And when are they fixing the bug that the project explorer stays on the desktop while VB is minimized? :-)

    That's a new one on me - are you running in SDI mode ?

    >Oh and I had a problem with my scrollwheel which I use for souble click.. *all* windooz programs do the doubleclick trick when I click on the wheel, except for VB and VB programs.. then it goes into scroll mode... any ideas?

    Sometimes I just can't get the mousewheel to work with VB at all - once it stops working with VB, I can't get it to work again without rebooting the machine !

    >Btw, I heard something that Borland releases a VB??

    News to me - tell me more




    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  10. #10
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: VB 6 crashes during debug

    Nope running in MDI mode.. most windooz are docked, except for teh debug window and the project explorer. Happens with both btw, I minimize VB IDE and I have to close the debug window and project explorer. Pretty annoying.. have seen it with others too, several machines. AFAIK all of them are running NT, some server, some workstation(4 of course, SP5 or +)

    My scrollwheel does always scroll,well since I installed the intellisoftware :-)

    And when do they stop clearing the clipboard when VB starts? That annoys me for so long now *LOL*

    Hmmm Borland... A friend told me when he tried to convince me to move over to Linux, that Borland has a VB... I heard that Borland is working on IDE's for C++ and Delphi (Java is there already) with which you can compile for several target platforms on 1 machine... don't know how much of that is true though. Would be nice though :-) But a VB from Borland... can't find anything about it. Sounds weird to me though (maybe he saw VB for VisiBroker, and he thought it meant Visual Basic...).
    Hmm while this typing, I was searching the borland site... There was a survey last summer, about what IDE ppl would want to use in linux, languages, etc, and VB (basic...) has a high score...
    That's all I can find on the Borland site when searching for basic. Somehow I doubt that Borland would bring out a VB since they have Delphi, which they announced as the ease of VB and the power of C++. Why would they create something that is weaker then that (unless, which I don't know since I don't know Delphi...) Delphi is not *that* good as they want it to be :-)
    When I find more, I'll keep you informed :-)

    Crazy D :-)
    "One ring rules them all"

  11. #11
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: VB 6 crashes during debug

    I've just tried it - yuk! I tend to keep the project window docked anyway, but this is definately an annoying bug.

    >And when do they stop clearing the clipboard when VB starts? That annoys me for so long now *LOL*

    Now that is very annoying ! It's been bugging me for a while, where you'd see a bit of code on the net you want to try out - copy it to the clipboard, start vb and it's gone! Let's just hope that with all the cool new features they're putting into the language, M$ don't forget that the IDE still needs a bit of work (hence this thread!)

    The Borland stuff is interesting - I use JBuilder here at work and it really sucks. I've got 192 mb of memory and the IDE is just about usable (not when you try and bring up the help though). I suppose they're trying to kill lot's of birds with a slab of concrete - when will people learn that a Java GUI is *very* slow - I'd much rather they used some cross platform C++ library (XVT is one that I've used in the past - although I don't think it exists anymore). I also read somewhere that borland are giving away it's C++ 5.5 compiler (no GUI IDE though - you still have to pay for that) - still, it's a worthwhile investment



    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  12. #12
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: VB 6 crashes during debug

    Hehe funny since Corel stopped pretty soon shipping of their Java Office suite... maybe Borland think they can change the world ;-) But yeah Java is extremely slow... But if Borland indeed releases such a cross-platform IDE.. let's pray it's not in Java :-))

    If I understood it right, the new VB would fit in the Visual Studio IDE, not that that doesn't have any bugs.. *S* but I guess that if that's true, we can forget that they fix current bugs of the VB IDE... although I'd appreciate a service pack (tis M$ afterall :-) Do M$ have royalties for the word Service Pack? *L*

    Yeah Borland released their C++5.5 compiler for free, indeed, compiler only, but it's something :-) And geez how can we expect they give out Builder for free :-) (hehe if you check Slashdot often, there was a pretty big threat complaining that they didn't release the source of the compiler.. geeez....) oh here's the link ... http://www.inprise.com/bcppbuilder/freecompiler/
    I wonder if I can put this compiler to use it with Builder 4 :-)

    Crazy D :-)
    "One ring rules them all"

  13. #13
    Join Date
    Nov 1999
    Location
    NY
    Posts
    906

    Re: VB 6 crashes during debug

    I use a third-party DLL (AspHttp).
    I am loading a .vbg consisting of my EXE project and my DLL project.

    No WIN API calls and no subclassing. Looks like we are talking about the same thing here.

    I'll try removing the vbw files and see what happens. Thanks for your time.

    Kailash


  14. #14
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: VB 6 crashes during debug

    What exactly does the AspHttp control do ? Is it something that you could remove from your project (comment out calls / return dummy values where it's expecting to be called) and see if the crashes are still happening.

    If it's a C++ component being used in VB, then this could also cause some problems (especially at debug time).

    As for the 'vbw' - that was a complete fluke that I ever found it - I must say that I encountered the problem with the 'vbw' files in VB5 and not in VB6 (yet).


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  15. #15
    Join Date
    Nov 1999
    Location
    NY
    Posts
    906

    Re: VB 6 crashes during debug

    AspHttp allows you to post an HTTP request to any URL any retrieves the result. At least that's what I am using it for.

    It is much like the newer Microsoft Inet Control, but just HTTP protocol. I have no idea if it was developed in VC++, but it is very likely since it was developed using direct WinSock API for speed.

    If you are interested, it is listed at http://www.serverobjects.com/products.htm.

    Meanwhile, I haven't got to trying your suggestion yet... will post the results later today.

    Kailash





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

Featured