Re: [fpc-pascal] New/Dispose vs GetMem/FreeMem

2009-10-16 Thread Alain Michaud
Are they based on the C library "maloc" or entirely genuine FPC code? Alain Michaud Florian Klaempfl wrote: Graeme Geldenhuys schrieb: Hi, Which of these should I use in new projects? I read somewhere that GetMem/FreeMem is actually compatibility methods from Turbo Pascal days,

[fpc-pascal] sparse matrix storage method

2009-06-08 Thread Alain Michaud
Hi, would someone know of a procedure for solving a system of linear equations using a SPARSE MATRIX storage model. if one uses the usual: array [1..1;1..1] of "mostly_zeroes" then this is a really big waist of memory. I am thinking of using: Tlist instead, but I would not like t

Re: [fpc-pascal] Linux Kernel and FPC

2007-07-09 Thread Alain Michaud
Hi, last year I have written a very small driver using the "char" model, ie. that is put in src/linux/drivers/char something very simple to read/write a few bytes on an output port. I would have been glad to write it in pascal, but I do not think it would be possible at all. I finally did it thi

Re: [fpc-pascal] GTK2 Lazarus Project, but I want QT.

2007-06-21 Thread Alain Michaud
Hi, I am currently running in KDE-3.4. I am going to ruin my system if I try to compile QT-4 ? thanks Alain On Thu, 2007-06-21 at 14:30 +0200, Daniël Mantione wrote: > > Op Thu, 21 Jun 2007, schreef Catalin Zamfir Alexandru: > > > I may have the easiest job of them all. I'm u

Re: [fpc-pascal] Re Serial (RS232)

2007-06-20 Thread Alain Michaud
Hi, see the package SYNAPSE -> SYNASER On Tue, 2007-06-19 at 09:19 -0500, [EMAIL PROTECTED] wrote: > All > I've am wondering if FPC comes with a simple way to use the serial > interface to a system. If someone could point me to > something within I would be much appreciated. The documentation

Re: [fpc-pascal] fpc & Lazarus with 64-bit

2006-07-02 Thread Alain Michaud
Hi, I wanted to install fpc/laz on a friend's AMD64 myself a fey days ago in order to show the "power of FPC" but I realized quickly that AMD64 is a different "animal". I can not answer any of your questions as I am not a developer. However I can say that there are as many platform to suppor

[Fwd: Re: [fpc-pascal] spin_lock]

2006-05-31 Thread Alain Michaud
the driver again using another IOCTL call and the driver will release the lock! I can not imagine that such thing would work. Would you? Any way. I thank you for reading all this. Cheers Alain On Wed, 2006-05-31 at 00:49 +0200, Burkhard Carstens wrote: > Am Dienstag, 30. Mai 2006 22:2

Re: [fpc-pascal] spin_lock

2006-05-30 Thread Alain Michaud
se "asm CLI end;" and "asm STI end;" in my pascal code? Is there any trick that I can use to have high priority for a short period of time (100ms)? Is there a way to suspend all other processes? Any idea is welcome. Thank-you for reading. Alain Michaud

[fpc-pascal] spin_lock

2006-05-29 Thread Alain Michaud
Hi, would someone know how to execute: spin_lock spin_lock_init and spin_unlock I just want to disable the interrupts for 200 miliseconds maximum! This is not too long and hopefuly, my system will not crash... Does someone has any experience with this kind of situation. Sincerely Alain

Re: [fpc-pascal] porting fpIoctl() to windows

2006-05-29 Thread Alain Michaud
macros in Pascal please tell me. In the mean time, I calculate the function number "by hand", knowing the device number, function number, IO_RW, etc... Or if I use a precedure do do this, then this will slow the program down. For the Windows platform, I can not help you sorry. Thank

[fpc-pascal] ioctl

2006-05-16 Thread Alain Michaud
nd failed again ... My self esteem is close to nul at this point. Help please... Thank you Alain Michaud ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC and Lazarus as a main RAD tool?

