Hi everyone,
I'm hoping you all can give me some help. I've created a COM object which I'm calling from some PHP pages. When I go to call Release() on it, Apache and PHP throw some sort of exception which results in a modal dialog with a message like
The instruction at "0x0083412b" referenced memory at "0xdddddde5". The memory could not be "read".
I know this would normally point to an error in the COM Release() method, however the Release() method is the default one in IUnknown, so I doubt there's a bug there.
Here's my setup:
Apache 1.3.20
PHP 4.0.6 running as a module (php4apache.dll)
Win2k
If I simply execute the following code I get the above exception:
$com_object = new COM("COM_Object.Com_Object");
$com_object->Release();
When I go into the VC++ debugger to look at the exception, the call stack is in the php4ts library:
PHP4TS! 0083412b()
PHP4TS! 007b26a9()
PHP4APACHE! 100013f6()
APACHECORE! 6ff6afea()
KERNEL32! 77e8758a()
This is what makes me believe that the bug is not in my Release() method, since at this point Release() hasn't even been called. (Or maybe it's already been called.)
Anyway, I know this problem is a little complex, but I'd love any help you guys could provide. I can't seem to find a way to work around this. Thanks a lot,
Russ