Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-25 Thread Bo Berglund
On Mon, 24 Jan 2011 23:29:41 +0100, Bo Berglund bo.bergl...@gmail.com wrote: From testing with MS-Access and MySQL I know that ODBC works fine with other databases, at least for SELECT Statements. 1. Can you test a regular SELECT statement on the same SQL database ? If that doesn't work

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-25 Thread Bo Berglund
On Tue, 25 Jan 2011 09:13:42 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: Both work, but return only one record (there should be 4). Or at least the code loop below only traverses once: while not query.EOF do begin S := S + query.FieldByName

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-25 Thread Bo Berglund
with lazarus. :-) -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] CGILazIDE cannot be found...

2011-01-31 Thread Bo Berglund
Lazarus in any other way than adding the SdpoSerial components. What causes this message to pop up in the first place? Bo Berglund -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] CGILazIDE cannot be found...

2011-01-31 Thread Bo Berglund
On Mon, 31 Jan 2011 14:16:58 +0100, Bo Berglund bo.bergl...@gmail.com wrote: I have checked out lazarus_0_9_30_fixes branch today into a new folder and successfully rebuilt lazarus using the release fpc 2.4.2 (on windows). Now inside Lazarus I need to register the SdpoSeriial package so I open

Re: [Lazarus] CGILazIDE cannot be found...

2011-01-31 Thread Bo Berglund
known where to find it. Now I have actually *installed* it in the IDE, so should lazarus not know where to find it then? Do I still need to open the package file in the IDE Very confused Bo Berglund -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] CGILazIDE cannot be found...

2011-01-31 Thread Bo Berglund
On Mon, 31 Jan 2011 16:30:08 +0100 (CET), Mattias Gaertner nc-gaert...@netcologne.de wrote: Bo Berglund bo.bergl...@gmail.com hat am 31. Januar 2011 um 16:06 geschrieben: [..] Hmmpf... After checking out lazarus there is no IDE to run, right? So I cannot use any IDE dialog to specify a better

Re: [Lazarus] CGILazIDE cannot be found...

2011-01-31 Thread Bo Berglund
with Package name as its designator so I used that to select the SDpoSerialLaz package. Then I also removed two Sdpo-related paths from the Project options and made a quick compile. Working! Thanks, this looks much cleaner. Bo Berglund -- ___ Lazarus

[Lazarus] Error while compiling resources...

