Re: VB6.exe crashes occasionally

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



Someone kirjoitti:
Does your program use subclassing or Windows hooking? These usually cause crashes if there is a runtime error, or a code that does not undo the subclassing or hooking. Look in your code for these functions:

SetWindowLong
SetWindowsHook
SetWindowsHookEx

You could have an ActiveX for subclassing, so the above may not be present in your code.


I have Windows hooking done with SetWindowLong but VB crashes even if I comment it.
.