[Lazarus] Limit to the number of forms in a project?

2013-03-26 Thread Dave Coventry
I needed a dialog box to allow users to select which database to access in my project. The project already has 6 forms. But when I added a form and click 'Run', the Project appears to compile but doesn't run in the debugger. If I run the compiled project from the command line, it runs but the 7th

Re: [Lazarus] Debugging fixed strings in UTF8 encoding

2013-03-26 Thread Paul Ishenin
27.03.2013 12:08, Ernest V Miller wrote: I consider having a special string var for debugging russian is completely stupid. Maybe I don't know some GDB tweak to force it to recognize the characters of my ancestry in fixed strings? At the moment (FPC 2.6.x) ansistring variables does not contain

[Lazarus] Debugging fixed strings in UTF8 encoding

2013-03-26 Thread Ernest V Miller
Hello! As we know, Lazarus is UTF8 friendly. When I want to see a value of a string var in cyrillic, I should convert it to UTF8, else I only get "?" in Watches window. For this code function TesterClass.quickTest : Boolean; var utf8, ansi : string; stf : string[50];

Re: [Lazarus] data matrix with thousands of columns

2013-03-26 Thread Leonardo M . Ramé
On 2013-03-26 21:22:26 +0100, Andrea Mauri wrote: > > >> > >If you think you'll be adding columns regularly, one solution that comes > >to my mind is this: > > > >1) Create a "data_columns" table: > > > >create table data_columns( > > idcolumn integer, > > column_name varchar(20), > > primar

Re: [Lazarus] data matrix with thousands of columns

2013-03-26 Thread Andrea Mauri
If you think you'll be adding columns regularly, one solution that comes to my mind is this: 1) Create a "data_columns" table: create table data_columns( idcolumn integer, column_name varchar(20), primary key(idcolumn)); 2) Create the "data_rows" table: create table data_rows(

Re: [Lazarus] How to send Email from Lazarus program under Linux x86-64

2013-03-26 Thread Donald Ziesig
Just a word of thanks to all who helped me with this. Somehow I kept getting really old code from all of the links and none of it would compile in 64-bit mode, let alone run. I finally found the synapse svn website which had a massive tarball with almost everything from the beginning to reall

Re: [Lazarus] data matrix with thousands of columns

2013-03-26 Thread Leonardo M . Ramé
On 2013-03-26 15:38:57 +0100, Andrea Mauri wrote: > Dear all, > I am looking for the best option in order to store big datasets with > thousands of columns. > The dataset can contains from tens to hundred thousands lines and > thousand of columns (some columns are string some numbers). > Which is t

Re: [Lazarus] How to use data from stringlist in another form.

2013-03-26 Thread Avishai
I'm not able to check right now but if memory serves me right... In Form1 you can call Form2.StringList[x] On Tue, Mar 26, 2013 at 4:14 PM, appjaws wrote: > I have 2 forms, form 1 calls form 2 on a buttonclick process. > Form 2 loads a string list, operations are carried out and the stringlist >

Re: [Lazarus] How to use data from stringlist in another form.

2013-03-26 Thread appjaws
On 26/03/13 14:26, Mattias Gaertner wrote: On Tue, 26 Mar 2013 14:14:00 + appjaws wrote: I have 2 forms, form 1 calls form 2 on a buttonclick process. Form 2 loads a string list, operations are carried out and the stringlist is saved. The application opens with form 1, data is produced an

Re: [Lazarus] data matrix with thousands of columns

2013-03-26 Thread Andrea Mauri
one more thing. my data is more similar to a huge spreadsheet than a relational DB, anyway I am looking for the best option already available in lazarus/fpc to store and query the dataset Il 26/03/2013 15:38, Andrea Mauri ha scritto: Dear all, I am looking for the best option in order to store

[Lazarus] data matrix with thousands of columns

2013-03-26 Thread Andrea Mauri
Dear all, I am looking for the best option in order to store big datasets with thousands of columns. The dataset can contains from tens to hundred thousands lines and thousand of columns (some columns are string some numbers). Which is the best option to store and retrieve information from a da

Re: [Lazarus] How to use data from stringlist in another form.

2013-03-26 Thread Mattias Gaertner
On Tue, 26 Mar 2013 14:14:00 + appjaws wrote: > I have 2 forms, form 1 calls form 2 on a buttonclick process. > Form 2 loads a string list, operations are carried out and the > stringlist is saved. > > The application opens with form 1, data is produced and stored in a Tedit > > What I wan

[Lazarus] How to use data from stringlist in another form.

