R
Rubic
I'm attempting to use ctypes on a DLL with the following
signature:
__declspec(dllimport) void process_record(char *, char *);
An example .cpp file has code like this:
int main(int argc, char **argv)
{
char record[100];
char code[6];
...
process_record(code, record);
When I invoke it under Python everything fine
while the interpreter is running:
'9999'
But when the interpreter exits, either interactively
or from a script, the following Program Error popup
gets displayed:
"python.exe has generated errors and will be closed
by Windows. You will need to restart the program."
What can I do to prevent this error?
(Environment: Win2000, Python 2.5)
signature:
__declspec(dllimport) void process_record(char *, char *);
An example .cpp file has code like this:
int main(int argc, char **argv)
{
char record[100];
char code[6];
...
process_record(code, record);
When I invoke it under Python everything fine
while the interpreter is running:
'9999'
But when the interpreter exits, either interactively
or from a script, the following Program Error popup
gets displayed:
"python.exe has generated errors and will be closed
by Windows. You will need to restart the program."
What can I do to prevent this error?
(Environment: Win2000, Python 2.5)