Tiziano_mk ha scritto:
{ Link with VGA, gl and c libraries }
{$linklib vga}
{$linklib c}
I am not a linux expert, so after installing the library "libsvga" (the
only like "libvga" I found on the ubuntu repository) I don't understand
what the linker wants and I'm giving up.
Some hints would
Hello,
I have several questions about executing external programs with TProcess
1. I need to execute the following command :
psql -q -f /home/am/src/gfaf/hlemit_d.sql -v D1="'1-apr-06'" -v
D2="'1-jun-06'"
(it might not be obvious at first sight that there are both " and '
enclosing those d
On Tue, 3 Oct 2006, Adrian Maier wrote:
> Hello,
>
> I have several questions about executing external programs with TProcess
>
> 1. I need to execute the following command :
> psql -q -f /home/am/src/gfaf/hlemit_d.sql -v D1="'1-apr-06'" -v
> D2="'1-jun-06'"
>
> (it might not be obvious at
On Tue, 3 Oct 2006, Michael Van Canneyt wrote:
> > 2. Where is the TProcess documented on the freepascal website? I had
> > found a FCL.pdf some time ago , but I am unable to find that doc on the
> > freepascal website.
>
> It is not documented currently. It's scheduled as the next unit to be
Michael Van Canneyt schreef:
On Tue, 3 Oct 2006, Adrian Maier wrote:
2. Where is the TProcess documented on the freepascal website? I had
found a FCL.pdf some time ago , but I am unable to find that doc on the
freepascal website.
It is not documented currently. It's scheduled as the next u
On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> Any idea how should i quote the arguments so that they would be properly
> treated by TProcess?
You can't. The following lines (line 107 of unix/process.inc)
Result:=StringReplace(Result,'"','',[rfReplaceAll]);
Result:=String
On Tue, 3 Oct 2006, Adrian Maier wrote:
> On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > Any idea how should i quote the arguments so that they would be properly
> > > treated by TProcess?
> >
> > You can't. The following lines (line 107 of unix/process.inc)
> > Result:=StringR
On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
On Tue, 3 Oct 2006, Adrian Maier wrote:
> On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > Any idea how should i quote the arguments so that they would be properly
> > > treated by TProcess?
> >
> > You can't. The follow
Hi,
I have the following class and function that retrieves a object from a
internal TFPHashList. If the object isn't in the list, it is read from
a database, and then also inserted into the hashlist, before it gets
returned.
Does TFPHashTable also manage the objects it contains (or references)
l
Sorry, I forgot to mention... TFPHashTable.Items[] doesn't take a
integer, but a string. Which I believe is the 'key', so I can't loop
through the list.
Graeme.
On 03/10/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
Hi,
I have the following class and function that retrieves a object from
On Tue, 3 Oct 2006, Graeme Geldenhuys wrote:
> Hi,
>
> I have the following class and function that retrieves a object from a
> internal TFPHashList. If the object isn't in the list, it is read from
> a database, and then also inserted into the hashlist, before it gets
> returned.
>
> Does TFP
Can you add the following to TProcess instead of using the CommandLine property:
example:
property ProcessName: String - the process to be executed
property Params : TStringList - list of command line params to be
passed to the process
Why should quote characters be stripped as it is in the curre
The regex-dna benchmark
(http://shootout.alioth.debian.org/debian/benchmark.php?test=regexdna&lang=all) is
the last missing benchmark.
Although fpc has a regexpr unit:
http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.pp
It has many todos, such as adding support for | in the
On Tue, 3 Oct 2006, Alexander Todorov wrote:
> Can you add the following to TProcess instead of using the CommandLine
> property:
> example:
> property ProcessName: String - the process to be executed
> property Params : TStringList - list of command line params to be
> passed to the process
Ex
On 03/10/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
Well, I just programmed an extension to TFPHashTable (in cooperation with
Dean Zobec) which allows you to select this behaviour: to free or not to free.
It's not yet in SVN, but if you want I can send it to you.
Michael.
It's not urg
On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
I will see about fixing it. Could you please post a bug report so it won't
be forgotten.
Mantis issue 7534 added .
Is it likely for the fix to go into fpc 2.0.4? Or just in the HEAD ?
Cheers,
Adrian Maier
___
On 10/3/06, Adrian Maier <[EMAIL PROTECTED]> wrote:
>
> Well, first of all you should do a 'IsRunning' (or running) before checking
> the exitcode.
I'm using the poWaitOnExit option, so my program doesn't waits
until the external process ends. All I need is to know if the
external process en
> On Tue, 3 Oct 2006, Adrian Maier wrote:
> >
> > It's a painful one. I was hoping to switch to TProcess instead of shell (
> > which isn't cross-platform ) ...
>
> The bug won't occur on windows :)
>
> I will see about fixing it. Could you please post a bug report so it won't
> be forgotten
> Can you add the following to TProcess instead of using the CommandLine
> property:
> example:
> property ProcessName: String - the process to be executed
> property Params : TStringList - list of command line params to be
> passed to the process
>
> Why should quote characters be stripped as it
On 10/3/06, Vincent Snijders <[EMAIL PROTECTED]> wrote:
The regex-dna benchmark
(http://shootout.alioth.debian.org/debian/benchmark.php?test=regexdna&lang=all)
is
the last missing benchmark.
Although fpc has a regexpr unit:
http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.p
Marco van de Voort wrote:
> Can you add the following to TProcess instead of using the CommandLine
property:
> example:
> property ProcessName: String - the process to be executed
> property Params : TStringList - list of command line params to be
> passed to the process
>
> Why should quote ch
On 10/3/06, Marco van de Voort <[EMAIL PROTECTED]> wrote:
> On Tue, 3 Oct 2006, Adrian Maier wrote:
> >
> > It's a painful one. I was hoping to switch to TProcess instead of shell (
> > which isn't cross-platform ) ...
>
> The bug won't occur on windows :)
>
> I will see about fixing it. Coul
> Although fpc has a regexpr unit:
> http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.pp
> It has many todos, such as adding support for | in the search expression. So
> this
> unit doesn't have enough functionality.
While '|' support is to be considered basic regex function
Adrian Maier wrote:
> So, initially the Environment is empty and the program inherits the
> variables.
> When I append the first variable, it will no longer inherit the variables.
>
> I find the behaviour counterintuitive: the first "append" causes the
> Environment to
> be initialised.
>
> I ha
On 29 Sep 2006, at 12:15, Krishna wrote:
Why not target LLVM instead?
I've also thought about that, but haven't looked yet at the technical
specifications of LLVM to see how easy/difficult it would be.
Jonas
___
fpc-pascal maillist - fpc-pasc
Hello!
I just wrote a little program in FPC 2.0.2 which uses GLOB() to search and
display a directory. I use 'oldlinux' in the uses statement.
It works fine on my old SuSE 8.0.
Then I copied the binary to a SuSE 9.0 machine and started it there. It works
(means that it doesn't crash), but shows
On 9/29/06, Adrian Maier <[EMAIL PROTECTED]> wrote:
By the way : why dotnet and not java ?
Acctually I was considering (not so near in the future), to research
about writing a java byte code target for Free Pascal.
Of course the faq says you guys aren´t much pro it, but there do is a
real
On 10/3/06, Felipe Monteiro de Carvalho
<[EMAIL PROTECTED]> wrote:
About .NET and LLVM, they don´t seam to add anything Free Pascal
already cannot do.
Donno about .NET but LLVM advertises itself as a target for compiler
development. It does a wide range of optimizations and if memory
serves ri
On Tue, 3 Oct 2006, Felipe Monteiro de Carvalho wrote:
>
> About .NET and LLVM, they don´t seam to add anything Free Pascal
> already cannot do.
>
> We should also think it may be inevitable to write a .NET port in the
> very long future (10 years?), if microsoft decides to obsolete windows
>
Hi all,
I see FPC can compile for PocketPC?
Can it compile on other devices? (i feel ms is not the only player in
the arena...)
--
Alexandre Leclerc
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinf
On 10/3/06, Alexandre Leclerc <[EMAIL PROTECTED]> wrote:
I see FPC can compile for PocketPC?
Can it compile on other devices? (i feel ms is not the only player in
the arena...)
Take a look here:
http://www.freepascal.org/wiki/index.php/Platform_list#Supported_targets_for_ARM
--
Felipe Monteir
> On Tue, 3 Oct 2006, Felipe Monteiro de Carvalho wrote:
> At my company, we still have a huge number of clients running Windows
> 95, who protest loudly when we even _suggest_ upgrading.
>
> Which is not to say that we should not look at a .NET port of FPC, but
> this is not very high on the pr
> I just wrote a little program in FPC 2.0.2 which uses GLOB() to search and
> display a directory. I use 'oldlinux' in the uses statement.
[...]
> finally installed the full (and same!) fpc version there and re-compiled the
> source, but the result is the same.
>
> Any idea about what is wrong
Marco van de Voort wrote:
> IMHO it would be better to start over legacy free for .NET and really target
> the .NET/JVM/LLVM platform 100%.
Refer them to Chrome ? ;-)
Micha
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepa
Thank you Felipe;
does someone know if Indy port to FPC would work on ARM? (On their
site it says there has been some succes with WinCE... but asside that
'some' succes on 'wince' is not very clear.)
2006/10/3, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>:
On 10/3/06, Alexandre Leclerc <[EMA
On Tue, 3 Oct 2006, Marco van de Voort wrote:
> > On Tue, 3 Oct 2006, Felipe Monteiro de Carvalho wrote:
>
> > At my company, we still have a huge number of clients running Windows
> > 95, who protest loudly when we even _suggest_ upgrading.
> >
> > Which is not to say that we should not look
> On Tue, 3 Oct 2006, Marco van de Voort wrote:
> > IMHO it would be better to start over legacy free for .NET and really target
> > the .NET/JVM/LLVM platform 100%.
> >
> > I think that single source combinations are already all gone by the time we
> > would enter production with a .NET port. A
> does someone know if Indy port to FPC would work on ARM? (On their
> site it says there has been some succes with WinCE... but asside that
> 'some' succes on 'wince' is not very clear.)
What OS? Indy has quite high requirements on sockets interface and the
thread implementation.
___
I sent this once already. Sorry if it duplicated, but I didn't see it
showing up on the list:
JMO:
The last thing we want the FPC team to consider is a port to .NET. Delphi
already does .net, and MSFT C# does it even better. Additionally, porting to
.net invites FPC to become mired in the same mu
Adrian Maier wrote:
It seems nice to have a way of specifying parameters like that (in which case
I assume that strings given will be passed as-they-are).
Another option is to use escaping for quote characters (and maybe some
others) when specifying the TProcess.CommandLine property.
__
40 matches
Mail list logo