Re: [fpc-pascal] SqlDB TSQLQuery sqoAutoApplyUpdates does not work with ExecSQL

2022-12-15 Thread Andreas Frieß via fpc-pascal
Am 15.12.2022 um 11:15 schrieb Michael Van Canneyt via fpc-pascal: On Thu, 15 Dec 2022, Andreas Frieß via fpc-pascal wrote: On MSSQL i use a stroed procedure to count a value in a table and use the following statement in Lazarus 1.     procedureTForm1.BuExecuteClick(Sender:TObject); 2

[fpc-pascal] SqlDB TSQLQuery sqoAutoApplyUpdates does not work with ExecSQL

2022-12-15 Thread Andreas Frieß via fpc-pascal
pdates;   finally     CheckUnPrepare;     // if not Prepared and (assigned(Database)) and (assigned(Cursor)) then SQLConnection.UnPrepareStatement(Cursor);   end; end; to get the correct behavior. Actual only Post and Delete fire the ApplyUpdates correct if sqoAutoApplyUpdates is activated. Sh

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Andreas Frieß via fpc-pascal
Am 19.03.2021 um 13:34 schrieb Michael Van Canneyt via fpc-pascal: On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: If it is not a bug, so a featurerequest must be possible, because other reports can handle this without a problem. You can definitely submit a feature request. For

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Andreas Frieß via fpc-pascal
Am 19.03.2021 um 11:07 schrieb Michael Van Canneyt via fpc-pascal: On Fri, 19 Mar 2021, Michael Van Canneyt via fpc-pascal wrote: On Fri, 19 Mar 2021, Andreas Frieß via fpc-pascal wrote: Make a Report Preview -> only the contend of the first dataset is shown. I will file a bug

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Andreas Frieß via fpc-pascal
Am 18.03.2021 um 16:06 schrieb Andreas Frieß via fpc-pascal: Am 18.03.2021 um 14:24 schrieb Michael Van Canneyt via fpc-pascal: In that case, you must put lReportOLData2 on a separate design page. So: * Add a design page (page 1) to the report. * Do what you need with lReportOLData1 on this

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Andreas Frieß via fpc-pascal
If i load the design created by the demo in the FPReportDesigner i see the expected layout. DBBand01 should show the the data of the first Objectlist,  DBBand02 the data from the second Objectlist. Actual changed demo included. Am 18.03.2021 um 14:13 schrieb Andreas Frieß via fpc-pascal: The

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-18 Thread Andreas Frieß via fpc-pascal
Am 18.03.2021 um 14:24 schrieb Michael Van Canneyt via fpc-pascal: On Thu, 18 Mar 2021, Andreas Frieß via fpc-pascal wrote: The expected layout is in the demo. 'Expected layout' for me is a PDF, screenshot image of some finished document, showing what you want to see printed.

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-18 Thread Andreas Frieß via fpc-pascal
the one page is finished, it should continued on the next page. This works for lReportOLData1 ok, but lReportOLData2 is never used/seen/reported. Andreas Am 18.03.2021 um 13:05 schrieb Michael Van Canneyt via fpc-pascal: . I can't advise you on what bands you must place memo and h

[fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-18 Thread Andreas Frieß via fpc-pascal
I have a sample attached to show the problem. I want in the report (created a runtime) to use more than one report datasource. I create a databand and connect this with a TFPReportObjectListData object. Each TFPReportObjectListData object works. But i want to have the data of the first, then the

[fpc-pascal] go32 tcp

2020-08-27 Thread Andreas via fpc-pascal
for a TCP connection? 3) How does the unit "talk" with the 16-bit DOS packet driver? Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] go32 tcp

2020-08-27 Thread Andreas via fpc-pascal
for a TCP connection? 3) How does the unit "talk" with the 16-bit DOS packet driver? Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] BSON formatter

2020-05-07 Thread Andreas Schneider
is just around 30 MB if you strip away the java based management console stuff ... and that thing is a feature monster for data management.) -- Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] BSON formatter

2020-05-07 Thread Andreas Schneider
t text format so it's probably pretty easy to implement but I thought I would ask first. I would go with ProtoBuf for something like this. If you really want to be flexibel in the datastructure, look at msgpack/messagepack. Both (protobuf and msgpack) are pre

Re: [fpc-pascal] "Hello world" syscalls

2020-01-09 Thread Andreas Schneider
Am 2020-01-09 00:30, schrieb Graeme Geldenhuys: So the resulting Java.class is 16 MByte in size!!! How? No it's not. I quote: The size of all files which must be present at runtime (interpreters, stdlib, libraries, loader, etc) are included. So 16mb is pretty generous. I wouldn't immediatel

Re: [fpc-pascal] fcl-report demos not working on windows10/64 with win64 compiled - Font Arial not found

2019-12-29 Thread Andreas Frieß
ished that, we can check why the fallback is not found, and perhaps the error message. Michael. On Fri, 27 Dec 2019, Andreas Frieß wrote: Hello Michael, if the font is not found, why is there not the correct indication of the missing font ? The errormessage is in this case completly wrong. If a f

[fpc-pascal] fcl-report demos - expressions - have problem with [RecNo]

2019-12-27 Thread Andreas Frieß
There is more not working in the report demos. The expressionparser have problems with a simple [RecNo] D:\data\lazdev\trunk64\fpcsrc\packages\fcl-report\demos>fcldemo -d expressions Exception at 000100096E0D: EExprParser: Expected ( bracket at position 12, but got -. Heap du

[fpc-pascal] Fwd: Re: fcl-report demos not working on windows10/64 with win64 compiled - Font Arial not found

2019-12-27 Thread Andreas Frieß
not on a Windows10/64 machine, if this is true i should see the message -> fpreport: Could not find the font in the font cache. Or -> EReportFontNotFound: >> Font not found: "Liberation Sans". Andreas Am 27.12.2019 um 16:00 schrieb Michael Van Canneyt: As I said: The dem

Re: [fpc-pascal] fcl-report demos not working on windows10/64 with win64 compiled - Font Arial not found

2019-12-27 Thread Andreas Frieß
0 unfreed memory blocks : 0 True heap size : 262144 (320 used in System startup) True free heap : 261824 Michael Van Canneyt wrote: > > > On Fri, 27 Dec 2019, Andreas Frieß wrote: > > > I have now built the fcl-fpreport demos on win64 on a Windows10/64 > >

[fpc-pascal] fcl-report demos not working on windows10/64 with win64 compiled - Font Arial not found

2019-12-27 Thread Andreas Frieß
font arial. It is not logical for me. gTTFontCache is built correct for the report, why is the renderer not found the font ? Is the renderer use another fontcache ?! Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

Re: [fpc-pascal] fcl-fpreport not built complete, missing fpreport.dom

2019-12-26 Thread Andreas Frieß
code see https://forum.lazarus.freepascal.org/index.php/topic,47627.msg344017.htm l#msg344017 and https://forum.lazarus.freepascal.org/index.php/topic,47889.msg344069.html#msg344069 Andreas Michael Van Canneyt wrote: > > > On Thu, 26 Dec 2019, Andreas Frieß wrote: > > > I ha

[fpc-pascal] fcl-fpreport not built complete, missing fpreport.dom

2019-12-26 Thread Andreas Frieß
il.pp    Compiling .\fcl-report\src\fpreportpdfexport.pp    Compiling .\fcl-report\src\fpreporthtmlexport.pp    Compiling .\fcl-report\src\fpreportfpimageexport.pp    Compiling .\fcl-report\src\fpreportqrcode.pp Should i file a bug for FPC ? An

[fpc-pascal] linking Openwatcom object files (DOS)

2019-08-20 Thread Andreas Berger
still in use by the company I work for from C++ to Freepascal. Regards, Andreas Berger ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Link with GCC object files

2018-08-22 Thread Andreas Berger
Thank you Sven, this will be a big help Regards, Andreas On 22/08/2018 12:12, Sven Barth via fpc-pascal wrote: Andreas <mailto:andreasberger@gmail.com>> schrieb am Mi., 22. Aug. 2018, 12:59: Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM) wi

[fpc-pascal] Link with GCC object files

2018-08-22 Thread Andreas
Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM) with GCC or other C++ object files? Regards, Andreas Berger ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

[fpc-pascal] Backport of Bugfix 0031517 possible

2018-03-22 Thread Andreas Frieß
.html about this. My question is, is it possible to make a backport of this fix? Should i reopen the Bugreport oder create a new one ? The soloution is now one year in trunk and i have seen no problems with it. Andreas ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] fpreport rangeerrors with TFPReportColor

