[fpc-pascal] how to pass PChar (or any pointer) from Delphi to FPC ?

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Apr 4 10:57:02 CEST 2006


On 4 apr 2006, at 10:48, Пётр Косаревский wrote:

> I can transfer information from Delphi program to FPC, but they  
> have different memory managers or something, so pointers are the  
> same numbers, but different physical addressed.
> It doesn't sound extraordinary, so, please, help with example or  
> anything!

How do you transfer these pointers and what are you trying to  
accomplish? You generally cannot transfer pointers from one running  
program to another. It may work by accident in some cases, but it is  
not something you can rely on (even if both programs are compiled by  
the same version of the same compiler on the same OS and are running  
on the same machine).


Jonas


More information about the fpc-pascal mailing list