2011-01-31 Thread Bo Berglund
probably created by lazarus so what is the problem? Bo Berglund -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 17:47:15 +0300, patspiper patspi...@gmail.com wrote: On 22/06/15 17:34, Bo Berglund wrote: But your best bet is to install the 32 bit version and try it yourself. That is what I have already... I am out of ideas for now. You can ask for help on the fpc mailing list. I

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
: ARRAY [1..1028] OF CHAR; Can the indexing be a problem? The packet is defined with a starting index of 1 rather than 0... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Bo Berglund
On Tue, 23 Jun 2015 12:07:05 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: On Mon, 22 Jun 2015 16:43:31 -0300, luiz americo pereira camara luiz...@oi.com.br wrote: In the breakpoint do a step into (f7) and ser the exact line that crashes Luiz

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Bo Berglund
On Tue, 23 Jun 2015 18:30:46 +0200, Luca Olivetti l...@wetron.es wrote: El 23/06/15 a les 17:51, Bo Berglund ha escrit: The problem is most likely in the conversion because even the smallest test application throws an exception on the very first call into the driver, the initialization

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-18 Thread Bo Berglund
that they have moved to a new portal and apparently NOT migrated the registered users... So now I have to wait a while for my login to be created before I can ask for FreePascal support. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 01:00:58 +0200, Bo Berglund bo.bergl...@gmail.com wrote: When I stepped through the code I reached the first call to the driver via the obj file I get an exception when calling RNBOsproFormatPacket in this function, which is in the SPROMEPS.pas file supplied by SafeNet

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-20 Thread Bo Berglund
On Sat, 20 Jun 2015 12:51:35 +0300, patspiper patspi...@gmail.com wrote: On 20/06/15 11:38, Bo Berglund wrote: On Fri, 19 Jun 2015 23:01:36 +0200, Marc Weustink m...@dommelstein.nl wrote: Thanks very much! This seems to be the way to go! By creating a coff file from the obj file while

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-20 Thread Bo Berglund
the definitions etc, but the WinAPI calls should just execute, or not? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-20 Thread Bo Berglund
in SPROMEPS.pas or in the main project file). Seems like I am almost there except this list of errors -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-20 Thread Bo Berglund
On Sat, 20 Jun 2015 11:27:27 +0300, patspiper patspi...@gmail.com wrote: What's the output of objconv -dfhs SPROMEPS.coff? In particular, check the mangled name of RNBOsproFormatPacket and list it here. See my reply to patspiper where I listed the main command and the arguments file -- Bo

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-21 Thread Bo Berglund
compiled without errors! :) Next task is for me to add the calls to the methods of the object to check if it will actually be able to read the dongle correctly. Something for Monday. Thanks a bunch for this immensly valuable help! -- Bo Berglund Developer in Sweden

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-21 Thread Bo Berglund
On Mon, 22 Jun 2015 00:02:40 +0300, patspiper patspi...@gmail.com wrote: On 21/06/15 23:35, Bo Berglund wrote: I added the -nr lines to my parameters file and re-ran the conversion. Then moved the resulting coff file to the project dir and compiled: Message pane shows: Compile Project

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-20 Thread Bo Berglund
On Sat, 20 Jun 2015 13:33:09 +0200, Bo Berglund bo.bergl...@gmail.com wrote: On Sat, 20 Jun 2015 13:49:00 +0300, patspiper patspi...@gmail.com wrote: Seems like I am almost there except this list of errors These are used in SPROMEPS.OBJ. I figured as much, problem is why that works

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 09:16:20 +0300, patspiper patspi...@gmail.com wrote: On 22/06/15 02:00, Bo Berglund wrote: I just made a first test by adding the object to my main form as a private variable. Which object? Better show the code. Here is the current state of the main form where the object

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-25 Thread Bo Berglund
On Thu, 25 Jun 2015 07:28:51 -0300, luiz americo pereira camara luiz...@oi.com.br wrote: 2015-06-24 19:02 GMT-03:00 Bo Berglund bo.bergl...@gmail.com: In order to port it we had to convert an OBJ file from the dongle maker to a format FPC accepts (coff) using a 3rd party tool, which also has

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-24 Thread Bo Berglund
down the cause of the problems! -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-18 Thread Bo Berglund
On Mon, 15 Jun 2015 08:21:49 +0200, Bo Berglund bo.bergl...@gmail.com wrote: 1) We have created a number of non-visual components that are dropped on the forms to supply various kinds of functionality. Some of these are handlers for language dependent texts, software protection dongles

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-18 Thread Bo Berglund
On Thu, 18 Jun 2015 15:08:19 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: Concerning Safenet I tried to access their support portal (which I have used frequently in the past) only to discover that they have moved to a new portal and apparently

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Bo Berglund
On Fri, 19 Jun 2015 12:35:28 +0200, Michael Schnell mschn...@lumino.de wrote: On 06/19/2015 12:28 PM, Bo Berglund wrote: Safenet might be able to provide a GNU C version of that file. Except I got a reply from them that they cannot support older software in FPC So I guess I have

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Bo Berglund
On Fri, 19 Jun 2015 09:38:01 +0200, Luca Olivetti l...@wetron.es wrote: El 19/06/15 a les 09:25, Bo Berglund ha escrit: constructor TSentinel.Create; begin FTimer := TTimer.Create(Application); FTimer.Enabled := false; FTimer.Interval := 0; FTimer.OnTimer := OnCheckTimer(Self

[Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Bo Berglund
procedure variable type of procedure(TObject) of object;Register Why is this difference Delphi/FPC appearing and what can I do? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Bo Berglund
of that file. Except I got a reply from them that they cannot support older software in FPC So I guess I have to go the Delphi DLL route instead... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Bo Berglund
On Fri, 19 Jun 2015 16:01:09 +0200, José Mejuto joshy...@gmail.com wrote: El 19/06/2015 a las 9:50, Bo Berglund escribió: Now I am getting to the real hurdle as follows: DongleTest.lpr(20,1) Error: Illegal COFF Magic while reading SPROMEPS.OBJ Hello, Try this tool: http://www.agner.org

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-18 Thread Bo Berglund
On Thu, 18 Jun 2015 20:02:02 +0100, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: On 2015-06-18 17:48, Bo Berglund wrote: I would not have a problem using it as a general purpose object and changing my programs accordingly, that would be pretty easy, provided I can make it work

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Bo Berglund
); This is the first call into the drive via the converted obj file. Must be something in error in the conversion. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
) And I cannot provide the full source because it contains proprietary key information for encrypting the data in the dongle. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
like my Lazarus produces 32 bit executables by default... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-22 Thread Bo Berglund
information for encrypting the data in the dongle. You can strip everything except for the initialization call. If this call succeeds then we are on the right track. But your best bet is to install the 32 bit version and try it yourself. That is what I have already... -- Bo Berglund Developer

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Bo Berglund
? There are 13 in total.. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-16 Thread Bo Berglund
the support at SafeNet for their views. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-16 Thread Bo Berglund
Lazarus do Android platform apps? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-16 Thread Bo Berglund
On Tue, 16 Jun 2015 15:47:35 +0200, Michael Schnell mschn...@lumino.de wrote: On 06/15/2015 08:21 AM, Bo Berglund wrote: If Lazarus does not work with this obj file then I would be dead in the water... Lazarus (including packages) and free pascal are cross-platform tools supporting

[Lazarus] Is Lazarus FPC compatible to RAD XE5?

2015-06-14 Thread Bo Berglund
). Is it possible or is it going to be an uphill battle for a long time? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Is Lazarus FPC compatible to RAD XE5?

2015-06-14 Thread Bo Berglund
On Sun, 14 Jun 2015 15:45:33 +0300, Juha Manninen juha.mannine...@gmail.com wrote: On Sun, Jun 14, 2015 at 12:23 PM, Bo Berglund bo.bergl...@gmail.com wrote: So I had to start a new VCL project when I did the Unicode conversion (UTF8 is what I used) and then add all the sources to that project

[Lazarus] I have some custom components, can I convert Delphi - Lazarus?

2015-06-15 Thread Bo Berglund
is a handler I wrote a long time ago (about 2000) for the Safenet Sentinel Superpro software protection dongle. It is mostly my own code but it uses pas and an obj file supplied from Safenet. If Lazarus does not work with this obj file then I would be dead in the water... How can I find out? -- Bo

Re: [Lazarus] Git Plug-in for Lazarus

2015-07-06 Thread Bo Berglund
to hope for... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-23 Thread Bo Berglund
o I am a bit surprised that just using this unit would make the FPC command program not work... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] The GDB command: "-gdb-set confirm off" did not return any result

2015-10-22 Thread Bo Berglund
dy10 seems to work fine so far.... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] The GDB command: "-gdb-set confirm off" did not return any result

2015-10-22 Thread Bo Berglund
the progress of the execution there. In this case there was nothing, not even a single message in the messages window. It was as if the program did not run at all. But it might be intended to be like this on Linux, this is my first try really. -- B

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-22 Thread Bo Berglund
luding LCL. No more compile errors caused by these classes. And my post at a late time in this thread was just to clarify this situation, not to ask any more questions so there was no need for more commenting. -- Bo Berglund Developer in Sweden -- ___ L

Re: [Lazarus] The GDB command: "-gdb-set confirm off" did not return any result

2015-10-22 Thread Bo Berglund
put Thanks! I did not realize that, but now I found it. I will use that in the future! -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] The GDB command: "-gdb-set confirm off" did not return any result

2015-10-22 Thread Bo Berglund
se the GDB problem? Line endings or what? > >What version of gdb i.e. use the gdb --version command. > GNU gdb (Raspbian 7.7.1+dfsg-5) 7.7.1 -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepasca

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-22 Thread Bo Berglund
ystrokes are sent in VNC and interpreted in the Lazarus code editor. I can enter these chars into the Lazarus property editors of GUI components though as well as in the Raspbian Text editor, all via VNC. There is a separate thread about this here

Re: [Lazarus] Debugger error on ARM7 (Lazarus 1.5 svn 50059)

2015-10-26 Thread Bo Berglund
On Mon, 26 Oct 2015 10:00:15 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >"Debugger Error >Ooops, the debugger entered the error state. >Save your work now! >Hit Stop and hope the best, we're pulling the plug." > It seems like I found the problem

Re: [Lazarus] Clipboard problem with Lazarus using VNC

2015-10-26 Thread Bo Berglund
e Raspbian Jessie GUI. But it was not as easy as I expected, there were all kinds of caveats concerning those I found so I gave up and tried VNC instead Never was able to install and use Xming for example. Do you have a suggestion as to which X-server I could run on Windows7 instead of using VNC? -- Bo Berglun

Re: [Lazarus] Clipboard problem with Lazarus using VNC

2015-10-26 Thread Bo Berglund
On Mon, 26 Oct 2015 09:34:00 +0100, Michael Schnell <mschn...@lumino.de> wrote: >On 10/24/2015 11:25 AM, Bo Berglund wrote: >> except for the clipboard that is supposed to be >> shared between the two systems. >This rather obviously is is not an FPC or Lazarus problem b

[Lazarus] Debugger error on ARM7 (Lazarus 1.5 svn 50059)

2015-10-26 Thread Bo Berglund
above? Where should I start looking? I tried googling this error but it is too general to yield any good result pages... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.fr

[Lazarus] Clipboard problem with Lazarus using VNC

2015-10-24 Thread Bo Berglund
with the Lazarus handling of the clipboard? Or is there a configuration item in Lazarus that may modify this? Using Lazarus 1.5 SVN 50059 with FPC 3.1.1 -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus

[Lazarus] Where in Lazarus 1.5 do I set the project search path?

2015-10-21 Thread Bo Berglund
unctional parts each in its own subdirectory so the path to that must be set somewhere. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] The GDB command: "-gdb-set confirm off" did not return any result

2015-10-22 Thread Bo Berglund
On Thu, 22 Oct 2015 12:07:33 +0200, Bo Berglund <bo.bergl...@gmail.com> wrote: >On Thu, 22 Oct 2015 09:29:26 +, Mark Morgan Lloyd ><markmll.laza...@telemetry.co.uk> wrote: > >>> using the green arrow run button I get a pop-up message box saying: >>> The

[Lazarus] Failed to build lazarus release 1.4.4 from svn

2015-11-08 Thread Bo Berglund
should issue to build Lazarus IDE from the release sources? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Failed to build lazarus release 1.4.4 from svn

2015-11-08 Thread Bo Berglund
On Sun, 08 Nov 2015 16:15:59 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >4) Then inside the 1.4.4 dir I issued: >time make bigide > >The response when it quit was: > >/usr/bin/ld: warning: ./link.res contains output sections; did you >forget -T? >/usr/local

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-11-03 Thread Bo Berglund
On Tue, 3 Nov 2015 02:40:11 +0100, José Mejuto <joshy...@gmail.com> wrote: >El 02/11/2015 a las 20:32, Bo Berglund escribió: > >>> IMHO using lnet or Synapse would be a lot "clearer" than using the >>> overly complex Indy Library. >> I had already l

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-11-03 Thread Bo Berglund
On Mon, 02 Nov 2015 20:32:40 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >On Mon, 02 Nov 2015 10:24:54 +0100, Michael Schnell ><mschn...@lumino.de> wrote: > >>On 10/31/2015 07:28 PM, Mark Morgan Lloyd wrote: >>> Alternatively look at the lnet code that c

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-11-02 Thread Bo Berglund
re. So if I need some more input I will create a more appropriate new thread (hmmm, a thread about threads)... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-11-03 Thread Bo Berglund
gt;TThread.Synchronize()". Moved discussion to new thread named: "Using event driven components in console application" -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Using event driven components in console application

2015-11-03 Thread Bo Berglund
not work in a console application because there is no message loop built in. But I have now tested the lNet TCP component created in code inside a console application and it seems to work, at least inside the Lazarus IDE under the debugger. But this is of course in a test appliocation built as a

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-30 Thread Bo Berglund
lamed for not getting how it should be done. :( And the last week I have been diverted to other pressing things too. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-30 Thread Bo Berglund
On Fri, 23 Oct 2015 17:13:55 +0200, Sven Barth <pascaldra...@googlemail.com> wrote: >Am 23.10.2015 14:29 schrieb "Bo Berglund" <bo.bergl...@gmail.com>: >> So I am a bit surprised that just using this unit would make the FPC >> command program not work... >

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-31 Thread Bo Berglund
On Sat, 31 Oct 2015 10:22:08 +, Mark Morgan Lloyd <markmll.laza...@telemetry.co.uk> wrote: >Bo Berglund wrote: >What does the main thread do? If you can contrive to write that as a >loop, then as you've already been told you can call CheckSynchronize() >which hands con

Re: [Lazarus] Using event driven components in console application

2015-11-03 Thread Bo Berglund
ning FPC 3.1.1 (svn trunk a couple of week back) and Lazarus 1.5 svn 50059M (don't know what M means) -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Error SIGILL appearing out of the blue, what does it mean?

2015-11-05 Thread Bo Berglund
On Wed, 04 Nov 2015 16:04:53 +, Mark Morgan Lloyd <markmll.laza...@telemetry.co.uk> wrote: >Bo Berglund wrote: >> Yesterday I was testing lnet and the test project was working just >> fine. Today I came back and hit run again only to find a pop-up error >> box sa

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
On Sat, 07 Nov 2015 14:37:18 +, Michael Van Ham <michael.van...@gmail.com> wrote: >On Sat, Nov 7, 2015, 06:35 Bo Berglund <bo.bergl...@gmail.com> wrote: > >Access violation. > >Running on a Raspberry Pi2 with Raspbian Jessie and FPC3.1.1 and >Lazarus 1.5.

[Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
Jessie and FPC3.1.1 and Lazarus 1.5. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
On Sat, 07 Nov 2015 12:35:28 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >- Now I get a pop-up error box saying: > >Access violation. > >Press OK to ignore and risk data corruption. >Press Cancel to kill the program. > >At this point in the background the ID

Re: [Lazarus] How can I close a Lazarus project and open another?

2015-11-07 Thread Bo Berglund
On Sat, 07 Nov 2015 12:04:36 +, Mark Morgan Lloyd <markmll.laza...@telemetry.co.uk> wrote: >Bo Berglund wrote: >> I have a Lazarus project inside the IDE, which uses LNet. >> Now I want to close that and open one of the LNet examples in order to >> see

[Lazarus] How to find out the public IP in code?

2015-11-06 Thread Bo Berglund
is this done in code? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Using event driven components in console application

2015-11-03 Thread Bo Berglund
as to run it, which I don't think I have. >The M means you have local modifications. I guess it's because I installed lnet and had to rebuild Lazarus?? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Error SIGILL appearing out of the blue, what does it mean?

2015-11-04 Thread Bo Berglund
hould I look for a solution to this? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-31 Thread Bo Berglund
ot use Synchronize() for the events. Should I add this back now that CheckSynchronize seems to have cured a few "shortcomings"? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] What does make install do?

2015-10-18 Thread Bo Berglund
er system would help. I looked up the xdg here: http://standards.freedesktop.org/menu-spec/menu-spec-latest.html And that was not really understandable for me. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

Re: [Lazarus] What does make install do?

2015-10-18 Thread Bo Berglund
i 14923 Oct 14 22:38 Makefile.fpc drwxr-xr-x 6 pi pi 4096 Oct 15 21:04 packager -rw-r--r-- 1 pi pi 2727 Oct 14 22:37 README.txt -rwxr-xr-x 1 pi pi 27797480 Oct 15 21:21 startlazarus In any case there are no other users on most RPi systems... -- Bo Berglun

Re: [Lazarus] Are lazarus / fpc sensitive to line endings?

2015-10-16 Thread Bo Berglund
in Raspbian Jessie it did not connect so unless I get a positive answer on my question for VPN on the Raspberry forum I am stuck and have to figure out something else -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.f

[Lazarus] Are lazarus / fpc sensitive to line endings?

2015-10-16 Thread Bo Berglund
to the Pi share and then work with CVS from the PC side. Until it dawned on me that when CVS on Windows operates it assumes line endings as CRLF whereas Linux usually only uses LF. So is fpc and/or lazarus sensitive to line endings like shell scripts are? -- Bo Berglund Developer in Sweden

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Bo Berglund
s (the project dir). When I enter the period after FComm I expected Lazarus to autocomplete with the valid identifiers, in this case Free, but nothing happens... My test project where I checked connectivity to the GPIO did not behave like this, but it was a GUI project. What did I do wrong?

[Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Bo Berglund
program using TCustomApplication..) I will probably need to use threads inside the program so I guess that 2 or 3 would be the appropriate selection. Is there something else that may affect the decision? And what is the best selection between Program and Console Application? -- Bo Berglund Developer

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Bo Berglund
ecessities. First time I am doing anything seriously complex in Lazarus, only tested minute things over the years before (looked once a year perhaps). -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.f

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-14 Thread Bo Berglund
nstalled as su) and have built the Lazarus IDE from trunk sources using the commands shown, can I then just do a svn update and then issue make as pi? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.laz

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-14 Thread Bo Berglund
e as sudo su.... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-14 Thread Bo Berglund
On Mon, 12 Oct 2015 23:13:53 +0300, Juha Manninen <juha.mannine...@gmail.com> wrote: $ time make clean bigide I have never seen such a command before, does it print the time the command following time takes to complete??? man time does not mention such a functionality... -- Bo Be

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-14 Thread Bo Berglund
On Wed, 14 Oct 2015 19:55:13 +0300, Juha Manninen <juha.mannine...@gmail.com> wrote: >On Wed, Oct 14, 2015 at 7:36 PM, Bo Berglund <bo.bergl...@gmail.com> wrote: >> Even if the original make was done as su? > >No, then the generated files are owned by root and cannot

[Lazarus] Building and starting Lazarus on Raspberry Pi2 with Raspbian Jessie

2015-10-15 Thread Bo Berglund
showed. It even loaded my last project. Which compiled and ran fine! :) What is the deal here? Is this an error that should be resolved by me by starting over from scratch again (6th time this week) with a clean SDcard? :( Or is it unimportant and can be solved in a different way? Which? -- B

Re: [Lazarus] Building and starting Lazarus on Raspberry Pi2 with Raspbian Jessie

2015-10-15 Thread Bo Berglund
nce about 2000) and never before svn... Would I have to scrap the existing checkout and start over? Or is there a "backwards" command that would get the sources of 1.4.4 and then still be possible to compile from the Lazaus Tools menu? Notice that the very same tutorial got me FPC 3.1.1 bu

