Re: [fpc-pascal] fpmake exception

2011-08-18 Thread Vincent Snijders
2011/8/18 Henry Vermaak henry.verm...@gmail.com: Hello While building fpc on my arm netbook, I found this crash in fpmake: EAccessViolation : Access violation  $00027448  FIXPATH,  line 1737 of src/fpmkunit.pp  $00039E24  TTARGET__SETNAME,  line 5577 of src/fpmkunit.pp  $00027F24  

Re: [fpc-pascal] Virtual inline methods

2011-08-18 Thread Vincent Snijders
2011/8/18 dhkblas...@zeelandnet.nl: I'm porting a piece of code from C++ and there they use virtual inline methods. I tried it in FPC but it accepts either virtual OR inline methods. Is this a bug, or a feature that I don't understand enough about? At first I didn't understand how a virtual

[fpc-pascal] Reusing a TProcess object (issue 19997)

2011-10-11 Thread Vincent Snijders
Hi, Is it allowed to execute a TProcess object more than once? And if yes, different command lines be used? The reason I ask is issue 19997, each invocation of the compiler in Lazarus leaks a process handle and a thread handle on windows. (not tested on other OS-es). If is it allowed to re-use

Re: [fpc-pascal] More Filter Madness

2011-10-14 Thread Vincent Snijders
2011/10/14 Ko Hashiguchi ko.d.hashigu...@gmail.com: Mine is more of a programming problem, rather than one native to Pascal, but here goes: I have a text file with many Double values. Looking more or less like below, but with hundreds of entries... 1.5 3.25 7.54 10.33 2.22 The values

Re: [fpc-pascal] More Filter Madness

2011-10-14 Thread Vincent Snijders
2011/10/14 Graeme Geldenhuys graemeg.li...@gmail.com: On 14/10/2011 08:49, Vincent Snijders wrote: Depending on how many numbers you read and the difference between The original poster's questions sounds very much like a homework assignment, which you have no done for him. Naughty

Re: [fpc-pascal] fpc has trouble with array types

2011-10-17 Thread Vincent Snijders
2011/10/18 Andrew Pennebaker andrew.penneba...@gmail.com: But, but, the docs imply that this is the syntax for a function that returns an array of bytes. Where in the docs did you read this? Vincent ___ fpc-pascal maillist -

Re: [fpc-pascal] fpc has trouble with array types

2011-10-18 Thread Vincent Snijders
2011/10/18 Sven Barth pascaldra...@googlemail.com: Am 18.10.2011 11:12, schrieb Sven Barth: type TByteArray = array of Byte; function XlatPrime(): TByteArray; begin XlatPrime := TByteArray.Create( $64, $73, $66, $64, $3b, $6b, $66, $6f, $41, $2c, $2e, $69, $79, $65, $77, $72, $6b, $6c,

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-24 Thread Vincent Snijders
2011/10/22 Graeme Geldenhuys graemeg.li...@gmail.com: 1) Use a GUID created at the time you do the Insert. This also means you can do Master/Detail records with no problems at all. I consider this bad advice. GUID are bad primary keys, because of their size and the fact they are not sequential

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-24 Thread Vincent Snijders
2011/10/24 michael.vancann...@wisa.be: On Mon, 24 Oct 2011, Vincent Snijders wrote: 2011/10/22 Graeme Geldenhuys graemeg.li...@gmail.com: 1) Use a GUID created at the time you do the Insert. This also means you can do Master/Detail records with no problems at all. I consider this bad

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-11-01 Thread Vincent Snijders
2011/11/1 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: On Mon, Oct 31, 2011 at 7:30 PM, Michael Van Canneyt mich...@freepascal.org wrote: So it seems that you MUST set the contenttype either to MULTIPART/FORM-DATA or APPLICATION/X-WWW-FORM-URLENCODED. Yes, this is as per

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-08 Thread Vincent Snijders
2011/12/8 Graeme Geldenhuys graemeg.li...@gmail.com: On 8 December 2011 09:25, Felipe Monteiro de Carvalho wrote: And what if it changes in the future to being slow and statistically strong, we change again too? The random number generator can be implemented in such a way that the backend

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Vincent Snijders
2011/12/7 Graeme Geldenhuys graemeg.li...@gmail.com: Hi, I did a simple GetTickCount() timing around this loop. Delphi executes the loop in 20 ticks. FPC 2.6.0-rc2 takes 10585 ticks The outer loop runs 200400 iterations. The types for BitValue, ByteValue and RandSeed is of type Byte.

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-16 Thread Vincent Snijders
2011/12/16 luciano de souza luchya...@gmail.com: Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can  generate a report with the success or the failure of our tests. Is there documentation on the usage of fpcunit? What is

