<div dir="ltr">Hello,<div><br></div><div>On Windows, I'm trying to serialize an object to JSON in Delphi 7, using FPC functions linked in a shared lib.<br clear="all"><div><br></div><div>I'm sendind a small demo in attached. To test it is very easy:</div>

<div><br></div><div>1. compile the libfpserializer.lpr file;</div><div>2. copy the generated lib to the demo/lazarus_ok folder;</div><div>3. copy the generated lib to the demo/delphi_bug folder;</div><div><br></div><div>
Now, compile the Lazarus project in "lazarus_ok" folder, compile, run and see that it works fine. Now, compile the Delphi project in "delphi_bug" folder, compile, run and see a bizzare bug that kills the app.</div>

<div><br></div><div>So, in Delphi 7, its possible to consume a DLL written in Free Pascal?</div><div><br></div><div>Thank you!</div><div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>