I am using ODBC to link up VB and MySQL. There is an intermittent problem where my VB program generates an illegal operation error when it is trying to retrieve data from MySQL. Is this a common problem in VB programs, or did I miss something in the program? By the way, here's the exact error message generated by VB:

VB6 caused an invalid page fault in module OLEAUT32.DLL at 0167:65343dd9

My oleaut32.dll is version 2.40.4514

Btw, when Debugged in VC++ it gives a diiferent error message saying:
Unhandled exception in VB6.EXE (oleaut32.dll) 0xC000005: Access Violation

occurs on:
65343F19: rep movs dword ptr [edi], dword ptr [esi]

Anybody has a clue?