Re: [fpc-pascal] debian control files for fpc

2011-12-18 Thread Vincent Snijders
2011/12/18 David Emerson dle...@angelbase.com: I'd like to roll my own fpc-2.4.4 .deb for in-house development The lazarus sources seem to include a debian directory with all the control files, which is wonderful! Where can I find debian control files for fpc? In the fpcbuild svn

Re: [fpc-pascal] Re: Installing FPC 2.5.1 in Mac OS X

2012-01-05 Thread Vincent Snijders
2012/1/5 Marco van de Voort mar...@stack.nl: In our previous episode, shiruba2012 said: I had the same issue when specifying a specific compiler in Lazarus.  I changed the directory back to /usr/local/bin/ppc386 and it worked fine.  I almost created another SymLink (as you did), and since

Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Vincent Snijders
Op 27 januari 2012 14:00 heeft Marco van de Voort mar...@stack.nl het volgende geschreven: One can try to cut corners, but that will only end up having to install the release anyway at the first hickup. I'd expect the utils in fpcbuild/trunk to be able to build fpc/trunk better than the release

Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Vincent Snijders
Op 29 februari 2012 16:29 heeft Frank Church vfcli...@gmail.com het volgende geschreven: 4. Is there some page where previous versions are available? PS. After some searching questions 2, 3 and 4 are answered - http://svn.freepascal.org/svn/fpcdocs/. or:

Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Vincent Snijders
Op 29 februari 2012 18:57 heeft Frank Church vfcli...@gmail.com het volgende geschreven: How often do you update it? See: http://svn.freepascal.org/svn/logs/fpcdocs-trunk.log (also available with viewvc). Vincent ___ fpc-pascal maillist -

[fpc-pascal] wiki on a new server

2012-03-23 Thread Vincent Snijders
Hi, The Free Pascal and Lazarus wiki has been moved to a new server. Also the wiki software has been upgraded to the latest Mediawiki version. Because porting the custom Free Pascal skin to the new version was too time consuming the default monoskin is used now. Therefore you will notice changes

Re: [fpc-pascal] Re: Problems with assigning pointers

2012-04-10 Thread Vincent Snijders
Op 10 april 2012 22:06 heeft Darius Blaszyk dhkblas...@zeelandnet.nl het volgende geschreven: Here's a minimal example that has the bug. First of all the first output is wrong as it says 0,50 instead of 20,50 (so the x item is overwritten). The second printed output differs from the first, so

Re: [fpc-pascal] wiki down again?

2012-08-21 Thread Vincent Snijders
2012/8/20 Chadisko konradchrist...@googlemail.com: is the freepascal wiki down again? It is working OK now. Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Wiki search broken?

2012-08-26 Thread Vincent Snijders
2012/8/27 Andrew Haines andrewd...@aol.com: Hi, Search seems to be broken for me on the wiki What was your search word? Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Wiki search broken?

2012-08-27 Thread Vincent Snijders
2012/8/27 Andrew Haines andrewd...@aol.com: On 08/27/12 00:27, Vincent Snijders wrote: 2012/8/27 Andrew Haines andrewd...@aol.com: Hi, Search seems to be broken for me on the wiki What was your search word? I typed in the search box on the bottom right on this page: http

Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Vincent Snijders
2012/9/11 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: Hello, Can I write constants of a 2D array? I am trying to convert some C++ code which uses this ... so far I tryed: const number_return_map: array[0..7][0..7] of U8 = const number_return_map: array[0..7,0..7] of byte

Re: [fpc-pascal] Re: Windows installer fails to add fpc binaries to PATH

2012-09-13 Thread Vincent Snijders
2012/9/14 leledumbo leledumbo_c...@yahoo.co.id: I don't even remember the installer ever tries to add something to PATH... Still, it does. Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Windows installer fails to add fpc binaries to PATH

