2014/1/16 Michael Van Canneyt <mich...@freepascal.org> > > On Thu, 16 Jan 2014, silvioprog wrote: > >> Hello, >> On Windows, I'm trying to serialize an object to JSON in Delphi 7, using >> FPC functions linked in a shared lib. >> >> I'm sendind a small demo in attached. To test it is very easy: >> >> 1. compile the libfpserializer.lpr file; >> 2. copy the generated lib to the demo/lazarus_ok folder; >> 3. copy the generated lib to the demo/delphi_bug folder; >> >> 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. >> >> So, in Delphi 7, its possible to consume a DLL written in Free Pascal? >> > > You cannot mix Delphi objects with FPC objects. > > They have a different memory layout, the RTTI is different etc. > So what you try to do is not possible. > > Michael.
:( I think I saw a good news in the following e-mail, I will reply there ... -- Silvio Clécio My public projects - github.com/silvioprog
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal