Re: [fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Jilani Khaldi
qq := get_array(mat1,mat2,kk,3.14); Change this to qq := get_array(PDouble(mat1),PDouble(mat2),kk,3.14); It is ok. Thank you. jk -- // Jilani KHALDI *** K-Book Interactive Pubblications http://jkhaldi.oltrelinux.com ___ fpc-pascal maillist - fpc-pasc

Re: [fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Peter Vreman
At 13:05 5-5-2005, you wrote: On 05 May 2005, at 13:06, Michael Van Canneyt wrote: Dynamic arrays are an internal type of pascal. C doesn't know dynamic arrays. That it works with delphi is pure luck. Sorry, but pascal dynamic arrays are just pointers. Totally wrong. They are a reference counted ty

Re: [fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Michalis Kamburelis
Jilani Khaldi wrote: Hi All, I have written a little library in C (compiled in as a DLL) to use it in Free Pascal and Delphi applications. While the code (below) works with Delphi (7), I get an Access Violation using FPC (1.98). Perhaps I am missing something. Any hint? Thanks! program fpc_dll

Re: [fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Jonas Maebe
On 05 May 2005, at 13:06, Michael Van Canneyt wrote: Dynamic arrays are an internal type of pascal. C doesn't know dynamic arrays. That it works with delphi is pure luck. Sorry, but pascal dynamic arrays are just pointers. Totally wrong. They are a reference counted type. Yes, but aren't they "just

Re: [fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Michael Van Canneyt
On Thu, 5 May 2005, Jilani Khaldi wrote: > > > Dynamic arrays are an internal type of pascal. C doesn't know dynamic > > arrays. That it works with delphi is pure luck. > > Sorry, but pascal dynamic arrays are just pointers. Totally wrong. They are a reference counted type. See e.g. page 5-19

Re: [fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Jilani Khaldi
Dynamic arrays are an internal type of pascal. C doesn't know dynamic arrays. That it works with delphi is pure luck. Sorry, but pascal dynamic arrays are just pointers. jk -- // Jilani KHALDI *** K-Book Interactive Pubblications http://jkhaldi.oltrelinux.com _

Re: [fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Peter Vreman
At 11:44 5-5-2005, you wrote: Hi All, I have written a little library in C (compiled in as a DLL) to use it in Free Pascal and Delphi applications. While the code (below) works with Delphi (7), I get an Access Violation using FPC (1.98). Perhaps I am missing something. Any hint? Thanks! progra