Re: WindowsError: exception: access violation

2011-07-22 Thread Thomas Jollans
> 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

Re: WindowsError: exception: access violation

2011-07-21 Thread Sathish S
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

Re: WindowsError: exception: access violation

2011-07-21 Thread Benjamin Kaplan
> > 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

WindowsError: exception: access violation

2011-07-21 Thread Sathish S
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

Re: WindowsError: exception: access violation writing 0x00000000

2009-08-04 Thread Sparky
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,

Re: WindowsError: exception: access violation writing 0x00000000

2009-08-04 Thread Philip Semanchuk
;, 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

Re: WindowsError: exception: access violation writing 0x00000000

2009-08-04 Thread Sparky
;   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

WindowsError: exception: access violation writing 0x00000000

2009-08-03 Thread Sparky
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,