[fpc-pascal] including libraies ?

2010-03-14 Thread Terry A. Haimann
I tried to write a little utility to submit a command to the At Facility. The code to do this is as follows: program TestPrg; Uses Classes, Process; Var i:Integer; Cmd, Pre, Post, StrVar, SwStr:String; MyProcess: TProcess; SOut, EOut, StdStrLst: TStringList; Begin

[fpc-pascal] tstringlist.savetostream

2010-03-15 Thread Terry A. Haimann
After running tstringlist.savetostream how can I make sure that the buffer has been flushed and data sent successfully? Thx ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: tstringlist.savetostream

2010-03-16 Thread Terry A. Haimann
Ok, I have a Lazarus test program that has the following code: procedure TMainForm.ExecButClick(Sender: TObject); Var StdStrLst, ErrorStrLst: TStringList; MyProcess: TProcess; begin StdStrLst := TStringlist.Create; ErrorStrLst := TStringlist.Create; MyProcess :=

Re: [fpc-pascal] Re: tstringlist.savetostream

2010-03-17 Thread Terry A. Haimann
-pascal] Re: tstringlist.savetostream To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Message-ID: 20100317055250.144d617...@turtle.stack.nl Content-Type: text/plain; charset=US-ASCII In our previous episode, Terry A. Haimann said: Virtually the same logic in a fpc program doesn't

[fpc-pascal] 64 bit ?

2011-05-18 Thread Terry A. Haimann
I have a desktop with a 64bit AMD x4 Phenom processor. I have noticed that FreePascal programs perform worse on this computer then they do on my 32 bit laptop. Integer performance seems to be about 3 times worse then on the laptop. Now if I convert the pascal source to c and compile that as

[fpc-pascal] Writing a Console App in FreePascal that connects to MySQL

2015-03-26 Thread Terry A. Haimann
I was trying to see how to write a Console Appication in FreePascal that will connect to MySQL. I know how to do this in c, but thought it would be interesting to be able to do it in Pascal. How should FConnection and FTransaction be declared or are the declared in a library somewhere? I have

[fpc-pascal] Zeosdbo

2015-04-13 Thread Terry A. Haimann
I'm sure its possible to connect to Mysql with Zeosdbo from a command line FreePascal Program, but I am not sure how. I tried using the same includes that are for the Lazarus components, but it didn't find those files. Any help would be appreciated.

[fpc-pascal] FreePascal and MySQL

2015-05-01 Thread Terry A. Haimann
I was kind of unimpressed with the performance of TSqlQuery compared to c. I wrote two programs that built the same identical table. A random set of names with addresses. I found the user time of the program written in c was 20% of that which was written in Free Pascal. Is there any chance

[fpc-pascal] MySQL 5.7 and FreePascal

2016-11-19 Thread Terry A. Haimann
Is it possible to connect to MySQL 5.7 using TSQLConnection or will I have to downgrade my MySQL Version? I have FreePascal 3.0.0 which appears to be the most current version. I have it on a Ubuntu Linux 16.10 X86-64 system. ___ fpc-pascal maillist

[fpc-pascal] Connecting to a MySQL Server

2017-10-05 Thread Terry A. Haimann
What library do I need to install on Raspian (Raspberry Pi) to allow Free Pascal to attach to a Mysql Server. Note the MySQL Server is running on a i5 and is actully MariaDB 5.5.47 An unhandled exception occurred at $000E7398: EInOutError: Can not load default MySQL library

[fpc-pascal] FreePascal and MySQL ?

2017-11-20 Thread Terry A. Haimann
Hello, This is probably a dumb question. But I have data in a tstringlist that I want to upload into a MediumText MySQL column. It looks to me as if you do something like: Stream := TMemoryStream.Create; MySL.SaveToStream(Stream);

[fpc-pascal] Trying to compile ZeosDBO cli program

2018-02-12 Thread Terry A. Haimann
First of all, thank you for looking at this, Terry H. To compile a cli FreePascal program to use ZeosDBO library, I assume all I have to do is include the path to those files. On my laptop, the files appear to be in: /home/terry/ZeosDBO/packages/lazarus/lib/x86_64-linux Well after adding that

Re: [fpc-pascal] Trying to compile ZeosDBO cli program

2018-02-13 Thread Terry A. Haimann
would be. Mostly, at this point,I want to compare ZeosDBO's performance against SqlDB. I know how to do this with SqlDB, but think it's performance is lackluster. Terry H On 13/02/2018 04:50 πμ, Terry A. Haimann wrote: > First of all, thank you for looking at this, Terry H. > > To comp

Re: [fpc-pascal] Trying to compile ZeosDBO cli program

2018-02-13 Thread Terry A. Haimann
Zconnection I only added the paths in temporarily. On 13/02/2018 15:48 μμ, Terry A. Haimann wrote: > I really do not understand your response. If you are talking about > Lazarus, I already have it working there. OK > I am wanting to get it to > work from a command line batch progr

Re: [fpc-pascal] Trying to compile ZeosDBO cli program

2018-02-13 Thread Terry A. Haimann
/02/2018 15:48 μμ, Terry A. Haimann wrote: > I really do not understand your response. If you are talking about > Lazarus, I already have it working there. OK > I am wanting to get it to > work from a command line batch program using fpc. Using fpc I do not > know how to set re

[fpc-pascal] Connecting to a database from a commandline pascal program

2018-02-16 Thread Terry A. Haimann
Hello, I am trying to write a command Line Pascal program to connect to a MySQL database using the ZeosDBO Library. I am sure I have done something stupid. I have it now so that it will compile, but it crashes as soon as I try to modify my TZConnection variable. I have it defined as:

[fpc-pascal] I am trying to install zeosdbo

2018-06-15 Thread Terry A. Haimann
I am trying to install zeosdbo onto my Lazarus install and am getting the following error during the rebuild: Build IDE: Exit code 512, Errors: 1lazarus.pp(1,1) Fatal: Cannot find aarrebase used by Lazarus. Check if package aarrebase creates aarrebase.ppu, check nothing deletes this file and check