Re: [fpc-pascal]Win32 API Call

2004-06-23 Thread Marco van de Voort
4. This is not important for FPC 1.0.x, but for newer FPC remember to declare WinAPI functions as stdcall (FPC 1.0.x just used stdcall by default). I'll make note of that. To be fair to you, FPC should have always used StdCall for Win32API calls. It would be less confusing now,

RE: [fpc-pascal]ARM cross-compiling error

2004-06-23 Thread Jose Pascual
I have advanced more in compilation, but right now the problem is compiling in sstrings.inc during system.pp I'm using ppc386 version 1.0.10 to make it! # # make clean all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=arm-linux- #

[fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Cristiano Magro
hi when i install the today snapshot the compiler show this version: C:\pp\bin\win32ppc386.exe -v Hint: End of reading config file fpc.cfg Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Fatal: No source file name in command line it is

Re[4]: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Cristiano Magro
Ciao Peter, Wednesday, June 23, 2004, 3:46:41 PM, you wrote: Hint: End of reading config file fpc.cfg Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Fatal: No source file name in command line it is correct? i'll think the snapshot

[fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Andreas Gros
Hi folks, please check out this code (unit). Certainly there is something very strange going on in handling memory in freepascal. I'm using Free Pascal Compiler version 1.9.4 [2004/05/30] for i386. Thanks in advance for replying. Andreas {

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Peter Vreman
Hi folks, please check out this code (unit). Certainly there is something very strange going on in handling memory in freepascal. I'm using Free Pascal Compiler version 1.9.4 [2004/05/30] for i386. snip code You code is wrong, it also crashes with kylix.

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Andreas Gros
You code is wrong, it also crashes with kylix. What kind of answer is this? That it is not working in Kylix either does certainly not mean their memory handling is correct. Please look at the code. The crash is supposed to happen, because it is the same object, that is addressed both times I

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Peter Vreman
You code is wrong, it also crashes with kylix. What kind of answer is this? That it is not working in Kylix either does certainly not mean their memory handling is correct. Kylix and Delphi are the references whether special constructions should work or not. See Michael's answer what is

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Matt Emson
You code is wrong, it also crashes with kylix. What kind of answer is this? The correct one? To remove an item from a TList you must: (a) set it to nil and pack the list e.g. list[0] := nil; list.pack; (b) call TList.Delete(index) e.g. list.delete(0); (c) use

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Anton Tichawa
Matt Emson wrote: You code is wrong, it also crashes with kylix. What kind of answer is this? The correct one? To remove an item from a TList you must: (a) set it to nil and pack the list e.g. list[0] := nil; list.pack; (b) call TList.Delete(index) e.g. list.delete(0); (c) use

RE: Re[4]: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Lee, John
I´m on holiday at present - back 28th so I´ll get snapshots for go32 win32 going again then. Regards John -Original Message- From: Cristiano Magro To: [EMAIL PROTECTED] Sent: 23/06/2004 14:57 Subject: Re[4]: [fpc-pascal]there is a problem in fpc daily binary snapshot Ciao Peter,

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
At 11:41 AM 6/23/2004, you wrote: Maybe the stuff worked because of other bugs in 1.0.6. The error messages are not added for fun to let ppl review their code. Most are there because the compiler can't continue or will generate wrong code. And the warnings will only help in finding bugs. I wasn't

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Peter Vreman
Unitsearch: c:\fpc\units\win32\rtl\syswin32.ppw PPU Loading c:\fpc\units\win32\rtl\syswin32.ppw Unitsearch: c:\fpc\units\win32\rtl\syswin32.pp Unitsearch: c:\fpc\units\win32\rtl\syswin32.pas si.pas(56,1) Fatal: Can't find unit SYSWIN32 It seems to be looking in the correct spot now, and

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
At 03:35 PM 6/23/2004, you wrote: Use -vu to see the reason why it wants to recompile the unit Okay, -vu give me this: Load from SI (implementation) unit SYSWIN32 PPU Name: c:\fpc\units\win32\rtl\syswin32.ppw PPU Time: 2004/06/22 23:20:38 PPU Flags: 12497 PPU Crc: 375220168 PPU Crc: 71143866

Re: [fpc-pascal]Align instruction

2004-06-23 Thread Marcel Martin
Peter Vreman a écrit : Added support for the ALIGN directive also to asmmode intel. Thanks. BTW, nobody answered about the problem with Level 2 Optimizations I reported here a few days ago. Is it a bug of the compiler? I ask the question because at the moment I am sure of nothing (sometimes my