Andrew Borley wrote:
On 1/9/07, Simon Laws <[EMAIL PROTECTED]> wrote:
I just spent a little time trying to get C++ SCA to load my PHP
extension
dll. The error I was getting was.
820:5044 SystemConfigurationException raised: Unable to load library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll
I had forgotten from the last time that I did this that SCA goes
looking for
dlls to load based on the TUSCANY_SCACPP (I believe) and then tries
to load
the dlls that it finds. So I spent a little time looking at this error
message wondering why it couldn;t load a dll that clearly it knew
exactly
the right path for.
Of course I had missed the dll location from my path. Once I fixed
this I
got the same message and eventually realized that the path needed to be
extended to include the dependencies of tuscany_sca_php.dll.
Now this is basic getting a program working stuff but I was thrown by
the
message which suggests that SCA knows exactly where the dll is.
How about changing the message to either
SystemConfigurationException raised: Unable to load library:
tuscany_sca_php.dll
Or
SystemConfigurationException raised: Unable to load library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll
check PATH or LD_LIBRARY_PATH.
Or
SystemConfigurationException raised: SCA has detected the library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll
but is unable to load it because the SCA executable can't find it in
PATH or
LD_LIBRARY_PATH
Simon
+1 for better error messages.
How's about:
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
SystemConfigurationException raised: SCA has detected the library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll
but is unable to load it because the SCA executable can't find it or
it's dependencies in PATH or LD_LIBRARY_PATH
+1
On Linux we already have detailed error messages from dlerror(), on
Windows I just committed a small change to add a call to
Utils::printLastError() (this is a util method that I had added a while
ago to help provide more error info), but even that is giving Windows
system messages like "the module cannot be found" ... not very useful :)
so I think it's a good idea to add the message you proposed.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]