Re: [fpc-pascal] Release FPC-2.2.2rc1 is available for download

2008-06-21 Thread Jonas Maebe
On 20 Jun 2008, at 10:35, Bent Normann Olsen wrote: I did try to install FPC-2.2.2rc1, but eventually had to revert to previous installation due to different kinds of errors when compiling. The errors ranged from "range check" errors to syntax errors, Please provide example programs which

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-21 Thread Jonas Maebe
On 20 Jun 2008, at 14:13, Bent Normann Olsen wrote: I've been working with CFBundle unit to try and figure how to get information about language settings, and so far with no luck. I've read about how Mac OS X works with internationalization, which automates language processing, but this is

Re: [fpc-pascal] Release FPC-2.2.2rc1 is available for download

2008-06-21 Thread Florian Klaempfl
Jonas Maebe schrieb: On 20 Jun 2008, at 10:35, Bent Normann Olsen wrote: I did try to install FPC-2.2.2rc1, but eventually had to revert to previous installation due to different kinds of errors when compiling. The errors ranged from "range check" errors to syntax errors, Please provide ex

Re: [fpc-pascal] Release FPC-2.2.2rc1 is available for download

2008-06-21 Thread Jonas Maebe
On 21 Jun 2008, at 13:13, Florian Klaempfl wrote: Jonas Maebe schrieb: On 20 Jun 2008, at 10:35, Bent Normann Olsen wrote: I did try to install FPC-2.2.2rc1, but eventually had to revert to previous installation due to different kinds of errors when compiling. The errors ranged from "range

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-21 Thread Marco van de Voort
> I've been working with CFBundle unit to try and figure how to get > information about language settings, and so far with no luck. I've read > about how Mac OS X works with internationalization, which automates language > processing, but this is "no can do" for me, or I just can't get the right >

Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-21 Thread Jonas Maebe
On 21 Jun 2008, at 13:21, Marco van de Voort wrote: Aside from Jonas' remarks, FPC 2.2.2 comes with a locale unit that loads the constants in sysutils with the system's locale settings when you include it. I verified, and it is also enabled for Darwin. Those locale settings are unrelated

[fpc-pascal] FPC ARMEL EABI Help!!!

2008-06-21 Thread Nataraj S Narayan
Hi I am finally able to get an ARMEL binary of FPC compiler 2.3.1 on my qemu emulated debian system. Have a look at the following:- But alas I still unable to compile the fpc svn trunk with this. It hangs for sometime while compiling system.pp and breaks out. At least I need all the ppu files be

[fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Felipe Monteiro de Carvalho
Hello, I am trying to use TCompressionStream to compress a string. But the destination stream is empty. Here is by code, thanks: program stringcompressor; {$apptype console} uses Classes, SysUtils, zstream; var Compressor: TCompressionStream; Source: TStringStream; Dest: TMemoryStream;

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Joao Morais
Felipe Monteiro de Carvalho wrote: Hello, I am trying to use TCompressionStream to compress a string. But the destination stream is empty. Here is by code, thanks: program stringcompressor; {$apptype console} uses Classes, SysUtils, zstream; var Compressor: TCompressionStream; Source:

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Marco van de Voort
> for i := 0 to Dest.Size - 1 do > IntToHex(Dest.ReadByte, 2); Personally, I'd write() the strings that come from inttohex, instead of discarding them :_) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/m

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Felipe Monteiro de Carvalho
On Sat, Jun 21, 2008 at 2:11 PM, Marco van de Voort <[EMAIL PROTECTED]> wrote: > Personally, I'd write() the strings that come from inttohex, instead of > discarding them :_) Indeed ... but that doesn't change anything =) It doesn't enter the loop ... I checked with the debugger. > What about use

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Michael Van Canneyt
On Sat, 21 Jun 2008, Felipe Monteiro de Carvalho wrote: > Hello, > > I am trying to use TCompressionStream to compress a string. But the > destination stream is empty. Here is by code, thanks: > > program stringcompressor; > > {$apptype console} > > uses > Classes, SysUtils, zstream; > >

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Felipe Monteiro de Carvalho
On Sat, Jun 21, 2008 at 2:27 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Call Compressor.flush first, only then all data will be in dest. > This is done automatically when it is destroyed: There is no Compressor.Flush. But freeing it seams to work. Now I am having trouble using TDecompre

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Michael Van Canneyt
On Sat, 21 Jun 2008, Felipe Monteiro de Carvalho wrote: > On Sat, Jun 21, 2008 at 2:27 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > Call Compressor.flush first, only then all data will be in dest. > > This is done automatically when it is destroyed: > > There is no Compressor.Flush.

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Felipe Monteiro de Carvalho
On Sat, Jun 21, 2008 at 2:48 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Copy & paste from zstream: You are certainly not using FPC 2.2.0!! > You cannot use CopyFrom. > You must do a read till there is no data anymore. ok ... thanks -- Felipe Monteiro de Carvalho _

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Michael Van Canneyt
On Sat, 21 Jun 2008, Felipe Monteiro de Carvalho wrote: > On Sat, Jun 21, 2008 at 2:48 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > Copy & paste from zstream: > > You are certainly not using FPC 2.2.0!! Correct, I'm using 2.2.2 or higher. Michael. _

Re: [fpc-pascal] How to use TCompressionStream?

2008-06-21 Thread Felipe Monteiro de Carvalho
On Sat, Jun 21, 2008 at 2:48 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > You cannot use CopyFrom. > You must do a read till there is no data anymore. > See TStrings.LoadFromStream for instance. Indeed. TStrings.LoadFromStream works in the decompressor =) thanks, -- Felipe Monteiro de Ca

Re: [fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-21 Thread Graeme Geldenhuys
2008/6/20 Henry Vermaak <[EMAIL PROTECTED]>: > mplayer has a -wid option that takes a window id in which to embed > itself. i haven't tried this, though. Wow!!! That is such a cool idea. I just tried it with a simple fpGUI one form application. Used xwininfo to find it's window id and launched m

[fpc-pascal] memory management with open arrays and classes

2008-06-21 Thread David Emerson
Hi all, I'm pretty new to both "open arrays" and OOP, and am feeling a bit concerned about memory management and leaks in my code. I will jump straight into examples and questions: type T_my_object = object (TObject) {...} end; T_my_class = class (TComponent) {...} end