Re: [Lazarus] Building and starting Lazarus on Raspberry Pi2 with Raspbian Jessie

2015-10-16 Thread Bo Berglund
an can there exist symlinks visible only to the Pi user? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Building and starting Lazarus on Raspberry Pi2 with Raspbian Jessie

2015-10-16 Thread Bo Berglund
arus %f" without any path specifier at all. I see that by installing in any place whatever and then creating a symlink like this all other functions need not know where the program resides since it will be on path. For example the menu handler is a case in point. One can just change the sym

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-15 Thread Bo Berglund
user14m15.830s sys 2m26.930s My Rasberry Pi2 was set up with 1000GB swap and to boot into the command line interface (to not waste memory) for the build operation above. I will now switch out of this thread and create a new one for installation of Lazarus on a Raspberry Pi2 s

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-20 Thread Bo Berglund
ient socket as well? I need to replace a serial comm component with a TCPIP socket. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Lazarus implementation of TListView etc?

2015-10-20 Thread Bo Berglund
gram, using the same object units. The easier solution seems to be to keep the code in place but then I need the definition units to come on-line... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus

Re: [Lazarus] TInetSocket usage - any documentation available?

2015-10-20 Thread Bo Berglund
On Wed, 23 Sep 2015 10:21:58 +0200 (CEST), Michael Van Canneyt <mich...@freepascal.org> wrote: >On Wed, 23 Sep 2015, Bo Berglund wrote: > >> I have looked for a native FPC TCP/IP socket to use as a replacement >> for a serial port component and I discovered the sso

Re: [Lazarus] Lazarus implementation of TListView etc?

2015-10-21 Thread Bo Berglund
On Wed, 21 Oct 2015 10:08:40 +0200, Michael Schnell <mschn...@lumino.de> wrote: >On 10/20/2015 07:06 PM, Bo Berglund wrote: >> My program is a pretty simple command line program >Description of TListview: " Use TListView to manage and display a list >of items in a

<    1   2   3   4   5   6   >