Home
> Uncategorized > Error in OleAut32.Dll Offset 4c47
Error in OleAut32.Dll Offset 4c47
AppName: vb6.exe AppVer: 6.0.97.82 ModName: oleaut32.dll
ModVer: 5.1.2600.2180 Offset: 00004c47
Unhandled exception at 0x77124c47 in VB6.EXE: 0xC0000005: Access violation reading location 0x80020000.
77124C47 mov eax,dword ptr [eax-4]
This is a lovely error that crashes VB6 if you make a little typo, and here’s how to fix it:
If you make write code like this
Dim rsProduct As New ADODB.Recordset
sql = " select * from orderlines "
rsOrderLines.Open sql, DSN
Do While Not rsProduct
‘ process rsProduct
rsOrderLines.MoveNext
Loop
The application will compile, But, note that I have accidentaly ommitted the ".EOF" in the while loop. This causes VB6 to crash with the above error. To Fix it, use the EOF.
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback