I wrote a dll with this call:
function GetA (S1: PChar; v1: PChar; A: LongBool; var info: csRec): LongBool; cdecl;
the call is GetA(PChar('pale33'), PChar('0000'), True, info);
The problem is that in some cases (changing the values of S1 and v1), after the call to this dll, the program closes with this error "Process Exit: 0331".
What's wrong?