Re: [fpc-pascal] Dynamic arrays, yet another pitfall

2014-02-10 Thread Michael Van Canneyt
On Sun, 9 Feb 2014, Florian Klämpfl wrote: Am 09.02.2014 18:41, schrieb Jürgen Hestermann: So it seems there is a copy-on-write *but* only when using SetLength. No. There is no COW, only ref. counting. SetLength just forces an unique instance of the array if needed. The documentation expl

Re: [fpc-pascal] fp universal library ?

2014-02-10 Thread Fred van Stappen
Hello. Here next episode of the conversion of a useful unit into a universal library. In a recent topic i was taking about the total victory of the conversion in Linux OS. Now im fighting to do it in Windows. I have Windows 7-64 bit. If compiling the library with fpc-64bit, all is working perfect

Re: [fpc-pascal] fp universal library ?

2014-02-10 Thread Sven Barth
Am 11.02.2014 00:53, schrieb Fred van Stappen: I have changed all cdecl into stdcall but without luck... Did you change the calling convention for both the import and the export code? (just a sidenote: on Linux you should use cdecl no matter what if you want your library to be used by other l