2012-09-14 Thread Vincent Snijders
2012/9/14 Andrew Pennebaker andrew.penneba...@gmail.com: It did work perfectly on my Win7 laptop. You might want to haveadministrator privileges whilst installing (IIRC modifying the global PATH variable requires administrator privileges). I do have administrator privileges, and the

Re: [fpc-pascal] Error: Can't take the address of constant expressions

2012-09-25 Thread Vincent Snijders
2012/9/25 Bernd prof7...@gmail.com: 2012/9/25 patspiper patspi...@gmail.com: procedure test; begin Move(MyClass1.Ref.Data^, MyClass2.Ref.Data^, 1); end; and if you cast it to some other pointer type before dereferencing the error goes away: procedure test; begin

Re: [fpc-pascal] problems compiling FPC

2012-10-16 Thread Vincent Snijders
2012/10/16 dhkblas...@zeelandnet.nl: The starting compiler is also from SVN (21955). On 16 okt '12, mar...@stack.nl wrote: It should be 2.6.0, and nothing else. Then the solution is simple, use fpc 2.6.0. Vincent ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-17 Thread Vincent Snijders
2012/10/17 Marco van de Voort mar...@stack.nl: D:\repo\fpcmake all makefile:2717: *** The only supported starting compiler version is 2.6.0. You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to

Re: [fpc-pascal] releasing commercial components as PPU files

2012-10-22 Thread Vincent Snijders
2012/10/22 Graeme Geldenhuys gra...@geldenhuys.co.uk: On 2012-10-22 14:36, michael.vancann...@wisa.be wrote: I am not sure whether they use the binary release of fpc, or if they compile their own for e.g. windows. If it is the latter, you're in problems. Anybody from the Lazarus development

Re: [fpc-pascal] releasing commercial components as PPU files

2012-10-22 Thread Vincent Snijders
2012/10/22 michael.vancann...@wisa.be: On Mon, 22 Oct 2012, Vincent Snijders wrote: I am more optimistic than Michael. Because the same source is used, the CRC is the same and no recompile is done. It also depends on the date of the .ppu ? I don't think so. But I don't mind to be proven

Re: [fpc-pascal] Re: Free Pascal 2.6.2 rc1

2012-11-13 Thread Vincent Snijders
2012/11/13 Reinier Olislagers reinierolislag...@gmail.com I noticed the i386-win32/ directory has wince+win64 installers as well as the i386 ones. Maybe these could/should be moved to their own directories arm-wince and x86_64-win64? Of course, the main thing is that they're there ;) I

Re: [fpc-pascal] Change Endian of String types

2012-11-26 Thread Vincent Snijders
2012/11/26 ik ido...@gmail.com Hello, Is there a way to convert endian of a string (from little to big and vice versa) ? What kind of string you want to convert? For example a PChar is trivial. Vincent ___ fpc-pascal maillist -

Re: [fpc-pascal] Free Pascal 2.6.2 rc1

2012-11-27 Thread Vincent Snijders
2012/11/28 Bart bartjun...@gmail.com On 11/27/12, Pierre Free Pascal pie...@freepascal.org wrote: I have uploaded a fpc-2.6.2rc1.i386-win95.exe ,in the same directory beta/2.6.2-rc1/i386-win32, Sorry to say, but I cannot find that file on

Re: [fpc-pascal] x86 asm bswap

2013-02-06 Thread Vincent Snijders
2013/2/6 Juha Manninen juha.mannine...@gmail.com: I read that bswap is used for converting big-endian (Intel) format to little-endian (Motorolla etc.) format. However this a an old Delphi app, Win32 only. I am confused. Intel i386 is little endian. Motorola Powerpc is big endian. Vincent

Re: [fpc-pascal] Hashes and CRCs

2013-04-05 Thread Vincent Snijders
2013/4/5 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk I agree, Google completely overlooked it when I was searching last night. I don't see why it should be put into CCR etc. when it's readily available from the original author, unless of course he's chosen to do so. Because at that

Re: [fpc-pascal] Re: Hashes and CRCs

2013-04-09 Thread Vincent Snijders
2013/4/7 Reinier Olislagers reinierolislag...@gmail.com Apart from that, the wiki already has a huge list of components etc. If dpcrypt on Laz CCR is missing, it should be added. You can find it at: http://wiki.lazarus.freepascal.org/DCPcrypt Vincent

[fpc-pascal] Re: [FPC 0024437]: can not build RTL with 2.7.1 compiler

