Hi All,<div><br></div><div><br></div><div>I have created a DLL with the following function exported in it</div><div><br></div><div>int myFunction(char *id, char *name);</div><div><br></div><div><br></div><div>Below is the python code to load the dll and call myFunction</div>
<div><br></div><div><br></div><div><div>from ctypes import *</div><div><br></div><div># Load DLL into memory</div><div>mydll= windll.LoadLibrary("my.dll")</div><div><br></div><div>id = create_string_buffer("030725002")</div>
<div>name = create_string_buffer("mammar")</div><div><br></div><div>print mydll.myFunction(id, name)</div></div><div><br></div><div><br></div><div><br></div><div>But when i run the above code i am getting error dialog box with following info</div>
<div><br></div><div>Debug Assertion Failed!</div><div><br></div><div>Program: C:\Python27\pythonw.exe</div><div>file: fread.c</div><div>line: 93</div><div><br></div><div>Expression: (buffer != NULL)</div><div><br></div><div>
<br></div><div>Whats the problem? Any idea?</div><div><br></div><div><br></div><div>Regards.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>