Re: VB6 crash upon exit !!

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Jim" <Jim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B08DB90B-D8EA-4A5F-807D-24ED16803C8E@xxxxxxxxxxxxxxxx
Since I bought a new PC and re-nstalled VB6.0, it crashes (no error
message)
when I stop debugging or try to exit my VB program.
I noticed it crashes only when I have used winsock at least once before
exiting.

Do you mean VB crashes when it breaks into the IDE(after an error or when
the program ends)? If so, then you need to compile first(Or use Start with
Full Compile) to make sure that VB won't stop for compilation errors. If you
are using subclassing, then the IDE will usually crash when it breaks.
Search the newsgroups for IsInIDE() function to disable the subclassing when
you don't need it while using the IDE. Alternatively, you can run the EXE,
and use OutputDebugString() with a debug viewer instead of Debug.Print to
see debugging messages from the EXE. Here is one debug viewer:

http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx




.



Relevant Pages

  • What version of RHIDE do you use?
    ... work there (it says i need compile with -g but it already is). ... on my system - eg. crashes when loading some source file but debugging ... is fully working. ... assembler window it crashes). ...
    (comp.os.msdos.djgpp)
  • Re: VBA and VSTO
    ... excel crashes if a file is not compiled. ... makes the compilation invalid (I can see it since the compile item ... VBA (the event-cycle must stay in VBA I guess, so I would like to call ...
    (microsoft.public.excel.programming)
  • Re: Large Ruby Apps ?
    ... all compile perfectly with all warnings on. ... In those languages, I rely on unit testing, static checkers, AND runtime checking to insure that I get it right. ... i've been writing pretty much nothing but ruby for 5 years now and have never, like never, required a debugger or spent more that an hour debugging my code. ...
    (comp.lang.ruby)
  • Re: How to avoid undesired default values?
    ... I am using "gfortran" to compile my codes. ... If you did know you would not be debugging. ... What do you think of subscript range checking as a debugging feature? ...
    (comp.lang.fortran)
  • Re: VBA and VSTO
    ... (but the opposite is not true: compiled on XP crashes on 2000). ... Have you got the add-in working now in all Excel versions? ... VBA (the event-cycle must stay in VBA I guess, ... compile is black, not greyed out, saying my project is not ...
    (microsoft.public.excel.programming)