----- Original Message ----- From: "Brian Millett" <[EMAIL PROTECTED]>
To: <inline@perl.org>
Sent: Thursday, June 14, 2007 5:57 AM
Subject: Strange Inline::C error


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Let me setup the environment.  I have 2 machines:

(A) windows 2000 server pro, activeperl 5.8.4, visualstudio 6, vertex 3.0
sales
tax software, 1.2 GB ram

(B) windows 2000 server pro, activeperl 5.8.4, visualstudio 6, vertex 3.0
sales
tax software. 1 GB ram

Both have Service pack 4 installed.

I have inline::c modules that wraps the vertex libraries so I can use them
from
perl.  The libraries are Vst.lib & Location.lib (There are corresponding
Vst.dll
& Location.dll for the vertex applications)

The code will follow, but the problem is that on the machine (A) it
compiles and
runs just fine.  On machine (B) I get an exception:

"The instruction at "0x029e2d99" referenced memory at "0x029a322c". The
memory
could not be "written""

When I try to debug it, I get
"Unhandled exception in perl.exe (VST.DLL): 0xC0000005: Access Violation"

The script has compiled ok - what you're seeing is a runtime error.

Is it exactly the same VST.DLL on both machines ?
If not, try copying the VST.DLL that's on machine A across to machine B.

Other than that, one thing I would attempt to do is determine exactly which
function call triggers the segfault. (I usually do that by inserting some
debug 'printf("Got to here\n");' type statements at various points
throughout the code until the culprit is isolated.)

Once you have determined the function call that's causing the problem, then
it might be possible to work out what's gone wrong by looking at the source
code. The error message suggests to me that the problem is with the vertex
library (about which I know nothing) and not with any of the code you have
written. Is there any support for vertex ? Perhaps the vertex developers
know about it already - and have a solution.

Cheers,
Rob

Reply via email to