2013-05-16 Thread Vincent Snijders
-- (0067718) Vincent Snijders (manager) - 2013-05-16 18:39 http://bugs.freepascal.org/view.php?id=24437#c67718 -- That compiler is too old, it should

Re: [fpc-pascal] FPC on USB

2009-06-15 Thread Vincent Snijders
Thomas Nelson schreef: Hello, I would like to put the FPC development environment (including fpgui) on a USB. I live in the windows environment and would I am trying to find the proper procedure to be able to make FPC portable as I go from computer to computer. This is about Lazarus

Re: [fpc-pascal] FPC on USB

2009-06-15 Thread Vincent Snijders
Marco van de Voort schreef: Is that complexity really needed at all? Might be as simple as making a small program that extracts the drive the stick is mounted on, then have that put in the environment, and then use %stickdrive% everywhere to recall it? and then use %stickdrive% *everywhere* to

[fpc-pascal] Re: error in pascal program

2009-06-16 Thread Vincent Snijders
ak za schreef: Hello Please subscribe to the fpc-pascal mailing list. http://lists.freepascal.org/mailman/listinfo/fpc-pascal Maybe the moderator will let it through, though. But if you are subscribed you receive the answers directly. Vincent

Re: [fpc-pascal] Writeable typed constants - what's the point?

2009-06-18 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, Recently I learned that you can have writeable typed constants. That sounds rather like an oxymoron to my. Writeable constants make no sense, is that then simply a variable? What is the use of a writeable typed constant? Backwards compatibility with turbo

Re: [fpc-pascal] Writeable typed constants - what's the point?

2009-06-18 Thread Vincent Snijders
Graeme Geldenhuys schreef: I don't know (have not tested) what FPC does with mode delphi though. OK, just tested FPC modes objfpc and delphi. In both cases writeable typed constants are allow by default. This is not compatible with current Delphi compilers. I still think this should be

Re: [fpc-pascal] BoolToStr() with correct locale output

2009-06-26 Thread Vincent Snijders
Graeme Geldenhuys schreef: Michael Van Canneyt wrote: StrToBool should use all elements ? In FPC 2.2.5 it does not. implementation = begin if UseBoolStrs Then begin CheckStrs; if B then Result:=TrueBoolStrs[0] else

Re: [fpc-pascal] BoolToStr() with correct locale output

2009-06-26 Thread Vincent Snijders
Graeme Geldenhuys schreef: Vincent Snijders wrote: Please add the declaration, to make sure it is StrToBool I'm not that blind. :-) And the function in question in BoolToStr(). But now that you mention StrToBool(), that is even worse, it hard-codes I did not mention StrToBool first

Re: [fpc-pascal] CGI upload app

2009-07-01 Thread Vincent Snijders
FOFPC schreef: download the tool from http://fofpc.org/tools/ also library has some articles regarding your issue at 6-6-2007 19:23 Darius Blaszijk wrote: Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available? I wonder if

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Vincent Snijders
Luca Olivetti schreef: En/na Vincent Snijders ha escrit: Luca Olivetti schreef: I am not sure having a 100 MB lazarus *roaming* profile by default would be a good idea. My lazarus config directory is 254K under windows and 196K under linux. I guess your lazarus directory is either

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Vincent Snijders
Florian Klaempfl schreef: Vincent Snijders schrieb: Jürgen Hestermann schreef: definitely a drawback because you lose all your settings then! I am not sure having a 100 MB lazarus *roaming* profile by default would be a good idea. I've a roaming profile of several GB at work. If you don't

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Vincent Snijders
Luca Olivetti schreef: Well, I don't see why we can have only one config dir: windows offers two (notwithstanding the fact that the whole roaming profile implementation is moronic) I see why: not yet implemented. Vincent ___ fpc-pascal maillist

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Vincent Snijders
Jürgen Hestermann schreef: Therefore it would be the best of all worlds to save the Lazarus settings to the Lazarus directory. No. A sane environment shouldn't even grant you write permissions there. Then Lazarus should ask where to put the settings on installation because there are so many

Re: [fpc-pascal] DBus interface needs an update

2009-08-10 Thread Vincent Snijders
theo schreef: Florian Klaempfl schrieb: Please create and attach it to an issue report so we don't forget it. You mean using the bugtracker? If you like, you could also add the files to packages/dbus But if they are not added to the bug tracker, chances are that they will be

