> On Fri, Jul 22, 2011 at 7:47 AM, Benjamin Kaplan wrote:
> Are you using a Cygwin build of Python? Trying to mix Cygwin with
> normal Windows programs doesn't usually work very well.
On 22/07/11 06:41, Sathish S wrote:
> Benjamin thanks for replying. i'm not using the python that comes wi
the following
> two
> > DLL's as dependency. cygwin1.dll and cyggcc_s-1.dll
> >
> > I'm calling the cygwin_dll_init method in the cygwin1.dll before
> accessing
> > my DLL. When I call one of the methods within my DLL I get the
> WindowsError:
> > exc
>
> I'm calling the cygwin_dll_init method in the cygwin1.dll before accessing
> my DLL. When I call one of the methods within my DLL I get the WindowsError:
> exception: access violation... error
>
> the functions prototype is like: int function(char *, char *) I'm c
ing
my DLL. When I call one of the methods within my DLL I get the WindowsError:
exception: access violation... error
the functions prototype is like: int function(char *, char *) I'm calling
the function as: DLL = cdll.LoadLibrary (DLL_NAME) print
DLL.function(c_char_p("string1"),c
bJackException(-1, "LabJack not
> >> found.")
>
> >> return {"idnum":ljid.value, "state":state.value}
>
> >> Here is the error message:
> >> Traceback (most recent call last):
> >> File "", line 1,
;, line 118, in eDigitalIn
ecode = staticLib.ECount(ctypes.byref(ljid), demo, channel,
readD,
ctypes.byref(state))
WindowsError: exception: access violation writing 0x
Here is the signature of the method (which is known to work with C++
programs):
l
; File "C:\Documents and Settings\All Users\Documents\Python
> \LabJackPython_new\u12.py", line 118, in eDigitalIn
> ecode = staticLib.ECount(ctypes.byref(ljid), demo, channel, readD,
> ctypes.byref(state))
> WindowsError: exception: access violation writing
Here is the error message:
Traceback (most recent call last):
File "", line 1, in
device.eDigitalIn(0)
File "C:\Documents and Settings\All Users\Documents\Python
\LabJackPython_new\u12.py", line 118, in eDigitalIn
ecode = staticLib.ECount(ctypes.byref(ljid), demo, channel,