#23599 [Opn]: Crash when using COM object property/method
| From: | zstomp at yandex dot ru | Date: | Fri, 16 May 2003 14:22:12 +0000 |
| Subject: | #23599 [Opn]: Crash when using COM object property/method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39789@lists.php.net to get a copy of this message | ||
ID: 23599
User updated by: zstomp at yandex dot ru
Reported By: zstomp at yandex dot ru
Status: Open
Bug Type: COM related
Operating System: Win2k, Win98
PHP Version: 4.3.1
New Comment:
Here's the test results: DllGetClassObject is called ok, that was my
fault. Object initialization is passed ok too. But, when execution
comes to reading from property, PHP crashes before property is read.
I can supply you with the ActiveX I have, if you wish.
Previous Comments:
------------------------------------------------------------------------
[2003-05-16 08:18:08] zstomp at yandex dot ru
Just tested with other object that had same problem before and it works
ok. Will try to investigate further.
------------------------------------------------------------------------
[2003-05-16 08:13:43] zstomp at yandex dot ru
I tested it with latest CVS version and got other error. Exception now
happens, as Windows reports, in "unknown module". I started PHP from
debugger and it seems like DllGetClassObject is not called.
------------------------------------------------------------------------
[2003-05-13 16:31:43] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-05-12 15:21:31] zstomp at yandex dot ru
$ean = new COM("AsBarcode.Barcode");
echo($ean->LineWidth);
$ean->Release();
$ean = NULL;
If I comment out line 2, it works fine. If I uncomment line 2, I get a
crash (null pointer in php4ts.dll) under Win98/PHP 4.3.1 and nothing
(no crash, but php stops and gets terminated in 30 secs timeout) under
win2k/PHP 4.2.
It doesn't happen with Word.Application that has only difference from
AsBarcode.Barcode: it's not a control.
The code above works under PHP 4.0
Please email me if you have anything on this including my possible
faults.
Thanks,
Eugene
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23599&edit=1