I get these errors intermittently using a 3rd party COM object, under VB or
Access (in a module). These seem to be happening at a similar instruction
location.
Instruction at 0x77fcb032 referenced memory at 0xd18b4104. Memory could not
be "written"
Instruction at 0x77fcb7cf referenced memory at 0x00000000. Memory could not
be "written"
Instruction at 0x77fcbee8 referenced memory at 0xfffffffe. Memory could not
be "written"
Relevant pseudo-code:
1. Do Loop (ie 2000 times)
2. Dim obj as new ObjectType
3. response = obj.Method()
4. obj.close
5. Next
The errors always happen on the 3rd line. I've tried many variations of Dim
or Set and Close or Nothing. The code always crashes around the 500th
iteration, at the above memory locations.
Any ideas or explanations?
Thanks