2006-04-18 Thread Alain Michaud
Hi, I think that we all agree now and we should close that thread. Alain On Tue, 2006-04-18 at 19:22 +0200, Sasa Zeman wrote: > > Please do not come all the way here just to tell us that Lazarus is > > not suitable as a RAD tool. This is typical Troll behavior. > > You people are really o

Re: [fpc-pascal] Division by Zero - not raised exception

2006-04-18 Thread Alain Michaud
HI, I think that we all agree now and we should close this thread. Alain On Tue, 2006-04-18 at 16:04 +0200, Sasa Zeman wrote: > > The problem was when you kept insisting that the compiler wastes > > memory and should be optimized (with a target of 128MB physical > > Please read all carfully,

[fpc-pascal] lax and Yacc

2006-03-26 Thread Alain Michaud
Hi, I have just one quick question in order to understand better: Does FPC use lex (or flex) and yacc ? I just noticed that h2pas uses it and I was wondering if fpc works like that too! Thanks Alain ___ fpc-pascal maillist - fpc-pascal@lists.

[fpc-pascal] i386-linux-as: command not found

2006-03-19 Thread Alain Michaud
Hi, I am trying to compile FPC from the SVN. I get the following error message: ... make[4]: i386-linux-as: command not found make[4]: *** [prt0.o] Error 127 make[4]: Leaving directory '/home/microwave/freepascal/fpcsvn/rtl/linux' make[4]: *** [fpc_smart] Error 2 make[4]: Leaving directory ... .

Re: [fpc-pascal] Error runtime 102

2006-03-07 Thread Alain Michaud
Hi, if you have something like: procedure mygoodprocedure var oldd : text begin then I would sugest that you put "text" line above: unit myunit ... var oldd : text ... procedure mygoodprocedure var ... begin The file should be "global" , not in a procedure goog luck Alain On Tue, 2006-03-

Re: [fpc-pascal] Re: Random numbers

2006-03-06 Thread Alain Michaud
Hi, I am not a mathematician myself, but I predict that unless you make extensive tests over a very long period of time you will never find any corelations! On Mon, 2006-03-06 at 13:39 +0100, Jonas Maebe wrote: > On 6 mrt 2006, at 13:37, Antal wrote: > > >> The Mersenne Twister Free Pascal

Re: [fpc-pascal] Graph Unit

2006-02-14 Thread Alain Michaud
HI, this is for compatibility with the old borland software on window/dos On Mon, 2006-02-13 at 23:15 -0800, Ryo T wrote: > How to use unit Graph in fpc ? > > == > 12y0 > The ~'S'~ > > __ > Do You Yahoo!? > Tired of spam? Y

Re: [fpc-pascal] Scripting in FPC

2006-02-08 Thread Alain Michaud
HI, FPC is compiled only Alain On Wed, 2006-02-08 at 19:39 -0600, Elio Cuevas Gómez wrote: > Hi. > > I want to embed an interpreter in my Free fpc game to provide an scripting > interface. What are the available solutions? I have heard about Nemesis > Pascal but i'm not sure if it works in FP

Re: [fpc-pascal] static binding to C shared library (linux)

2006-01-23 Thread Alain Michaud
Hi, Thank you to you all. After I wrote the declaration just like given below, I had the library linked to my pascal program, and did not even need to spend the week end on it! :) Thanks again to you all. Alain Michaud On Tue, 2006-01-17 at 10:34 +0200, Гено Рупски wrote: > В пн, 2006-01

Re: [fpc-pascal] static binding to C shared library (linux)

2006-01-16 Thread Alain Michaud
not have the source code) Is the pascal type "pointer" EQUIVALENT to the C operator: '*' to a struct? Thank you so much for reading Alain On Mon, 2006-01-16 at 19:45 -0500, Tony Pelton wrote: > take what i have to say with a HUGE grain of salt because i have no >