Re: [fpc-pascal] Re: TFPCHeapStatus miscalculations in 2.3.1

2009-08-11 Thread Vincent Snijders
Seth Grover schreef: Actually I was able to distill it down into a smaller example: randomize(); For reproducebility, can you change it to RandSeed := (some *constant* you choose); Vincent ___

Re: [fpc-pascal] Porting Delphi ASM code to FPC

2009-08-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, I have ported the DUnit2 testing framework from Delphi to FPC. DUnit2 works perfectly under 32bit FPC, but I am getting a compiler error when trying to compile DUnit2 with 64bit FPC. The error 'Unknown identifier EAX' occurs in the first line of function

Re: [fpc-pascal] Profiller for Mac OS X

2009-09-03 Thread Vincent Snijders
Graeme Geldenhuys schreef: What is wrong with enabling the heaptrc unit (-gh)? It works only for memory allocated by the fpc heap manager, so a winapi CreateWindow call, or a gtk gtk_button_new call would create an undetected memory leak, if the returned handle/pointer is not release

[fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId

2009-09-08 Thread Vincent Snijders
Hi, While investigating http://bugs.freepascal.org/view.php?id=14335 I ran into the following peculiarities. Please, comment and tell for which item you want bug reports, if any. I tested on i386-linux. 1. The docs of GetThreadId seems to contain a typo:

Re: [fpc-pascal] OS/2 INF help support

2009-09-08 Thread Vincent Snijders
Marco van de Voort schreef: In our previous episode, Tomas Hajny said: aware of a CHM viewer for OS/2, which is an important downside for me personally, of course ;-) ). Then fix the textmode IDE for OS/2 :-) Would it start working as a general CHM viewer then (including e.g. display of

Re: [fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId

2009-09-08 Thread Vincent Snijders
JoshyFun schreef: Hello FPC-Pascal, Tuesday, September 8, 2009, 2:02:46 PM, you wrote: VS If cthreads is used, I get the following output: VS GetThreadID=3084795456 VS GetCurrentThreadID=3085236992 VS MainThreadID=3085236992 VS 4. What is the difference between GetThreadID and VS

Re: [fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId

2009-09-10 Thread Vincent Snijders
Vincent Snijders schreef: Hi, While investigating http://bugs.freepascal.org/view.php?id=14335 I ran into the following peculiarities. Please, comment and tell for which item you want bug reports, if any. I tested on i386-linux. I guess I need to submit three bug reports to get an answer

Re: [fpc-pascal] getting started with threads

2009-09-18 Thread Vincent Snijders
David Emerson schreef: I am getting started with threads (linux/cthreads) and I'm very happy so far, but unsure of the best way to tackle my situation. I have a program that needs to perform about 10,000 independent tasks, which usually involve waiting for I/O; thus it makes sense to use

Re: [fpc-pascal] Move() vs MemCopy()

2009-09-29 Thread Vincent Snijders
Marco van de Voort schreef: In our previous episode, Graeme Geldenhuys said: No. So why is the function called MOVE instead of COPY? :-) Historical reasons apparantly. I never thought that mov ax, bx (8086 assembler) would clear the register after the move. So I never thought that

Re: [fpc-pascal] Case in Record

2009-10-07 Thread Vincent Snijders
Jonas Maebe schreef: On 07 Oct 2009, at 09:19, Vincent Snijders wrote: IIRC, there is a difference. With the second declaration the compiler can add a run-time check that the correct memebrs are accessed based on the value of X. Unfortunately, I cannot find the compiler switch. FPC has

Re: [fpc-pascal] How to free this memory and avoid memory leak

2009-10-08 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, -- procedure THelpFile.ReadContents; var Topic: TTopic; EntryIndex: longint; pEntry: pTTOCEntryStart; tocarray: array of Int32; p: PByte; begin _Topics.Capacity := _Header.ntoc; SetLength(tocarray, _Header.ntoc);

Re: [fpc-pascal] How to free this memory and avoid memory leak

2009-10-08 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2009/10/8 Jonas Maebe jonas.ma...@elis.ugent.be: SetLength(tocarray, _Header.ntoc); p := _Data + _Header.tocoffsetsstart; Move(p, tocarray, SizeOf(tocarray)); This has to be move(p^, tocarray^, length(tocarray)*sizeof(tocarray[0]));

Re: [fpc-pascal] Is svn2.freepascal.org down?

2009-10-09 Thread Vincent Snijders
Torsten Bonde Christiansen schreef: I cant get in contact with the repository on svn2.freepascal.org (no ping reply either). The http server works, but the server does not reply to pings. Can someone give it a kick again... No need. Vincent ___

Re: [fpc-pascal] MySQL

2009-10-16 Thread Vincent Snijders
Jonas Maebe schreef: That's correct, FPC 2.2.4 only support i386 and PowerPC for Mac OS X. The upcoming 2.4.0 release will also support x86_64, PowerPC/64 and ARM. As far as I could see, there are no x86_64 Mac OS X snapshots. Is that correct? Vincent

Re: [fpc-pascal] Creating text files with TFileStream

2009-10-23 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2009/10/23 Gerard N/A gerardusmerca...@gmail.com: Could it be that the length indicator bytes of the string are written to the stream? Ah, looking at the .WriteAnsiString() implementation, you seem to be 100% correct. Procedure TStream.WriteAnsiString (const S :

Re: [fpc-pascal] Creating text files with TFileStream

2009-10-23 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2009/10/23 Vincent Snijders vsnijd...@vodafonevast.nl: Otherwise you cannot read it back. :-) But using .WriteAnsiString() doesn't create a plain text file, so the result is useless. And as my last post says, the method Gerard suggested is also not 100%. It seems

Re: [fpc-pascal] Creating text files with TFileStream

2009-10-23 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2009/10/23 Vincent Snijders vsnijd...@vodafonevast.nl: Otherwise you cannot read it back. :-) But using .WriteAnsiString() doesn't create a plain text file, so the result is useless. Is useless for your current use, I admit. Don't use it to create a plain text

Re: [fpc-pascal] WORD (2 bytes) to String conversion

2009-10-23 Thread Vincent Snijders
Graeme Geldenhuys schreef: On 23/10/2009, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Wouldn't it be more direct to use Blockwrite(file,header.ID,sizeof(header.ID)); I read the complete header structure in one go (155 bytes). I simply want to output to a text file, a human readable

Re: [fpc-pascal] WORD (2 bytes) to String conversion

2009-10-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: On 23/10/2009, Vincent Snijders vsnijd...@vodafonevast.nl wrote: You can consider declaring the ID in the header record type as array[1..2] of char. As Marco suggested... Char size might not always be the same. I did however change my header to array[0..1] of byte

Re: [fpc-pascal] WORD (2 bytes) to String conversion

2009-10-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2009/10/24 Vincent Snijders vsnijd...@vodafonevast.nl: But then you still cannot do: if header.id='HS' then // magic is correct. That is why I proposed a static array of char. No, but I can do this... which is sufficient. var s: string begin s := hdr^.ID

Re: [fpc-pascal] 'Uses' keyword

2009-10-26 Thread Vincent Snijders
James Buren schreef: Is there any way to get FPC to tell me what units get included when I include a unit? I'm asking because I'd like to know so I can find out what units I'm using and what licenses they use so I know what licenses I'm dealing with so I know how it will effect my program. I

Re: [fpc-pascal] Re: PChar - AnsiString - PChar = memory leak?

2009-10-29 Thread Vincent Snijders
Graeme Geldenhuys schreef: The reason why I'm not sure, is because I created a simple console test application. Initially, running the program, I got the correct output. Then I thought I would enable 'heaptrc' (-gh compiler parameter) to make sure I am not leaking memory in the application. Now

[fpc-pascal] Compiler allows strange statement

2009-10-30 Thread Vincent Snijders
Hi, I looked at http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-db/tests/testfieldtypes.pas?r1=13971r2=13970 and did not understand the meaning of: @ASQLQuery.ExecSQL; To me it seems just a address of a method, not a statement that the compiler can execute. But the compiler

Re: [fpc-pascal] Compiler allows strange statement

2009-10-30 Thread Vincent Snijders
Jonas Maebe schreef: On 30 Oct 2009, at 15:38, Vincent Snijders wrote: Also attached sample program compiles without error. Why is there no error on the line: @C.Test; Looks like a compiler bug to me. I thought so too, thanks for confirming. I reported it: http://bugs.freepascal.org

[fpc-pascal] Lazarus 0.9.28.2 released

2009-10-30 Thread Vincent Snijders
The Lazarus team is glad to announce the 0.9.28.2 release. This release is based on fpc 2.2.4. This release can be downloaded from the SourceForge download page: http://sourceforge.net/projects/lazarus/files/ The Lazarus 0.9.28 release had two known issues. This release fixes: * Fixed compiling

Re: [fpc-pascal] bzip2

2009-10-31 Thread Vincent Snijders
Juha Manninen schreef: FCL seems to have bzip2 unit but it only has decompression. Does anyone know of alternatives for bzip2 compression with FPC? Please, create a new email message, instead of replying to an existing one and changing the subject of it. This message has nothing to do with

Re: [fpc-pascal] XML-RPC and SOAP parsers

2009-11-03 Thread Vincent Snijders
ik schreef: Hello, Are there any parsers for SOAP and XML-RPC (and works in Linux) that written in pure Pascal ? For XML-RPC I'm looking for implementation also for the name tag and not only the value tag. See:

Re: [fpc-pascal] Windows Seven and SVN source install

2009-11-07 Thread Vincent Snijders
Andrew Brunner schreef: Hi there, I just got a laptop that came with Windows Seven. I have complete automation scripts with my Ubuntu boxes but NONE of the commands to make FPC translate for me. I poured over wikis and blogs for info and even found the official (link below).

Re: [fpc-pascal] Windows Seven and SVN source install

2009-11-07 Thread Vincent Snijders
Andrew Brunner schreef: Yes. From any folder in command prompt I get fpc access. I just don't know the make commands and parameters. Did you try the same as on linux (that is what the wiki suggested). Vincent ___ fpc-pascal maillist -

Re: [fpc-pascal] Why can't 64bit FPC cross-compile 32bit

2009-11-09 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, What can the 32bit FPC compiler (currently I run under Linux) cross-compile to 32bit Windows or 64bit Linux. Do you mean that ppcx64 can generate code for win32? I don't think that is true. But the 64bit FPC (Linux) can only cross-compile to other 64bit

Re: [fpc-pascal] Why can't 64bit FPC cross-compile 32bit

2009-11-09 Thread Vincent Snijders
Rainer Stratmann schreef: #!/bin/sh gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F gpg --export 6A11800F | apt-key add - echo deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe \ /etc/apt/sources.list.d/lazarus.list apt-get update apt-get install lazarus

Re: [fpc-pascal] Why can't 64bit FPC cross-compile 32bit

2009-11-09 Thread Vincent Snijders
Rainer Stratmann schreef: If your source os and cpu is i386-linux and your target is i386-win32, then you get the fpc-crosswin32 deb package from that location. I can not find such a package there..., rgds Rainer Well, it is there:

Re: [fpc-pascal] GDB for 64 bit Windows ?

2009-11-10 Thread Vincent Snijders
Dimitrios Chr. Ioannidis schreef: Hi, Is the 32 bit gdb in http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32 able to debug reliably a 64 bit process ? AFAIK you cannot use the 32 bits version. You can download gdb for win64 from SF. A tested version (but not the latest version)

Re: hint free [Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-20 Thread Vincent Snijders
Graeme Geldenhuys schreef: Another very annoying hint! :-) Solution - apply yet more workarounds. FPC sure is verbal! It is Friday again: To show that you are looking for problems with more than enough solutions ... Option #1: -- procedure TForm.FormCreate(Sender: TObject);

Re: [fpc-pascal] Subversion server making hickups...

2009-11-24 Thread Vincent Snijders
Torsten Bonde Christiansen schreef: Hi. For unknown reasons the svn2.freepascal.org subversion server seem to make hick-ups when I do an update. I get the error: svn: Can't find a temporary directory: Internal error This is only happening with the svn2 server, not the regular

Re: [fpc-pascal] (Generic) Container Classes

2009-11-29 Thread Vincent Snijders
Juha Manninen schreef: What about the generic containers? I guess it has not been planned yet. There are some in the fgl unit in the RTL. As far as I can see, they are not yet documented. Vincent ___ fpc-pascal maillist -

Re: [fpc-pascal] Help porting DeCAL library

2009-12-07 Thread Vincent Snijders
leledumbo schreef: http://old.nabble.com/file/p26671529/decal-1.zip Here is a FPC conversion of DeCAL library. However, many things still don't work. Please see todo.txt. You can find (the same, or another) port to FPC in

Re: [fpc-pascal] char in [range]

2009-12-07 Thread Vincent Snijders
ik schreef: Yes :) OT: My native language is non latin based, and you write what you hear (unlike latin based languages). Reading http://en.wikipedia.org/wiki/Orthographic_depth, I would expect that in Hebrew, one cannot just write what one hears, unlike some (but not all) Latin based

