harmmeijer
Programmer
I have a standart exe vb project sub main starts it up
This is the code:
Option Explicit
Private Declare Function SetTimer Lib "user32" _
(ByVal hWnd As Long, _
ByVal nIDEvent As Long, _
ByVal uElapse As Long, _
ByVal lpTimerFunc As Long) As Long
Sub main()
Dim bs As Long
SetTimer bs, bs, 200, AddressOf mysub
End Sub
Sub mysub()
Debug.Print Now()
End Sub
After pressing F5 Now() is printed one time and then Dr. Watson takes over got the following from the application log:
The application, EXE\VB6.dbg, generated an application error The error occurred on 3/20/2002 @ 11:39: 9.391 The exception generated was c000001d at address 0012fe9d (<nosymbols>)
I am using win NT workstation versoin 4.00.1381.
Rebooted several times and downloaded some example code wich basically uses the same code (only with window handle HOW DO YOU USE THAT IN A DLL) but these crash in the same way.
This is the code:
Option Explicit
Private Declare Function SetTimer Lib "user32" _
(ByVal hWnd As Long, _
ByVal nIDEvent As Long, _
ByVal uElapse As Long, _
ByVal lpTimerFunc As Long) As Long
Sub main()
Dim bs As Long
SetTimer bs, bs, 200, AddressOf mysub
End Sub
Sub mysub()
Debug.Print Now()
End Sub
After pressing F5 Now() is printed one time and then Dr. Watson takes over got the following from the application log:
The application, EXE\VB6.dbg, generated an application error The error occurred on 3/20/2002 @ 11:39: 9.391 The exception generated was c000001d at address 0012fe9d (<nosymbols>)
I am using win NT workstation versoin 4.00.1381.
Rebooted several times and downloaded some example code wich basically uses the same code (only with window handle HOW DO YOU USE THAT IN A DLL) but these crash in the same way.