[fpc-pascal] static binding to C shared library (linux)

2006-01-16 Thread Alain Michaud
some hints on how to solve that problem. I have spent the whole week-end on these three lines and I am quite frustrated right now! The package is called "libplot" ("plotutils") and I was planning to put it on the web if I can get it to wor

[fpc-pascal] linking to a shared library (linux platform)

2006-01-03 Thread Alain Michaud
error code showed "no error" 3-made sure that the library is well installed by compiling and running a small C language demo program. Thank you for reading. Happy new year Alain Michaud amiso ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus and FPC integration

2005-10-30 Thread Alain Michaud
ckages system (FPC-Lazarus) is OK. My message to the developers: Do not add any new features until the first Official release. Then write a book! Good luck. Salut Alain Michaud ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] synchronizing Lazarus--FPC versions

2005-10-29 Thread Alain Michaud
olution to help the new users. Every user always open the "about" of any software and the "FPC version" number is a good reminder that they work togetter! Sincerely Alain Michaud ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] fpExecv

2005-09-07 Thread Alain Michaud
Ho, my mistake! I did not see it. It is unfortunate that the index tools does not scan in all the RTL units at once, but just unit by unit. Thank you again Alain On Wed, 2005-09-07 at 19:45 +0200, Marco van de Voort wrote: > > this is exactly what I was looking for. Thank you very

Re: [fpc-pascal] fpExecv

2005-09-07 Thread Alain Michaud
I do to redirect ("pipe") the output "123" into > > the program "prog2" and not print it? Is it possible? > > > > Alain Michaud > > > > > Have you seen "AssignStream()". > You can grab the piped output without it printin

[fpc-pascal] fpExecv

2005-09-06 Thread Alain Michaud
] <-- '--arg' pp[2] <-- '123' If I run this second program, it will print the standard otput to the console: >prog2 123 Question: what should I do to redirect ("pipe") the output "123" into the program "prog2" and not print it? Is i

Re: [fpc-pascal] FEM pack in Pascal

2005-08-15 Thread Alain Michaud
Hi, what field are you workin in? I am asking this question because there are two different types of simulations Poisson (static) or Helmotz (oscillatory). Alain Michaud On Tue, 2005-08-09 at 11:41 +0200, Jilani Khaldi wrote: > Hi All, > I am looking for an open and free FEM (

Re: [fpc-pascal] Calling a C library

2005-08-09 Thread Alain Michaud
s! The advantage of "dynamic" loading as oposed to "compile time" loading is that you can test the loading of the routines one by one. It is not easy to understand the " .h" file sometimes. Good luck Alain Michaud On Tue, 2005-08-09 at 08:32 -0400, Paul Aviles

[fpc-pascal] how to beeeeep

2005-06-27 Thread Alain Michaud
othing to install or program! I feel lazy...) The platform is Linux (Mandrake 10.1) Thank you Alain Michaud ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] "is"

2005-04-05 Thread Alain Michaud
FPC/Lazarus is such a nice software. I started using it one year ago. Although they say it is "under development" it works very well! In addition, there is the comunity... Whenever there is a problem, I can just send an email to the list and often, someone will give me some tips or

Re: [fpc-pascal] Re: confirm 7ee8cb55777a34d60501ace9d48fd22e1e5cc429

2005-04-01 Thread Alain Michaud
Hi, there are TWO sites: one for free pascal and one for lazarus (and many more too). Make sure that you browse thru those two sites as there is a HUGE documentation and many examples. There is almost anything that you will ever need in fpc/lazarus. The philosophy is to have it "multi platfor

[fpc-pascal] Interfacing to libraries written in C

2005-03-14 Thread Alain Michaud
I find that it is not easy to understand the "C" types sometimes. This "dynamic" techniqe can be used to test and debug all the procedures one by one. Also you can declare only the procedures that you will be using, and not bother about the ones that you do no