2013-03-26 Thread appjaws
I have 2 forms, form 1 calls form 2 on a buttonclick process. Form 2 loads a string list, operations are carried out and the stringlist is saved. The application opens with form 1, data is produced and stored in a Tedit What I want to do is to compare the Tedit on form1 with data held in the

Re: [Lazarus] Compile Project with options?

2013-03-26 Thread appjaws
On 26/03/13 12:29, appjaws wrote: I am getting errors with duplicate code :- Compiling resource /Lazarus/TestProj1/lib/x86_64-linux/TestProj1.or TestProj1.lpr(21,1) Error: Error while compiling resources. Compile with -vd for more details. Check for duplicates. How do I compile with -vd??? Than

Re: [Lazarus] Tracking down an intermittent termination exception

2013-03-26 Thread Luca Olivetti
Al 26/03/13 11:46, En/na Sven Barth ha escrit: > Solution: Tell the thread to terminate (if you use the thread's > Terminate property you'll need to check this inside your thread's loop) > and then wait for (TThread.WaitFor) it to finish before you continue > with termination. Calling WaitFor on

Re: [Lazarus] Tracking down an intermittent termination exception

2013-03-26 Thread Sven Barth
Am 26.03.2013 12:16 schrieb "Mark Morgan Lloyd" < markmll.laza...@telemetry.co.uk>: > > Sven Barth wrote: > >>> DoneCriticalSection(SynchronizeCritSect); >>> >>> Assuming that this is a problem in my own code, what sort of thing should I be looking for? >> >> >> After looking through the followin

[Lazarus] Compile Project with options?

2013-03-26 Thread appjaws
I am getting errors with duplicate code :- Compiling resource /Lazarus/TestProj1/lib/x86_64-linux/TestProj1.or TestProj1.lpr(21,1) Error: Error while compiling resources. Compile with -vd for more details. Check for duplicates. How do I compile with -vd??? Thanks for any help Paul -- ---This m

Re: [Lazarus] Tracking down an intermittent termination exception

2013-03-26 Thread Mark Morgan Lloyd
Sven Barth wrote: DoneCriticalSection(SynchronizeCritSect); Assuming that this is a problem in my own code, what sort of thing should I be looking for? After looking through the following things: - code of CDoneCriticalSection (in rtl/unix/cthreads.pp) - man page of pthread_mutex_destroy

Re: [Lazarus] embed git version info

2013-03-26 Thread Graeme Geldenhuys
On 2013-03-26 08:12, Xiangrong Fang wrote: > > How can I embed git version info AUTOMATICALLY while I compile my program > in lazarus, just like {$I %DATE%} ? Use a pre-compile script (Project Options|Compiler Options|Compilation|Execute Before) in combination with a include file. Attached is wh

Re: [Lazarus] Tracking down an intermittent termination exception

2013-03-26 Thread Sven Barth
Am 26.03.2013 10:39, schrieb Mark Morgan Lloyd: I've got a program here with main and background thread, it doesn't do anything fancy like explicitly hooking the event loop. Intermittently it displays something like this during termination: An unhandled exception occurred at $08080639 : EInOut

Re: [Lazarus] Tracking down an intermittent termination exception

2013-03-26 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: Looking at classes.inc, I see that the affected line is DoneCriticalSection(SynchronizeCritSect); Assuming that this is a problem in my own code, what sort of thing should I be looking for? Double call of DoneCriticalSection, missing InitCriticalSection, heap corr

Re: [Lazarus] Tracking down an intermittent termination exception

2013-03-26 Thread Mattias Gaertner
On Tue, 26 Mar 2013 09:39:50 + Mark Morgan Lloyd wrote: > I've got a program here with main and background thread, it doesn't do > anything fancy like explicitly hooking the event loop. Intermittently it > displays something like this during termination: > > An unhandled exception occurred

[Lazarus] Tracking down an intermittent termination exception

2013-03-26 Thread Mark Morgan Lloyd
I've got a program here with main and background thread, it doesn't do anything fancy like explicitly hooking the event loop. Intermittently it displays something like this during termination: An unhandled exception occurred at $08080639 : EInOutError : $08080639 CDONECRITICALSECTION, line

[Lazarus] Open position for web page admin

2013-03-26 Thread Juha Manninen
Hi I posted this same message to forum: There has been discussion about improving the main page http://www.lazarus.freepascal.org over the years. It cannot be improved with patches like other parts of Lazarus and its documentation can, so nothing has happened. I see it as a black spot in our ope

[Lazarus] embed git version info

2013-03-26 Thread Xiangrong Fang
Hi, How can I embed git version info AUTOMATICALLY while I compile my program in lazarus, just like {$I %DATE%} ? Thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus