Am 28.09.2010 19:17, schrieb Bo Berglund:
From: Mark Morgan Lloyd [mailto:markmll.laza...@telemetry.co.uk]
Sent: Tuesday, September 28, 2010 11:05 AM
Bo Berglund wrote:
So I could create an IniFile class
Better to use the existing one :-)
If course! I just assumed that since IniFiles on
Am 29.09.2010 07:30, schrieb Bo Berglund:
Fine, so now I have to find code to do a listing of files...
I guess that FindFirst and FindNext from Windows API does
not work...
How is it done in FPC/Lazarus to list files in a directory?
Especially on Linux.
Of course FindFirst/FindNext/FindClose
On Wed, 29 Sep 2010 06:59:02 +0100
Frank Church vfcli...@gmail.com wrote:
If you are using different Lazarus versions but with same components and
packages, how would you organize separate build directories for the
different versions, but same source location.
eg. say I am using fpc 2.2.4/
On 27 September 2010 08:29, Antônio antoniog12...@gmail.com wrote:
Try this:
I have tried your example with this code
object FPWebModule1: TFPWebModule1
OldCreateOrder = False
Actions =
item
Name = 'func1call'
Default = True
OnRequest = func1callRequest
end
CreateSession = False
Height = 300
The intention is to save the developer of the manual work of writing
hundreds of lines of boilerplate code. What is up to you will not be
solved by any tool.
Anyway, you have always the option to not use the tool.
Antônio
2010/9/29 Frank Church vfcli...@gmail.com:
On 27 September 2010
On Wed, Sep 29, 2010 at 9:21 AM, Roberto Padovani padovan...@gmail.com wrote:
I use threaded and event-driven serial port communication all day with
FPC and I did not have to write anything.
Have a look at the great CPortLaz library
http://sourceforge.net/projects/cportlaz/
It also has a
On 29 September 2010 09:22, Sven Barth pascaldra...@googlemail.com wrote:
Example for Google:
findfirst site:freepascal.org
This lists the documentation page as one of the first entries. :)
(You might also try to press F1 on a function/method identifier in Lazarus
to see whether it finds a
On Wed, 29 Sep 2010, Bo Berglund wrote:
Graeme Geldenhuys wrote:
On 28 September 2010 21:50, steveg ste...@nevets.com.au wrote:
Quickest way I have found is to enumerate the device files in /dev
extracting all 'ttyxx' (comports) and 'ttyU' (usb ports).
This gives a list
of 'probables'.
On Wed, 29 Sep 2010 00:27:18 +0200
Bo Berglund bo.bergl...@gmail.com wrote:
I made a mistake when trying out Lazarus for the first time
Lazarus had created a form automatically on start (Form1).
I created a unit containing my wrapper for the com port,
which I intend to use. It will
On Wed, 29 Sep 2010 00:03:39 +0200
Thierry Bothorel thierry.botho...@gmail.com wrote:
Mattias Gaertner a écrit :
On Tue, 28 Sep 2010 22:44:06 +0200
Thierry Bothorel thierry.botho...@gmail.com wrote:
[...]
Ok, so this brings me to the starting point :-) I did a test. If I run just
On 09/28/2010 11:27 AM, Mark Morgan Lloyd wr
The bottom line is that when a system gets a powerfail signal it will
unmount all filesystems and shut down. But the action of unmounting
rewrites (something equivalent to) the superblock to reset the dirty
flag, and that requires that power
On 09/28/2010 10:18 PM, Bo Berglund wrote:
Where is the timeout? ..
The Linux Way to deal with blocking sockets is not using Threads and
thread communication e.g. by Messages (as one would do in Windows and
thus in Delphi and thus in Lazarus), but using the appropriate
multiplex driver
Sven Barth wrote:
INIFiles is implemented completely in Object Pascal. No APIs (apart from
the typical Open/Close file ones) are used like Delphi might do (this is
also mentioned in the disclaimer in the INIFiles unit).
Which I think is a tacit admission that even though the right way is XML
On 09/28/2010 10:25 PM, Bo Berglund wrote:
OK, I have to dive into the thread handling on Linux then I assume
I have next to no exposure to Linux so far.
IMHO if you are at it, doing a portable (or appropriately ifdef'ed) and
(partly) AsyncPro work-alike unit , keeping the thread handling
Bo Berglund wrote:
It looks like the serial.pp unit implements a blocking system even though
it is not clearly written as such. But the synaser unit is definitely
blocking.
But the serial does allow you access to the handle, so it's trivial to
use select() (actually fpSelect()) to implement
Mattias Gaertner a écrit :
EnvFPCSrcDir=/usr/share/fpcsrc/$(FPCVer)/ FPCSrcDir=
This can be improved. But I use a fpc source path with this macro too,
so this can not be the bug.
This is what Lazarus read at first run from
/etc/lazarus/environmentoptions.xml
FPCSourceDirectory
On 09/29/2010 01:26 PM, Mark Morgan Lloyd wrote:
But the serial does allow you access to the handle, so it's trivial to
use select() (actually fpSelect()) to implement the timeout.
Is spSelect() portable / Cross-Platform ?
If not I would not recommend using it other than encapsulated in a
Michael Schnell wrote:
On 09/29/2010 01:26 PM, Mark Morgan Lloyd wrote:
But the serial does allow you access to the handle, so it's trivial to
use select() (actually fpSelect()) to implement the timeout.
Is spSelect() portable / Cross-Platform ?
It certainly is in the context of socket
Since I am used to having event driven serial communication my question
is really twofold:
1) Is serial communication with events not possible in FPC on Linux?
We have here:
http://wiki.lazarus.freepascal.org/5dpo
a component that does that (I think!)
Is there anything that makes it
From: Vincent Snijders [mailto:vincent.snijd...@gmail.com]
Sent: Wednesday, September 29, 2010 8:59 PM
2010/9/29 Bo Berglund bo.bergl...@gmail.com:
I tried to find the equivalent of Project Search path in Lazarus
but found only FPDoc files path in the project properties so
How are
Am Wednesday 29 September 2010 21:57:50 schrieb Bo Berglund:
I went there and added the directories as follows (on one line):
/home/bosse/Engineering/SSR8GUI/Source/;
/home/bosse/Engineering/SSR8GUI/AgiAdmin/;
/home/bosse/Engineering/SSR8GUI/Common/
Then I did a Quick Compile and got the
Hello Lazarus-List,
Wednesday, September 29, 2010, 9:57:50 PM, you wrote:
BB Then I did a Quick Compile and got the not found error for the first
BB unit mentioned in my test unit:
BB Fatal: Can't find unit Class_AXD used by unit SSManager
BB Of course I have verified that the Class_AXD.pas file
You should use the Delphi converter included in Lazarus:
It fixes automatically all unit names to match the actual case-sensitive file
name, plus does many other things.
See:
http://wiki.lazarus.freepascal.org/Delphi_Converter_in_Lazarus
What version of Lazarus are you using? If you don't have
From: Paul Breneman [mailto:list2...@brenemanlabs.com]
Sent: Sunday, September 26, 2010 3:13 PM
Bo Berglund wrote:
I've also replied to you FPC mailing list messages.
This won't answer all of your questions but I hope it will help:
http://www.turbocontrol.com/embeddedfreepascal.htm
I added a blog article about converter improvements. Does
someone know why a
link does not work. It shows only blank, no link at all. I
have Firefox with
default settings. There is even a tool button on the blog
page to create this:
I can see the page just fine in Firefox.
For me the
You should use the Delphi converter included in Lazarus:
It fixes automatically all unit names to match the actual
case-sensitive file
name, plus does many other things.
See:
http://wiki.lazarus.freepascal.org/Delphi_Converter_in_Lazarus
What version of Lazarus are you using? If you
Check character cases and check that the file is not under a
subdirectory.
That was the cause! The files are named Class_xxx.pas but in
the uses clause they were listed as class_xxx!
I set the case in the uses list the same as the file name and
then it worked!
But only partly because now the
On Thursday 30 September 2010 00:07:03 Bo Berglund wrote:
I installed Ubuntu 10.04-2 on Sunday and then I used the
Synaptic Package Manager to get Lazarus and the associated
FPC compiler.
Lazarus version: 0.9.28.2-8ubuntu1
FPC version: 2.4.0
You already have FPC 2.4.0 so it is easy. Just
On Thursday 30 September 2010 00:18:40 Bo Berglund wrote:
What is going on?
Add
{$MODE Delphi}
to the unit.
Or, actually, again, use the Delphi converter in latest Lazarus.
It does automatically all the things you are asking around here.
Juha
--
Žilvinas Ledas a écrit :
On 2010-09-28 09:24, Bo Berglund wrote:
So can I get some advice on:
- What is the common way to store config data on Linux?
Ini files are probably not used since they are Windowsisms,
but is there some other easily used way where one can simply
store and
Bo Berglund wrote:
...
3) How can one enumerate the existing com ports on Linux?
In Windows I know
how to do this and thus I can get a list of valid ports for
the user to
select from. Is there some way also in Linux using FPC?
Quickest way I have found is to enumerate the device files in
31 matches
Mail list logo