[fpc-pascal] OT: PetrOS [was Re: fpc-pascal]

2005-05-05 Thread listmember
Anandu R Suri wrote: I am writing an operating system using your Free Pascal Compilier 1.0.10. 2. Since my Operating System will be Object Oriented, This reminds me of PetrOS (www.petros-project.com) which I was very much interested and then dismayed since it never was released. Then there was a

Re: [fpc-pascal] OT: PetrOS [was Re: fpc-pascal]

2005-05-05 Thread Michael Van Canneyt
On Thu, 5 May 2005, listmember wrote: > Anandu R Suri wrote: > > I am writing an operating system using your Free Pascal Compilier 1.0.10. > > > > > 2. Since my Operating System will be Object Oriented, > > > > This reminds me of PetrOS (www.petros-project.com) which > I was very much interest

[fpc-pascal] Dynamic arrays in FP

2005-05-05 Thread Jilani Khaldi
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; {$H+}{$MODE OBJFPC}

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

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 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 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 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 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]

2005-05-05 Thread Marco van de Voort
> 1. The very basic problem is with the video driver. Whenever I try to write > to the Video memory either there is no reponse, or I receive a run time > error 216. I tried all possibilities of using an absolute array, pointers, > and even FillWord, nothing works out. > > 2. Since my Operating Sys

[fpc-pascal] About the bug report #3931

2005-05-05 Thread Marcel Martin
About the bug report #3931 >The following does not compile: >jmp dword ptr [@@FwdJumpTable+ecx*4] <--- >nop {Align Jump Table} >@@FwdJumpTable: [...] Use "jmp dword ptr @@FwdJumpTable[ecx*4]" Don't use "nop" to align, use the "align" instruction (Yes, FPC is better than Delphi :-) mm __

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]

2005-05-05 Thread Nico Aragón
El Jueves, 5 de Mayo de 2005 05:49, Anandu R Suri escribió: > 2. Since my Operating System will be Object Oriented, the compilation > consists of calling a FPC_HELP_CONTRUCTOR which in turn calls the built in > AsmGetMem function. But during the system initialization process there will > be no mem