2018-02-24 Thread Andreas Frieß
function QWordToReportColor(AQWord: QWord):TFPReportColor; begin   Result := TFPReportColor(AQWord and $); end; The second, i foung a not created Font, if you are not using Parent-Fonts. Also fixed. Thx to all who have some things more clear to me AND why. Andreas

Re: [fpc-pascal] fpreport rangeerrors with TFPReportColor

2018-02-21 Thread Andreas Frieß
he defines are Lazarus compatible. It works for both systems. I can make a patch if needed. But the teams have to IMHO to decide the best way :-) Andreas Am 21.02.2018 um 23:53 schrieb Michael Van Canneyt: On Wed, 21 Feb 2018, Mattias Gaertner wrote: On Wed, 21 Feb 2018 19:54:55 + Gr

Re: [fpc-pascal] fpreport rangeerrors with TFPReportColor

2018-02-21 Thread Andreas Frieß
Andreas Frieß wrote: > when i compile in Lazarus the Reportdesigner with activated > RangeCheck it gives a lot of runtimeerror with rangeerrors. > For explanation what i mean in my previous post, UInt32 is not an integer or JSON compatible size (and actual rangecheck unsafe).

[fpc-pascal] fpreport rangeerrors with TFPReportColor

2018-02-21 Thread Andreas Frieß
I am wrong ? Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-28 Thread Andreas
On 25/11/2017 14:43, Martin Schreiber wrote: On Saturday 25 November 2017 15:04:05 Andreas Berger wrote: On the Android side I actually only need a graphical app with access to the Bluetooth and possibly be a TCP client. And why Free Pascal to develop the android application? What would be

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-28 Thread Andreas Berger
On 25/11/2017 14:43, Martin Schreiber wrote: On Saturday 25 November 2017 15:04:05 Andreas Berger wrote: On the Android side I actually only need a graphical app with access to the Bluetooth and possibly be a TCP client. And why Free Pascal to develop the android application? What would be

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-25 Thread Andreas Berger
On the Android side I actually only need a graphical app with access to the Bluetooth and possibly be a TCP client. On 25/11/2017 10:28, Martin Schreiber wrote: On Saturday 25 November 2017 11:52:39 Andreas Berger wrote: I went back to Delphi because our company is converting all programs

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-25 Thread Andreas Berger
the company to go back to FPC since all our current projects work with it. I Never used MGE but have been keeping an eye on it and know what you do is very stable. On 25/11/2017 04:25, Martin Schreiber wrote: On Friday 24 November 2017 18:38:39 Andreas wrote: Hi Martin, do you have any plans

Re: [fpc-pascal] MSEide+MSEgui 4.6 for FPC 3.0.4

2017-11-24 Thread Andreas
Hi Martin, do you have any plans to cross compile to android? On 24/11/2017 06:08, Martin Schreiber wrote: Hi, MSEide+MSEgui version 4.6 has been released: https://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/4.6/ There are also new versions of MSEgit, MSErun, MSEspice and MSEki

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-06 Thread Andreas
Graeme, I am a big fan of your messages. You have many good ideas and I sometimes read a theme that I am not interested in just to see your response. In this case however I think you are wrong. Pascal has fantastic inherent type and error checking in its structure. It would be wrong to have a

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-18 Thread Andreas
I know this is off topic, but does Synapse work on Android? I am planning on using FpcUpDeluxe to write an android app that has a TCP client, but am still looking for the TCP component. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] googleapiconv raises ERESTAPI error

2016-11-08 Thread Andreas Frieß
I think the same problem will appear in Lazarus with the gooleapis components (and examples), because they based on the fpc. ... Exception-Class >>ERESTAPI<< TTasklist: unsopported array element type Andreas Am 06.11.2016 um 16:00 schrieb Michael Van Canneyt: On Sun

[fpc-pascal] googleapiconv raises ERESTAPI error

