I've got a program that crashes and gives me the following message.

VB6 caused an invalid page fault in
module OLEAUT32.DLL at 0177:7feab223.
Registers:
EAX=0000001c CS=0177 EIP=7feab223 EFLGS=00010206
EBX=00000024 SS=017f ESP=007fdf08 EBP=007fdf88
ECX=00000003 DS=017f ESI=03924b3c FS=6a17
EDX=00000000 ES=017f EDI=00000024 GS=0000
Bytes at CS:EIP:
8b 07 53 57 ff 50 10 8b 0f 57 ff 51 08 53 e8 c8
Stack dump:
000004c5 03924b4c 007fe2f0 7fe8382f 03924b3c 00004c50 039197dc 007fdf88 007fe2f0 7fe83bd8 039197dc 03924b3c 00004c50 00000880 00000010 007fdfa8

The subroutine that VB crashes in is simply reading a binary file using a Crescent DLL (third party DLL), and storing the data in memory. There isn't anything wrong with the code, because I'm copying it directly from another application where it works. VB crashes (not just the program) on the Exit Sub statement, which implies to me there's some kind of memory allocation error. If you have any suggestions at all, I'd definitely appreciate them. Thanks