#23599 [Fbk->Opn]: Crash when using COM object property/method

From: Date: Fri, 16 May 2003 13:13:44 +0000
Subject: #23599 [Fbk->Opn]: Crash when using COM object property/method
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39786@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: Feedback +Status: Open Bug Type: COM related Operating System: Win2k, Win98 PHP Version: 4.3.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#39786) next »