2016-11-06 Thread Andreas Frieß
> TTypeDefä`F ÉF googlediscoverytopas TRestMethodParam > ê█E ÿ ê█E á TRestMethodParams É". Any hint 4 me ? Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] code example where AnsiString used in FCL (SqlDB) causes data loss

2016-05-11 Thread Andreas Dorn
All in all Graeme is right. FPC looks pretty much broken to me, too. For my projects I pulled the emergency-break on anything FPC.   The most serious flaws for me of FPC 3.0 are: - assuming that it's possible to assign an encoding to every string - using an (unsafe) guess about the encoding fo

Re: [fpc-pascal] Linux: resolving hostnames in local network

2016-04-23 Thread Andreas Klausmann
Thanks, cnetdb.gethostbyname() works fine (at least on my raspberry). :) Creating a wrapper function is recently my work-around for an actual ping component (since linux doesn't seem to have a corresponding component like ping.dll and I want to ping as non-root) Am 23.04.2016 um 12:42 schrieb Ma

[fpc-pascal] Linux: resolving hostnames in local network

2016-04-23 Thread Andreas Klausmann
by avahi) gethostbyname() works fine under Windows even for LAN resolution (resolved in background by Netbios name service). Currently I'm working on Ubuntu 15.10 on a raspberry, fpc 3.0. Best regards! Andreas ___ fpc-pascal maillist - fp

Re: [fpc-pascal] heaptrc and high RAM usage

2016-03-30 Thread Andreas Schneider
://valgrind.org/docs/manual/ms-manual.html Best regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Please someone explain this to me

2016-02-15 Thread Andreas Schneider
f documentation. Therefore *fully* explaining the behavior would be wrong. Best regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Assign() vs AssignTo()

2016-02-11 Thread Andreas Schneider
le the assignment onto the foreign class. Best regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Andreas
alish. Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread Andreas Berger
On Tue 02/02/2016 10:52, Serguei TARASSOV wrote: On 02/02/2016 13:41, fpc-pascal-requ...@lists.freepascal.org wrote: Date: Tue, 02 Feb 2016 10:32:28 -0200 From: Andreas Berger On Tue 02/02/2016 09:27, Jonas Maebe wrote: > >The parameter evaluation order issue is irrelevant in this c

Re: [fpc-pascal] Parameter evaluation order

2016-02-02 Thread Andreas Berger
On Tue 02/02/2016 10:41, Jonas Maebe wrote: Andreas Berger wrote on Tue, 02 Feb 2016: On Tue 02/02/2016 09:27, Jonas Maebe wrote: The parameter evaluation order issue is irrelevant in this context: Delphi guarantees left-to-right (or used to anyway, this may have changed), FPC doesn&#

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread Andreas Berger
ng Borland products since TP 1.0 and for me left-to-right is automatic, I don't even think about it. If FPC doesn't guarantee this my code is full of potential problems. BTW using left-to-right does not mean non-robust code if it is guaranteed. Andreas __

Re: [fpc-pascal] CrossFPC

2016-01-24 Thread Andreas
sions, the documentation on main page says XE4. I was subscribed to the Mailinglist but have not received a single mail for the last years so propably the mailinglist is dead. Michael Am 24.01.16 um 16:03 schrieb Andreas: CrossFPC recently released a new update and I decided to test it. Howerver it fails

[fpc-pascal] CrossFPC

2016-01-24 Thread Andreas
CrossFPC recently released a new update and I decided to test it. Howerver it fails to install on either of my two machine. I tried subscribing the their email list (twice) but with no success. I never received the confirmation email. I know this is not the CrossFPC list, and most on this list

[fpc-pascal] unit for PHostEnt definition

2015-12-16 Thread Andreas Klausmann
to systems "man gethostbyname". Thanks! Andreas Working on fpc 2.6.4 (from ubuntu repository) on ubuntu (raspberry 2). ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] using eventfd

2015-10-22 Thread Andreas Klausmann
them has been set. Best regards Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Andreas Dorn
On Fri, 25 Sep 2015, Michael Van Canneyt wrote: > It uses UTF16 on windows, not a codepage aware string. > So if you use widestring for all your filename strings, there will be no > problem. No conversions will happen.   If I understand that correctly, it stores the filename in a string that has

[fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Andreas Dorn
Hi there,   In the discussion about resourcestrings I read that the RTL now uses codepage-aware strings for FileIO. So I wonder what kind of codepages do you use for FileIO? The Windows-documentation calls Filenames "opaque sequence of WCHARs". https://msdn.microsoft.com/en-us/library/windows/des

Re: [fpc-pascal] libxml on MacOS X

2015-02-22 Thread Andreas Schneider
Oh god, that must have been tunnel vision. Yeah, that was the obvious next step. Thanks :-) I compiled all the supplied examples and ran them, and they seem to print plausible results. The only hurdle is, that ld doesn't pick up libxml2.dylib on its own - for whatever reason. I had to expl

[fpc-pascal] libxml on MacOS X

2015-02-21 Thread Andreas Schneider
Hello, is there a specific reason why libxml is not built for MacOS X / darwin? My first instinct was to "just try it" and but then I found out the hard way, that I have no idea how to correctly use fpmake ... So in case there is simply no one who tried libxml on OSX, I would be willing to do

Re: [fpc-pascal] SetLength procedure

2014-07-27 Thread Andreas Berger
I very seldom comment on this, or any, forum unless I have a good answer and no one else seem to have one. This case is different. I have noticed quit often here that instead of answering the question people try to reason why in the world the author of the question would even want to do this. W

Re: [fpc-pascal] SourceForge April 2014 Project of the Month: Free Pascal

2014-04-15 Thread Andreas Schneider
me! Hopefully this pushes FreePascal further. It's such a great compiler and platform to work with. Thanks to all developers and contributors for offering us such a fantastic toolset (especially Lazarus is outstanding in regards to RAD GUI development). Thanks!! - -- Best Regards, And

Re: [fpc-pascal] Cloning objects?

2014-03-19 Thread Andreas Schneider
ere is no one-size-fits-all here. Best regards, Andreas signature.asc Description: OpenPGP digital signature ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Objects in dynamic arrays

2013-11-27 Thread Andreas Schneider
es [index] *before* copying the value Maybe a bit late, but that might not be true. If Timothy really talks about _object_ (and not _class(TObject)_) it should work as he does it. Also Destroy would probably be appropriate. Just saying :-) The actual type defs used are missing. -

Re: [fpc-pascal] Bootstrap binaries

2013-03-04 Thread Andreas Schneider
't necessary when the full compiler is available. Which it is for i386-linux and i386-win32 (see directory above). -- Best Regards, Andreas pgp4Vt49BdRvj.pgp Description: PGP signature ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] CrossFPC is finally released

2012-12-31 Thread Andreas Berger
Simon, If I use CrossFPC with D7 or XE3 + FPC for windows, will the Delphi IDE use it's built-in debugger? The main reason I don't use Lazarus is because of the lousy debugging in Windows. Regards, Andreas ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: Cross platform signal handler?

2012-07-16 Thread Andreas Schneider
80/Server/UCEDServer.pas#L78-105 and here http://hg.aksdb.de/CentrED/files/3bf040abc0311f68ad6c90486625fac2ce914c80/Server/UCEDServer.pas#L351-359 -- Best Regards, Andreas pgpVV4VtoVtbY.pgp Description: PGP signature ___ fpc-pascal maillist - f

Re: [fpc-pascal] Re: Help!!

2012-01-18 Thread Andreas Schneider
Title: Re: [fpc-pascal] Re: Help!! On Tuesday, January 17, 2012, at 16:24 Mattias Gaertner wrote: Andreas Schneider hat am 17. Januar 2012 um 16:08 geschrieben:   >  > My current use case is:  > - show a login form  > - when login succeeds, show a progress form (connection  in

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Andreas Schneider
rrent Application.MainForm several times. -- Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Andreas Schneider
TApplication.MainForm a writable property? (I ask this here instead of opening a ticket because I suspect there's a good reason why this isn't available yet, which you will tell me now. :-)) -- Best Regards, Andreas ___ fpc-pascal mail

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

2011-12-07 Thread Andreas Berger
FPC uses MT at least for 10 years and nobody complained about performance yet. So I suspect the cases might be very rare when random performance matters and having good random numbers is always a good thing ... I prefer not to change it but it's fine for me for delphi compatibility's sake ;) Or ma

Re: [fpc-pascal] Division by Zero

2011-08-23 Thread Andreas Schneider
en.wikipedia.org/wiki/Division_by_zero#In_computer_arithmetic -- Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread Andreas Schneider
...) and other things the compiler MIGHT do better. -- Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread Andreas Schneider
to be written for 64bit aswell. If you want to compile for ARM, you have to write assembler for ARM. Same procedure with SPARC, POWER, etc. In other words: you can't use that 32bit ASM when compiling as/for 64bit. That's one of the reasons why you should avoid assembler whenever possib

[fpc-pascal] FPC for ARM-7

2011-07-23 Thread Andreas Berger
I am hoping to use FPC for ARM-7, compiling and debugging on a Windows machine. At the moment I am using Keil C + ULink2. Is it possible to use FPC from Windows and debug via the ULink2? Regards, Andreas ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] Inherit interface from 2 interfaces

2011-04-12 Thread Andreas Dorn
On Tue Apr 12, michael.vancanneyt worte: On Tue, 12 Apr 2011, Andreas Dorn wrote: On Fri, 8 Apr 2011, michael.vancanneyt worte: The whole idea of interfaces is to avoid multiple inheritance. Hm. I don't believe that. One of the major points of interfaces is indeed to avoid the proble

Re: [fpc-pascal] Inherit interface from 2 interfaces

2011-04-12 Thread Andreas Dorn
e inheritance complicated certain situations for myself.. forcing me to put runtime interface-casts into my code that a compiler with multiple interface inheritance could have checked at compiletime. -- Andreas ___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] Memory leak or object destruction?

2011-02-03 Thread Andreas Schneider
On Wed, 2 Feb 2011 21:09:42 -0800, Andrew Hall wrote: Interfaces support reference counting. Only COM interfaces, but they are currently the default anyway. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailma

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

2011-01-30 Thread Andreas Schneider
Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-28 Thread Andreas Schneider
st flexibility: http://www.artofsolving.com/opensource/jodconverter ... because you can run it as webservice. Or you can simply invoke it from commandline. -- Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fr

Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-15 Thread Andreas Schneider
e you may even be able to control it from a Pascal application, but for a simple conversion it's probably a lot easier to just invoke it via commandline. -- Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Andreas Schneider
umb which can convert from decimal into any given number system. (... and the opposite Numb2Dec) -- Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 18:52 Frank Church wrote: > Is there a FCL library that can be used to convert a large integer into > base64 format? Define "large integer" ... in case you mean a normal integer/int64: IntToHex(...); -- Best

Re: [fpc-pascal] The new Delphi compatible unicode string

2011-01-04 Thread Andreas Schneider
the fine "Execution in the Kingdom of Nouns"[1] by Steve Yegge, FPC will get a pretty good look ;-) (Although he doesn't mention FPC, the points he makes with C++ match FPC just as well). Best Regards, Andreas. [1] http://steve-y

Re: [fpc-pascal] Re: Reading MDB (MS-Access) data under Linux

2010-11-01 Thread Andreas Schneider
FPC application on Linux, using unixodbc, freetds and sqldb :) Best Regards, Andreas Schneider. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-18 Thread Andreas Berger
But it should make you wonder why this is no longer allowed in the latest C++ standards. What do you mean? The current C++ standard (ISO 1998+TR1) permits short scope declarations. Indeed, C++ permits declarations to appear anywhere, not just after a { to open a function or compound statement

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-18 Thread Andreas Berger
for (int i = 0;...) Can't see anything wrong. I use declaration of variables inside blocks quite often in Java and C++ but have never missed it in pascal. Please enlighten me. What is so bad about creating temporary variables inside blocks instead of the beginning of a function in a language

Re: [fpc-pascal] TFileStream and stdin - how to make this work?

2010-10-03 Thread Andreas Schneider
however, if that fixes the problem you have with the stream blocking when nothing is to be read. If nothing else helps I guess you could use a thread to read the data from stdin, then it shouldn't matter if it blocks. Best regards, Andreas. ___ fpc

Re: [fpc-pascal] ARM-Cortex port

2010-08-23 Thread Andreas Berger
Thanks Jonas and Jeppe for your answers. I will probably wait then to switch (or try to convince the company to use an ARM-9) On 23/8/2010 11:21 AM, Jeppe Johansen wrote: Den 23-08-2010 16:09, Andreas Berger skrev: I know that FPC works under ARM+Linux. Is this also true for the Cortex

[fpc-pascal] ARM-Cortex port

2010-08-23 Thread Andreas Berger
processor. Will FPC run on this processor? Does anyone have experience? If FPC runs I may be able to convert my last C++ app to pascal. Thanks, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Hashmap for integers

2010-08-22 Thread Andreas Schneider
On Sun, 22 Aug 2010 18:36:23 +0300, "Juha Manninen (gmail)" wrote: > My prog has a big amount of integers, thats why an integer list is not > enough. > A binary search from a sorted list is pretty fast but the problem is that > I am adding items to the list and it must be sorted after every addi

Re: [fpc-pascal] Hashmap for integers

2010-08-22 Thread Andreas Schneider
Len ... > SeenLen[Len] := nil; // If the data type is pointer > end; > > > A related question: > What is the state of the generic containers now? FPC 2.4.x should be fine with generics, although 2.5 is still more advanced in that sector. Best regards, Andreas. __

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-15 Thread Andreas Schneider
On Sun, 15 Aug 2010 09:59:10 -0300, Marcos Douglas wrote: > Zeoslib uses ADO too. So, it could be used with MS SQLServer. > I think Zeoslib is more faster than ODBC. That depends on the platforms you want to target. AFAIK ADO is Windows-only, so you bind yourself to Microsoft platforms. If you i

Re: [fpc-pascal] LNet

2010-06-11 Thread Andreas Schneider
t to see that implementation, let me know, it's opensource anyway. Best Regards, Andreas. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Crosscompile FPC from Win32 to Linux

2010-06-07 Thread Andreas Berger
Sven Barth wrote: Someone on Delphi-PRAXiS has prepared Linux VMs with OpenSUSE and a preinstalled Lazarus (and thus FPC). You need either VMWare (the Player is free) or VirtualBox (which can run such disks) to use it. Also its language is German, so you might need to change the language setti

Re: [fpc-pascal] Crosscompile FPC from Win32 to Linux

2010-06-07 Thread Andreas Berger
Henry Vermaak wrote: Luckily, someone else has built mingw cross tools here: ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw Thanks, I downloaded the package. However, I will try Sven's approach first. ___ fpc-pascal maillist - fpc-pascal@list

[fpc-pascal] Crosscompile FPC from Win32 to Linux

2010-06-04 Thread Andreas Berger
I have a stable cgi program running in windows (no libraries - simple writeln). However, our web host is in linux. Is there a simple way for me to cross-compile the app? or is it easier to learn how to use linux and do it there? I saw a page how to crosscompile lazarus, but it seamed very compl

Re: [fpc-pascal] FPC class syntax was extended to support delphi code

2010-01-14 Thread Andreas Schneider
I think they come in very handy for the Singleton OOP concept. You need to have a "factory" that handles the object query/instantiation. If no instance is available, it creates a new one (and stores it) and if one is already available, it just returns that. Naturally that looks better to have TS

Re: [fpc-pascal] Re: creating a standalone executable (eg: application installation file)

2010-01-12 Thread Andreas Schneider
I think if digital signing is required, using Windows Resources would be the better way. Now that I think about it, with FPC 2.4 that should even be possible on Linux (and other platforms). Many roads lead to rome :D Am Dienstag 12 Januar 2010 14:17:21 schrieb Milan Marusinec: > Andr

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Andreas Schneider
... first compile to know the exe size, then change the constant storing that size, and recompile again ...) Best regards, Andreas. Am Dienstag 12 Januar 2010 13:37:26 schrieb Graeme Geldenhuys: > Hi, > > I have seen a few Linux application that have standalone executables > that ar

Re: [fpc-pascal] Forum merger

2009-12-16 Thread Andreas Berger
If I made one, then I'll make it using Powtils (fully CGI) or ExtPascal (fully Ajax) because that's what I know and have been experience with. I myself prefer to use fpWeb since it's provided by FPC's FCL. No third party dependency is good for new comers, and it's also better FPC/Lazarus prom

Re: [fpc-pascal] Forum merger

2009-12-15 Thread Andreas Berger
Yes, this is it. I don't have any experience in building web-applications with Pascal, but if someone registers a new project at Gitorious or somewhere else I would like to help as far as I can. As would I. I will soon need to write a CGI program, and this would be a great way. __

[fpc-pascal] Class Operators

2009-12-11 Thread Andreas Schneider
or am I out of luck here? Thanks, Andreas. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Andreas Schneider
per library that flattens the object oriented structure of QT. You have similar problems with most languages. Writing bindings to foreign language libraries is always problematic. C (i.e. a flat API) is usually the common denominator. Best Regards, Andreas. __

  1   2   >