----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Apache 1.3
Jserv   1.0
Windows NT 4.0 Sp5

We have a servlet that imports a java class that statically loads a JNI DLL.

The DLL is written in visual C++ 6 SP3. It exposes a couple of methods via
JNI. The DLL makes use of several COM components written Visual Basic 6 Sp3.

We can invoke the servlet once, and have it work.

The second time the servlet is invoked, it succesfully  completes all of its
processing (including succesfully executing the C++ and VB code), then
throws an access violation.

At this point, the client is displaying the results of the process, and the
server is displaying the acces violation.

Once apache is stopped and restarted, we can again invoke the servlet once
with no problem, and the access violation again occurs on the second
invocation.

The exact error is as follows:

Java.exe - Application error
The instruction at "0x660d48ed" referenced memory at "0x052a608c". The
memory could not be read.


Nothing at all is written to the logs.

Attaching visual studio to the java process reveals that 0x660d48ed is
within MSVBVM60.DLL.

This sounds like a ms problem, but the vb code has been running on several
hundred sites for six months without a single problem occuring. We also
invoke the VB from VC in our existing systems in exactly the same way that
the JNI dll is invoking it, again with no problem.

Strangely, we have another DLL that also invokes some VB methods (some of
them even in the same VB DLLs as the in the problem), but we can invoke this
from a servlet with no trouble at all.

This, again implies that it is an MS problem. However, I'm throwing myself
at your mercy,because, frankly, I rather suspect there will be more people
here witha deeper understanding (and even if the problem occurs in
MSVNVM60.DLL, it does only occur when invoked from a servlet).

Any opinions expressed in this email are those of the individual and not necessarily 
Knowledge Management Software plc.  This email and any files transmitted with it are 
confidential and solely for the use of the intended recipient.
If you are not the intended recipient or the person responsible for delivering to the 
intended recipient, be advised that you have received this email in error and that any 
use is strictly prohibited.  If you have received this email in error please notify 
the Systems Manager by telephone on 44 (0) 161 227 9009


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to