Re: [fpc-pascal] Possible bug in return value of MonthsBetween function in unit dateutils

2009-12-10 Thread Vincent Snijders
Funky Beast schreef: Hi, When trying to get the number of months between the following dates: 01-06-2009 and 01-08-2008 MonthsBetween returns: 9 months. That is clearly wrong (fundamentally counting with my fingers yields 10 months). Looking at the function in dateutils.inc, I copied the

Re: [fpc-pascal] Forum merger

2009-12-17 Thread Vincent Snijders
Matthias Klumpp schreef: server, this is not really a problem. Why don't use Git this time? A. Because there no Git Server on the FPC SVN server. It's making code review and code merging from other sources a lot easier. I don't understand what you mean here. Vincent

Re: [fpc-pascal] Forum merger

2009-12-17 Thread Vincent Snijders
Graeme Geldenhuys schreef: I agree with Mattias. I didn't think Mattias commented on this thread. Do you mean Matthias, who suggested to use Git on the FPC svn server? Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Forum merger

2009-12-18 Thread Vincent Snijders
Graeme Geldenhuys schreef: I really don't care where projects are created - I think SourceForge or GitHub are more visible and accessible by all. So that would be my first choice anyway. I really don't care either. The most important thing now is that (at least) one person actually starts

Re: [fpc-pascal] RE: Possibly a dumb question.... (Jennifer Usher)

