Re: [fpc-pascal] TStream.ReadBuffer doesn't try hard enough to read the requested bytes

2013-06-15 Thread Michalis Kamburelis
Ewald wrote: And what with non-blocking pipes pipes? Wait for a *some* period until you get all data? It is up to the programmer to do this INHO. If you want to get partial data (instead of waiting until all requested data is available) you should just use TStream.Read instead of TStream.Read

Re: [fpc-pascal] TStream.ReadBuffer doesn't try hard enough to read the requested bytes

2013-06-15 Thread Ewald
On 16 Jun 2013, at 01:08, Michalis Kamburelis wrote: > > > Which means that ReadBuffer should retry calling Read, in a loop, trying to > finish the reading. ReadBuffer should raise an exception only when Read > returns zero (before we can gather all the Count bytes). > And what with non-blo

[fpc-pascal] TStream.ReadBuffer doesn't try hard enough to read the requested bytes

2013-06-15 Thread Michalis Kamburelis
Hi, I'm often reading fixed-size structures using TStream.ReadBuffer, working under the assumption that it will fail only if it's not possible to read the requested amount of bytes (that is, if the stream ended prematurely). This is actually the documented usage, see http://www.freepascal.org

[fpc-pascal] [ANN] Greyhound, a tiny ORM-ish for Free Pascal

2013-06-15 Thread Marcos Douglas
Hi list, I'm glad to announce the 0.1.7 release of Greyhound. Greyhound is a tiny ORM-ish for Free Pascal and I'm work on this project since May 05, 2012. https://github.com/mdbs99/Greyhound Features - It will help you with a thin layer to read/write data in a DBMS, but don't trying to simulat

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?

2013-06-15 Thread Dennis Poon
I eventually found this page which talked about downloading a special toolchain from openwrt web site http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61112 I followed its instruction and successfully compiled a helloworld c program and successfully RUN the helloworld binary on Netgear 3700 run

RE: [fpc-pascal] Application.onChangeComponentCount ?

2013-06-15 Thread Fred van Stappen
> Date: Sat, 15 Jun 2013 13:34:52 +0200 > From: pascaldra...@googlemail.com > To: fpc-pascal@lists.freepascal.org > Subject: Re: [fpc-pascal] Application.onChangeComponentCount ? > > On 15.06.2013 12:11, Fred van Stappen wrote: > > > > > > Hello. > > > > Is there a plan to add a function like Appl

Re: [fpc-pascal] why is MIPS not equivalent to MIPSEB

2013-06-15 Thread Sven Barth
On 12.06.2013 11:18, Dennis wrote: I was trying to build a cross compiler by following the MIPS_port doc but since I needed MIPS bid endian version instead, I changed their example of MIPSel into MIPS which seems the correct way in dowloading binutils and specifying TARGET CPU. However, after ma

Re: [fpc-pascal] Application.onChangeComponentCount ?

2013-06-15 Thread Sven Barth
On 15.06.2013 12:11, Fred van Stappen wrote: Hello. Is there a plan to add a function like Application.onChangeComponentCount ? I want to catch a signal when a new form is created (or deleted). I know that the best way is to create a parent form and from this use the form.oncreate event. But

Re: [fpc-pascal] why is MIPS not equivalent to MIPSEB

2013-06-15 Thread Mark Morgan Lloyd
Dennis wrote: I was trying to build a cross compiler by following the MIPS_port doc but since I needed MIPS bid endian version instead, I changed their example of MIPSel into MIPS which seems the correct way in dowloading binutils and specifying TARGET CPU. However, after many days of struggl

[fpc-pascal] Application.onChangeComponentCount ?

2013-06-15 Thread Fred van Stappen
Hello. Is there a plan to add a function like Application.onChangeComponentCount ? I want to catch a signal when a new form is created (or deleted). I know that the best way is to create a parent form and from this use the form.oncreate event. But if the form has no parent the only way to kno

[fpc-pascal] why is MIPS not equivalent to MIPSEB

2013-06-15 Thread Dennis
I was trying to build a cross compiler by following the MIPS_port doc but since I needed MIPS bid endian version instead, I changed their example of MIPSel into MIPS which seems the correct way in dowloading binutils and specifying TARGET CPU. However, after many days of struggling, it appears