From:             plamentodorov at lycos dot com
Operating system: Windows NT 4.0 SP6
PHP version:      4.3.2
PHP Bug Type:     COM related
Bug description:  OleMainThreadWndName: Apache.exe application error when accessing a 
COM object

Description:
------------
I am trying to load a COM object from the php and I get an
"OleMainThreadWndName: Apache.exe application error" when calling an
arbitrary method. 
Actualy I don't know if the problem is in the php. I have written the COM
server by myself (using Borland Delphi 6.0) but it works fine with the
test program.
The strange thing is that if I call com_set() or com_get() functions
before calling the object method the scripts works just fine.
Other info:
Apache 1.3.26 + PHP/4.3.2RC3 (running as an Apache module)
Extensions: php_openssl; php_xslt; 

Reproduce code:
---------------
<?php
//loading com object
$try = new COM('tryCOM.tryCoClass') or die('Unable to load COM object');
$value = 100;
//the damn thing works if I uncomment this
//com_set($try, 'Property1', $value);
$value = 1000;
$try->Method1($value);
unset($try);
?>

Actual result:
--------------
Message from the OS:
"OleMainThreadWndName: Apache.exe application error. The instruction
0x00020400 referenced memory as 0x0000000a. The memory could not be
"written"."

-- 
Edit bug report at http://bugs.php.net/?id=25586&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25586&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25586&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25586&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25586&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25586&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25586&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25586&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25586&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25586&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25586&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25586&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25586&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25586&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25586&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25586&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25586&r=float

Reply via email to