Re: [fpc-pascal] How to get info about CPU and Memory usage?

2013-02-28 Thread Michael Van Canneyt
On Wed, 27 Feb 2013, Graeme Geldenhuys wrote: On 2013-02-27 16:49, Michael Van Canneyt wrote: It is better to simply parse /proc/cpuinfo and /proc/PID/* and hope all distros behave the same. My experience with OnGuard work is that your mileage will vary. I happen to know the code

Re: [fpc-pascal] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-28 Thread Michael Van Canneyt
Delphi and Kylix compilers in most cases on x86 produces code that is about in the order of 50% faster than FPC. You mentioned that you would like to contribute to FPC. Maybe this is an area where you can contribute: more aggressive optimizations. Michael

Re: [fpc-pascal] Re: fpweb: handling DELETE method as well as GET

2013-02-28 Thread Michael Van Canneyt
ete requests: Premature end of script headers: tigercgi I am on it. Need it myself at this very moment. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: fpweb: handling DELETE method as well as GET

2013-02-28 Thread Michael Van Canneyt
ete requests: Premature end of script headers: tigercgi Fixed in rev. 23667. In fact, I've disabled the method checking altogether. At a later point, we can consider having a property that checks the method and enforces a HTTP spec compliant method. Michael.

Re: [fpc-pascal] FPJSON and float values.

2013-02-28 Thread Michael Van Canneyt
On Thu, 28 Feb 2013, silvioprog wrote: Hello, Please see: http://bugs.freepascal.org/view.php?id=23970 Fixed. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPJSON and float values.

2013-02-28 Thread Michael Van Canneyt
On Thu, 28 Feb 2013, luiz americo pereira camara wrote: 2013/2/28 Michael Van Canneyt : On Thu, 28 Feb 2013, silvioprog wrote: Hello, Please see: http://bugs.freepascal.org/view.php?id=23970 Fixed. Seems that you committed by accident code to make AsJSON output more compact. This

Re: [fpc-pascal] FPJSON and float values.

2013-02-28 Thread Michael Van Canneyt
On Thu, 28 Feb 2013, silvioprog wrote: 2013/2/28 luiz americo pereira camara 2013/2/28 Michael Van Canneyt : > > > On Thu, 28 Feb 2013, silvioprog wrote: > >> Hello, >> Please see: >> >> http://b

Re: [fpc-pascal] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-28 Thread Michael Van Canneyt
om for the own stand. Nice metaphor :-) Well put. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Michael Van Canneyt
No problem with that as far as I am concerned. Since the code is shared between embedded and non-embedded targets, it might be better to have the option to specify the size of the buffer to use. In recursive cases, it means that Depth*BufferSize buffers will be allocated

Re: [fpc-pascal] Virtual Constants

2013-03-01 Thread Michael Van Canneyt
end; TB = class(TA) const c1: integer = 1; end; TC = class(TA) const c1: integer = 2; end; Funny coincidence, I was looking for the same thing today :) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Solution for Timer in daemon

2013-03-02 Thread Michael Van Canneyt
time-out value. I would go for this. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: LuaJIT 2 crashes under FPC+Win64. SEH issue?

2013-03-02 Thread Michael Van Canneyt
On Sat, 2 Mar 2013, Marco van de Voort wrote: In our previous episode, denisgolovan said: Building FPC with -dTEST_WIN64_SEH makes the trick! Hmm, maybe it is slowly time to make this default in trunk? +1 It will give it the necessary coverage. Michael

Re: [fpc-pascal] Daemon - OnStop and OnDestroy events never fired?

2013-03-04 Thread Michael Van Canneyt
meaning on Linux; only shutdown. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Daemon - OnStop and OnDestroy events never fired?

2013-03-04 Thread Michael Van Canneyt
On Mon, 4 Mar 2013, Krzysztof wrote: I'm stopping by: sudo service my_script.sh stop. Yes, but what signal does that send: SIGTERM probably -> this is a ShutDown. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

Re: [fpc-pascal] Result: string

2013-03-04 Thread Michael Van Canneyt
esult+'A'; end; Var C : String; begin C:='B'; C:=TheA; C:=TheA; Writeln(C); end. Prints AA Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Result: string

2013-03-05 Thread Michael Van Canneyt
Result in TheA() is initialised manually or not. Perhaps 2.7.1 has a regression here if it differs for you? It is not a regression. 2.7.1 has the Delphi compatible behaviour. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get variable name at runtime

2013-03-06 Thread Michael Van Canneyt
n all its gory glory. IMHO we should simply have a directive that is either cdecl or stdcall depending on the platform +1 I proposed libcall about 10 years ago - if not longer. OSCall or NativeCall. Whatever. Just not a macro. Michael. ___ fpc-

Re: [fpc-pascal] Ical/.ics library?

2013-03-07 Thread Michael Van Canneyt
ple there's memory leaks, inconsistent naming conventions and clearly written by someone relatively new to Delphi. If used, remember to fix the errors. " I used to have a unit somewhere, but can't seem to locate it :( Michael.___ fpc-pascal mail

Re: [fpc-pascal] arm-android, SQLite and the default libary

2013-03-07 Thread Michael Van Canneyt
n is the best. For backwards compatibility, I suggest we do a SQLiteLibraryName = sqlite3dyn.SQLiteDefaultLibrary Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Memoryleak in SQLite3db.TSqlite?

2013-03-11 Thread Michael Van Canneyt
On Mon, 11 Mar 2013, Michael Fuchs wrote: Am 31.10.2012 10:54, schrieb Michael Fuchs: It works, but the heap trace shows a bunch of memory leaks. ... Is this a bug or am I doing something wrong? For information: I created an entry in the bug tracker for this problem: http

Re: [fpc-pascal] JSON & me - blind again?

2013-03-12 Thread Michael Van Canneyt
JSONData; const AUrl: string; const AMethod: TRequestMethod; const AContentType: string): THttpResult; Because you are passing BACK a reference! Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fcl-xml

2013-03-12 Thread Michael Van Canneyt
adme says 'Should be fairly completed' - can I assume it works for simple tasks? This I do not know. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fcl-xml

2013-03-12 Thread Michael Van Canneyt
On Tue, 12 Mar 2013, Mattias Gaertner wrote: On Tue, 12 Mar 2013 11:52:06 +0100 (CET) Michael Van Canneyt wrote: [...] Is getElementById supposed to work properly or is it something that needs to be implemented? Trying to understand what the parser does (not that easy), I got the feeling

Re: [fpc-pascal] Re: JSON & me - blind again?

2013-03-12 Thread Michael Van Canneyt
On Tue, 12 Mar 2013, Reinier Olislagers wrote: On 12-3-2013 11:44, Michael Van Canneyt wrote: Thanks for the help, Michael. On Tue, 12 Mar 2013, Reinier Olislagers wrote: //===> the line below works - so CommJSON is a valid object, right? if Assigned(CommJSON) then It is assig

Re: [fpc-pascal] fcl-xml

2013-03-12 Thread Michael Van Canneyt
n mantis? Yes. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is it only properties that can have defaults in type definitions?

2013-03-14 Thread Michael Van Canneyt
zeroed out. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Fork

2013-03-18 Thread Michael Van Canneyt
/linux but no .O and .ppu Use fpfork from baseunix or unix. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Reading exe version info on Linux?

2013-03-20 Thread Michael Van Canneyt
occurred at $00443607: EResNotFound: Resource "1" not found $00443607 In a bug I raised, Michael van Canneyt indicated this error may be due to the filename not being picked up. However, the checking code seems to pick up the correct name. What am I still doing wrong? It s

Re: [fpc-pascal] Reading exe version info on Linux?

2013-03-21 Thread Michael Van Canneyt
On Thu, 21 Mar 2013, Reinier Olislagers wrote: On 20-3-2013 21:30, Michael Van Canneyt wrote: On Wed, 20 Mar 2013, Reinier Olislagers wrote: The program below works fine on Windows for reading e.g. info on explorer.exe It fails on Linux (FPC trunk x64, compiled 2013/03/14) when testing with

Re: [fpc-pascal] Object Pascal Grammar in EBNF like style

2013-03-22 Thread Michael Van Canneyt
ect Pascal grammar starts at line 5374. https://github.com/graemeg/fpGUI/blob/master/docs/fpc_lang_ref.ipf Any input or corrections will be much appreciated. Hm. That looks dangerously much, almost verbatim, like the appendix A of the Delphi language guide as found in the D7 manual.

Re: [fpc-pascal] newbie question: using fpc in linux

2013-04-03 Thread Michael Van Canneyt
o now) does not look the most productive environment. Which tools (editors, GUIs) do you use when programming in Linux ? Lazarus or joe I guess you all use a local linux box, right ? It makes the most sense. Use a VMWare or Virtualbox if you're stuc

Re: [fpc-pascal] Re: TPQConnection: Duplicated error message.

2013-04-05 Thread Michael Van Canneyt
errors). I'm sure the guy who implemented this (I think Ludo Brands) can tell you exactly what's going on. I have changed it, but added an option so you can ask all information as it was. Note that all parts of the error are always available as

Re: [fpc-pascal] Re: TPQConnection: Duplicated error message.

2013-04-05 Thread Michael Van Canneyt
On Fri, 5 Apr 2013, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: Regarding the content of your question in the bug: AFAIU it's for backward compatibility. The generic db error shows the error message. The specialized PostgreSQL error does the same, but also shows it in d

Re: [fpc-pascal] Re: TPQConnection: Duplicated error message.

2013-04-05 Thread Michael Van Canneyt
led An option to get less info is fine but shouldn't be turned on by default. No problem. I've changed the default value of VerboseErrors to true. Rev. 24154. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] FCL-Image and OS/2 BMP support

2013-04-05 Thread Michael Van Canneyt
per file'. You will need an image number when loading. That will need a change in the reader or in TFPCustomImageHandler. (a property, default set to 0, so it reads the first image (zero based)) Michael. ___ fpc-pascal maillist - fp

Re: [fpc-pascal] FCL-Image and OS/2 BMP support

2013-04-05 Thread Michael Van Canneyt
On Fri, 5 Apr 2013, Sven Barth wrote: Am 05.04.2013 12:07, schrieb Michael Van Canneyt: On Fri, 5 Apr 2013, Graeme Geldenhuys wrote: Hi, Having had a quick look at the FPReadBMP.pp unit, the only BMP format FCL-Image supports is the Windows BMP format. I need to read OS/2 BMP files too

[fpc-pascal] Re: fpc-pascal Digest, Vol 106, Issue 26

2013-04-11 Thread Schindler Karl-Michael
Am 11.04.2013 um 12:00 schrieb fpc-pascal-requ...@lists.freepascal.org: > Message: 1 > Date: Thu, 11 Apr 2013 11:16:16 +0300 > From: patspiper > Subject: [fpc-pascal] 64 bit cross binutils on a 32 bit OS > To: FPC-Pascal users discussions > Message-ID: <51667150.2040...@gmail.com> > Content-Type

[fpc-pascal] Re: 64 bit cross binutils on a 32 bit OS

2013-04-11 Thread Schindler Karl-Michael
> Message: 7 > Date: Thu, 11 Apr 2013 15:06:45 +0200 > From: Schindler Karl-Michael > > Subject: [fpc-pascal] Re: fpc-pascal Digest, Vol 106, Issue 26 > To: fpc-pascal@lists.freepascal.org > Message-ID: > Content-Type: text/plain; charset=us-ascii > > I was

Re: [fpc-pascal] Free member after inherited Destroy;

2013-04-14 Thread Michael Van Canneyt
should be OK, but I would not recommend it when using e.g. components. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Same code from LCL project throw error in console application

2013-04-16 Thread Michael Van Canneyt
it should play music and crash at 10 second. Please ignore code style etc. I just copied and modified source from my original project It seems to work fine here. It stops after 10 seconds, but no errors are reported. Michael. ___ fpc-pascal mai

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

2013-04-18 Thread Michael Van Canneyt
silvioprog Here's a version which I think should work everywhere. I think there might be a bug in the fphttpclient code. If you don't pass the / at the end of the URI it will crash inside the getserverurl function. That bug has been fixed lon

Re: [fpc-pascal] TBufDataset error

2013-04-18 Thread Michael Van Canneyt
you've created the fielddefs, you can use TFields. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] string memory management

2013-04-19 Thread Michael Van Canneyt
;ll get a listing of memory leaks. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetCurrentDir

2013-04-22 Thread Michael Van Canneyt
ay up from '.' in such a case. I just tried, but it gives a correct result in my case. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetCurrentDir

2013-04-22 Thread Michael Van Canneyt
That would only be valid right after startup, and doesn't change when you chdir in the program. +1 Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetCurrentDir

2013-04-22 Thread Michael Van Canneyt
On Mon, 22 Apr 2013, Henry Vermaak wrote: On Mon, Apr 22, 2013 at 09:57:06AM +0200, Michael Van Canneyt wrote: On Mon, 22 Apr 2013, Marco van de Voort wrote: In our previous episode, Mattias Gaertner said: The FPC code tries to work its way up from '.' in such a case. I just tri

Re: [fpc-pascal] Re: Odyssey: SSockets and Threads.

2013-04-25 Thread Michael Van Canneyt
porary, and this all code can undergo drastic changes at any time) ... like ScktComp of Delphi. (no Synapse, LNet or Indy please, I need to use native code) Strange remark. Synapse, lnet or Indy are native pascal code. Michael.___ fpc-

Re: [fpc-pascal] Re: Odyssey: SSockets and Threads.

2013-04-25 Thread Michael Van Canneyt
handles of the streams that ssockets uses. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Odyssey: SSockets and Threads.

2013-04-25 Thread Michael Van Canneyt
On Thu, 25 Apr 2013, silvioprog wrote: 2013/4/25 Michael Van Canneyt [...] Well, ssockets is very low level. fpselect() is mostly useful when you combine multiple file descriptors at once. Although it can be done, IMHO it makes little sense to create a select() method on the socket

Re: [fpc-pascal] Re: Odyssey: SSockets and Threads.

2013-04-26 Thread Michael Van Canneyt
On Fri, 26 Apr 2013, Ludo Brands wrote: On 04/26/2013 08:58 AM, Michael Van Canneyt wrote: On Thu, 25 Apr 2013, silvioprog wrote: I do not know where it would be used, it's just an observation hehe... Yes, but the above is what I mean with 'it does not make much sense'

Re: [fpc-pascal] Re: Odyssey: SSockets and Threads.

2013-04-26 Thread Michael Van Canneyt
On Fri, 26 Apr 2013, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: when the socket buffer is not empty. Note that select also returns when an exception occurs. I am aware of all this. My only 'objection' is that waitfordata() will operate on a sin

Re: [fpc-pascal] Re: Odyssey: SSockets and Threads.

2013-04-26 Thread Michael Van Canneyt
On Fri, 26 Apr 2013, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: I am aware of all this. My only 'objection' is that waitfordata() will operate on a single socket only. Good for single client, bad for server. How many open sockets must you have

Re: [fpc-pascal] fpdoc project file: multiple output formats

2013-04-30 Thread Michael Van Canneyt
or an include of a separate file. Then you could put common things (list of files) in one file, and create top-level files per format you want to produce. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/ma

Re: [fpc-pascal] fpdoc project file: multiple output formats

2013-04-30 Thread Michael Van Canneyt
On Tue, 30 Apr 2013, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: A simpler solution could also be the support for an include of a separate file. Then you could put common things (list of files) in one file, and create top-level files per format you want to

Re: [fpc-pascal] fpdoc project file: multiple output formats

2013-04-30 Thread Michael Van Canneyt
On Tue, 30 Apr 2013, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: I think that is better. Nearly all options have some special params (like --auto-toc --auto-index --make-searchable etc) These are already supported. Everything not recognized as 'globa

Re: [fpc-pascal] fpdoc project file: multiple output formats

2013-04-30 Thread Michael Van Canneyt
On Tue, 30 Apr 2013, Graeme Geldenhuys wrote: On 2013-04-30 08:07, Michael Van Canneyt wrote: Well, I would be to blame for this. :-) But when I do domething like that, then only the backend options would be allowed to differ. I see no need to put all options in backend-specific option

Re: [fpc-pascal] What library would be recommended for creating pdf file (print invoices)

2013-05-02 Thread Michael Van Canneyt
would allow pdf creation Probably there are several other libraries available. Which one would you recommend to me   (taking into account the API cleanliness)  ?    powerpdf or the fpgui one. Michael.___ fpc-pascal maillist - fpc-pascal@lists.free

RE: [fpc-pascal] Synchronize(dummyproc) with Linux.

2013-05-02 Thread Michael Van Canneyt
ead has processed it. Nowhere does it state that this will be done immediatly. The code in the main thread is responsible for checking at regular intervals if a procedure was scheduled, and if so, execute it. Michael. ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] Generic Observables

2013-05-02 Thread Michael Van Canneyt
mediators) ? I must admit though, that the use of message methods is very interesting. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread Michael Van Canneyt
com') ... The resolver or netdb units do not create threads by themselves. But the windows Winsock routines may create threads (I would expect this), and these may show up in your process manager. Michael.___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Michael Van Canneyt
n describe this in more detail. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Van Canneyt
ilable manpower. If it was not translated it means no-one had the need for it. To my knowledge, you are the first to ask about it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, Fred van Stappen wrote: > To my knowledge, you are the first to ask about it. > > Michael. OK, guys, i apologize. It was not the wright way to do things moving. Now, if you can be cooler, i asked that because, like you, i was very surprised that some blind d

Re: [fpc-pascal] fpSock?

2013-05-14 Thread Michael Van Canneyt
. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TProcess, Batch script and Windows

2013-05-16 Thread Michael Van Canneyt
. Is this a bug? As far as I know, batch files need CMD and that needs a console ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Examples of tiOPF logging in the wild

2013-05-17 Thread Michael Van Canneyt
other developer that used this in Delphi, but I have never tried to embedded in inside another form myself. Seeing that you posted here, I'll assume you are using LCL. The next question would be: "Does LCL support reparenting of components or forms?" I have no idea. Yes it

Re: [fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-23 Thread Michael Van Canneyt
o all platforms; IMO it's easier here to indicate some doc is specific to one platform/file format and just include everything... makes devs more aware of cross-platform possibilities/issues) Their content is so sparse that I didn't (or still don't) se

Re: [fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-23 Thread Michael Van Canneyt
On Thu, 23 May 2013, Reinier Olislagers wrote: On 23-5-2013 13:18, Michael Van Canneyt wrote: On Thu, 23 May 2013, Reinier Olislagers wrote: Noticed that fcl-res has documentation in an XML subfolder of $(fpcdir)\packages\fcl-res Shouldn't these be moved into the general fp

Re: [fpc-pascal] http://www.freepascal.org/future.var

2013-06-05 Thread Michael Van Canneyt
me the backend work is the interesting work, everything else is just boring duty :) That's understandable - so to clarify: you're not opposed to an LLVM backend, you're just not going to write one yourself, right? Florian is not. Jona

Re: [fpc-pascal] Re: http://www.freepascal.org/future.var

2013-06-05 Thread Michael Van Canneyt
On Wed, 5 Jun 2013, Reinier Olislagers wrote: On 5-6-2013 9:19, Michael Van Canneyt wrote: On Wed, 5 Jun 2013, Reinier Olislagers wrote: On 4-6-2013 20:05, Florian Klaempfl wrote: Am 29.05.2013 06:25, schrieb Reinier Olislagers: On 28-5-2013 19:16, Sven Barth wrote: On 28.05.2013 17

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

2013-06-05 Thread Schindler Karl-Michael
> Date: Wed, 05 Jun 2013 22:33:31 +0800 > From: Dennis Poon > Subject: [fpc-pascal] is there a ready to use FPC Cross compiler > x86-Linux ->MIPS-linux? > To: FPC-Pascal users discussions > Message-ID: <51af4c3b.8050...@avidsoft.com.hk> > Content-Type: text/plain; charset=UTF-8; format=

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

2013-06-16 Thread Michael Van Canneyt
This in turn means that affected TStream descendents such as TFileStream or THandleStream should try harder to read the requested number of bytes, taking into account the specifics of the underlying file/socket/whatever protocol. Michael. ___ fpc-pascal mail

Re: [fpc-pascal] Dec2Numb with negative numbers

2013-06-16 Thread Michael Van Canneyt
somehow "aseptic" or anyway independent from the sign. It is intended, but not documented. I will document it. (the same is true for numb2dec) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

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

2013-06-16 Thread Michael Van Canneyt
On Sun, 16 Jun 2013, Michalis Kamburelis wrote: Michael Van Canneyt wrote: The above implementation should not be changed, it is Delphi compatible: TStream.ReadBuffer works on the assumption that Read will always return the amount of bytes requested if they are available. So, if you want to

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

2013-06-17 Thread Michael Van Canneyt
On Sun, 16 Jun 2013, Michalis Kamburelis wrote: Michael Van Canneyt wrote: If an implementation of Read does not return the requested data when in fact it is available, then the implementation of Read is broken. I guess it depends how do you interpret TStream.Read documentation... http

Re: [fpc-pascal] Dec2Numb with negative numbers

2013-06-17 Thread Michael Van Canneyt
On Mon, 17 Jun 2013, Roberto P. wrote: Thanks! Is there an unsigned alternative? A signed alternative, you mean ? No, there is not. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Michael Van Canneyt
(FDoc, AFileName); end; So, there is a way to use TXMLDocument but save line by line more faster? No. The writer already uses a fixed buffer. Your problem is the use of TXMLDocument. Simply put: logging to XML (worse: using DOM) is a VERY bad idea. Michael.

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Michael Van Canneyt
. Other process will read this XML. Under no circumstances should you use TXMLDocument for this. Better write the XML manually then: 'fire and forget'. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Michael Van Canneyt
On Tue, 18 Jun 2013, Marcos Douglas wrote: On Tue, Jun 18, 2013 at 10:44 AM, Michael Van Canneyt wrote: On Tue, 18 Jun 2013, Marcos Douglas wrote: No. The writer already uses a fixed buffer. Your problem is the use of TXMLDocument. Ideas? Maybe do what Antonio Fortuny said before

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Michael Van Canneyt
you. Keep the file open between writes. Otherwise you'll notice a serious performance penalty. You can always call Flush() to make sure the content of a buffer was written to disc. Thus, in case of a crash, the XML file will contain all log entries, but will not be well-formed XML. Mi

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Michael Van Canneyt
like TXMLLogger.Finish you can convert it, using strings in memory, it will eat your memory. But I continue to keep the XML in memory... The easy and fast way as I can see is change the TXMLLogger class to write a simple file text but not using DOM. Yes. Mi

Re: [fpc-pascal] How to save a huge XML?

2013-06-18 Thread Michael Van Canneyt
On Tue, 18 Jun 2013, Sven Barth wrote: On 18.06.2013 16:01, Michael Van Canneyt wrote: On Tue, 18 Jun 2013, Marcos Douglas wrote: On Tue, Jun 18, 2013 at 10:44 AM, Michael Van Canneyt wrote: On Tue, 18 Jun 2013, Marcos Douglas wrote: No. The writer already uses a fixed buffer. Your

Re: [fpc-pascal] How to save a huge XML?

2013-06-19 Thread Michael Van Canneyt
On Wed, 19 Jun 2013, Michael Schnell wrote: On 06/18/2013 02:35 PM, Marcos Douglas wrote: Today I call WriteXMLFile(Doc, AFileName) but I have XML with 5G, 10G.. 30G... What the best way to save "line by line"? Why not push it through a stream compressor ? You completely miss

Re: [fpc-pascal] How to save a huge XML?

2013-06-19 Thread Michael Van Canneyt
On Wed, 19 Jun 2013, Michael Schnell wrote: On 06/19/2013 12:14 PM, Graeme Geldenhuys wrote: XML is by far the worst format anybody could choose Yep. bus as it is "Standard" some need to Thus IMHO the way to go is to have the basic XML component work on linked lists with b

Re: [fpc-pascal] SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Michael Van Canneyt
the string on as-is. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-21 Thread Michael Van Canneyt
Adaptive Server connection failed Try adding it in databasename. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Michael Van Canneyt
an application parameter to mssqlconn. Yes, I confirm. The ApplicationName was shown in Profiler tool. Patch in http://bugs.freepascal.org/view.php?id=24635. New parameter is "ApplicationName". Applied. Michael. ___ fpc-pasca

Re: [fpc-pascal] Dataset.Locate and memo

2013-07-02 Thread Michael Van Canneyt
7   $00446181   $00449D0D   $004017FC  main,  line 29 of test.lpr Atttached a small sample to reproduce it. Is SQLdb able to locate records in field of memo type? No. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] Should TObject or TComponent have a Comment property?

2013-07-12 Thread Michael Van Canneyt
ction. The only reason the smalltalk people didn't take that approach, I suppose, is because they don't have an intelligent IDE. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPReadIcon?

2013-07-14 Thread Michael Van Canneyt
On Sat, 13 Jul 2013, silvioprog wrote: Hello, How to load an ICON using FCL-Image? Something like: There is currently no .ico reader. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] FPReadIcon?

2013-07-15 Thread Michael Van Canneyt
On Sun, 14 Jul 2013, silvioprog wrote: 2013/7/14 Michael Van Canneyt On Sat, 13 Jul 2013, silvioprog wrote: Hello, How to load an ICON using FCL-Image? Something like: There is currently no .ico reader. Michael. Hm... does anyone have plans to implement it

Re: [fpc-pascal] [ISSUE] FCL-Web: TUploadedFile causing memory leak?

2013-07-15 Thread Michael Van Canneyt
the files locked when you attempt to delete them, so I changed TUploadedFile.DeleteTempUploadedFile so it first frees the stream if there is one. (cannot test that under Linux, where the demo runs fine) Michael. ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Executable with invisible window and IO enabled

2013-07-16 Thread Michael Van Canneyt
hould compile this app with $apptype GUI, and disable all diagnostic information (i.e. comment out all writeln statements) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strings

2013-07-16 Thread Michael Van Canneyt
systems. Yes, the data of a dynamic string is contained in one connected block. The data of 2 dynamic strings may of course reside in 2 different blocks, i.e., it it not correct to say that all string data of the program is in the same connected block. Michael

Re: [fpc-pascal] what is the FPC equivalent of Delphi's zlib unit?

2013-07-28 Thread Michael Van Canneyt
There are 3 options: paszlib.pas pascal implementation of libz. zstream.pp stream interface, uses paszlib. zlib.pp native interface to C libz library. Michael. On Mon, 29 Jul 2013, Dennis Poon wrote: I need to use CompressBuf and DecompressBuf of zlib in fpc. Thanks, Dennis

Re: [fpc-pascal] what is the FPC equivalent of Delphi's zlib unit?

2013-07-29 Thread Michael Van Canneyt
On Sun, 28 Jul 2013, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: There are 3 options: paszlib.pas pascal implementation of libz. zstream.pp stream interface, uses paszlib. zlib.pp native interface to C libz library. Is any one of those more "natural" than the res

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
does not work with swig trunk. I was planning to try and get this into swig, but after your remarks, I am no longer so sure that this is a good idea :) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
rs ? Or is this meanwhile standardized ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:38, schrieb Michael Van Canneyt: On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:10, schrieb dev.d...@gmail.com: And if it's allowed to dream: one time fpc will simply link against C++ directly :) If you prefer to wo

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
If not, I still must construct that... Now if it is written in Pascal, I pull up my sleeves, open whatever it is in Lazarus and start debugging/coding. Not so in tools like swig. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

<    9   10   11   12   13   14   15   16   17   18   >