I am trying the simple example :

I created a dll containing the following code

#include "test_Z.h"

int basic_test(int a, int b)
{
return(a*b);
}


where the header contains :

#ifndef test_Z_H__
#define test_Z_H__

int basic_test(int a, int b);

#endif

I placed the dll into the Zorro folder and the header into the include folder of Zorro
I tested with the following code :

int __stdcall basic_test(int a, int b);
API(basic_test,test_Z)

function main()
{
int c = basic_test(5, 2);

printf("Result = %d", c);
}

It returns me the good result 10 but an error message then appears :

Error 111 : Crash in script

I am using Zorro 1.26 under windows 7 64x and the dll has been created using minGW, could you please tell me why do I get this error message ?