2009-12-28 Thread Vincent Snijders
Jürgen Hestermann schreef: I have been trying to compile a simple test program and I keep getting the following errors: c:\lazarus\fpc\2.2.4\bin\i386-win32\windres.exe: can't open file `project1.manifest': No such file or directory I am about a week ahead of you with Lazarus, and I struggled

Re: [fpc-pascal] RE: Possibly a dumb question.... (Jennifer Usher)

2009-12-29 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2009/12/29 Joost van der Sluis jo...@cnoc.nl: Please try again first using a recent snapshot. I think this bug is solved long ago.. I don't have the problem under Linux, and I used Lazarus SVN of yesterday (which I think is recent enough). I don't know how to

Re: [fpc-pascal] Const Array Length (was Dynamic Array Length)

2010-01-02 Thread Vincent Snijders
Jürgen Hestermann schreef: Juha Manninen schrieb: const a: array of string = ('aaa', 'bbb', 'ccc'); It looks like a dynamic array, but obviously is not dynamic because it is constant. :-) The indexing would start from 0 like with dynamic arrays. It would not break the existing syntax and

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Vincent Snijders
Doug Chamberlin schreef: Florian Klaempfl wrote: Doug Chamberlin schrieb: Anyone know how soon this will be incorporated into the tar file that is posted as the latest 2.4 download? Never. 2.4.0 is out and finished. OK. anyone know when this fix will be incorporated into the next tarball

Re: [fpc-pascal] [OT] which editor - emacs?

2010-01-12 Thread Vincent Snijders
David Emerson schreef: on multiple projects at once. Especially, e.g., if I want to test some feature or idea in a new little project, I tend to just do that in a separate editor rather than opening another group of lazarus windows or closing the big project I'm working on. For such use

Re: [fpc-pascal] Locating the users HOME folder

2010-02-01 Thread Vincent Snijders
Michael Van Canneyt schreef: No. But it has been a regular request to add this to sysutils. Please file a feature request in the bug tracker, so we won't forget it. (preferably with implementation patch ;) ) Are you sure? Peter Vreman asked for a $HOME macro in lazarus and Mattias

Re: [fpc-pascal] Thread IDs

2010-02-18 Thread Vincent Snijders
Wimpie Nortje schreef: Jonas Maebe wrote: On 18 Feb 2010, at 16:35, Wimpie Nortje wrote: What is the difference between GetThreadID() and GetCurrentThreadID()? There is a threadvar called threadid in the system unit. When a new thread is started, GetCurrentThreadID is called to obtain

  1   2   3   4   5   >