bien, codeSMART tiene una opción para instalar el identificador global en su aplicación La primera llamada a SetUnhandledExceptionFilter (win api) debe instalarse cuando cargue el formulario principal o principal de su módulo cuando cierre el programa así que llame a SetUnhandledExceptionFilter.
el código es poco largo para copiar nombres y Métodos API llama
Public Sub InstallGlobalHandler()
On Error Resume Next
If Not lnFilterInstalled Then
Call SetUnhandledExceptionFilter(AddressOf GlobalExceptionHandler)
lnFilterInstalled = True
End If
End Sub
Public Sub UninstallGlobalExceptionHandler()
On Error Resume Next
If lnFilterInstalled Then
Call SetUnhandledExceptionFilter(0&)
lnFilterInstalled = False
End If
End Sub
También aquí se encuentra Record declaraciones Estructura y APIs para el módulo
- CopyMemory
- SetUnhandledExceptionFilter
- RaiseException
' Public enums
-EExceptionType
-EExceptionHandlerReturn
-Private Const EXCEPTION_MAXIMUM_PARAMETERS = 15
' Private record structure
-Private Type CONTEXT
'Structure that describes an exception.
-Private Type EXCEPTION_RECORD
'Structure that contains exception information that can be used by a debugger.
-Private Type EXCEPTION_DEBUG_INFO
-Private Type EXCEPTION_POINTERS
Tome un revisado que How to route the exe exception back to VB6 app?
+1 Me gustaría también muy gustaría saber cómo hacer esto – MarkJ