On 08/26/2010 08:52 PM, Alexander Grau wrote:
C) Do not use external threads at all - use FPC threads.
This is a very hard requirement :(.

A colleague of mine uses the "PJSIP" open source library in his project done with Delphi. Here he created a DLL in C with Microsoft Visual Studio and calls the "flattened" functions in this DLL with his Pascal project. The C-DLL is statically linked to the PJSIP library functions provided.

Now the PJSIP library creates lots of threads and preforms callbacks to the DLL from same. The DLL forwards theses callbacks towards the Pascal code.

All this seems to work fine.

It would be a major shame if using Lazarus would prevent this kind of projects.

.-Michael

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to