Re: [fpc-pascal] download link on viewvc pages is missing

2013-02-12 Thread LacaK
Hi, the "(download)" link (together with the "(as text)") link that used to be next to "(view)" and "(annotate)" in viewvc revisions logs are missing, can this be enabled, please? Yes it will be good to have it back ;-) +1 -Laco. ___ fpc-pascal

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Michael Müller
Am 12.02.2013 um 13:29 schrieb Giuliano Colla: > I've made some further experiments with my minimal test. > Test form is just a Form with a Close button (BitBtn Kind=bkClose). > The full code is the following: > > unit uinitfile; > > {$mode objfpc}{$H+} > > interface > > uses > Classes, SysU

[fpc-pascal] download link on viewvc pages is missing

2013-02-12 Thread Jesus Reyes
Hi, the "(download)" link (together with the "(as text)") link that used to be next to "(view)" and "(annotate)" in viewvc revisions logs are missing, can this be enabled, please? Jesus Reyes A. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

Re: [fpc-pascal] Re: Compiled program is a virus (seems to be internallinker problem)

2013-02-12 Thread Sven Barth
On 12.02.2013 20:45, Ralf A. Quint wrote: At 01:31 PM 2/12/2013, Sven Barth wrote: On 12.02.2013 19:10, waldo kitty wrote: On 2/12/2013 06:18, Lukasz Sokol wrote: On 11/02/2013 23:19, Gerhard Scholz wrote: I switched to AVAST free Antivirus now, the problem does not occur here. This is not a

Re: [fpc-pascal] Re: Compiled program is a virus (seems to be internallinker problem)

2013-02-12 Thread Ralf A. Quint
At 01:31 PM 2/12/2013, Sven Barth wrote: On 12.02.2013 19:10, waldo kitty wrote: On 2/12/2013 06:18, Lukasz Sokol wrote: On 11/02/2013 23:19, Gerhard Scholz wrote: I switched to AVAST free Antivirus now, the problem does not occur here. This is not a pascal question, but maybe can give me a h

Re: [fpc-pascal] Re: Compiled program is a virus (seems to be internallinker problem)

2013-02-12 Thread Sven Barth
On 12.02.2013 19:10, waldo kitty wrote: On 2/12/2013 06:18, Lukasz Sokol wrote: On 11/02/2013 23:19, Gerhard Scholz wrote: I switched to AVAST free Antivirus now, the problem does not occur here. This is not a pascal question, but maybe can give me a hint if AVAST is good or which software is

Re: [fpc-pascal] Re: Compiled program is a virus (seems to be internallinker problem)

2013-02-12 Thread waldo kitty
On 2/12/2013 06:18, Lukasz Sokol wrote: On 11/02/2013 23:19, Gerhard Scholz wrote: I switched to AVAST free Antivirus now, the problem does not occur here. This is not a pascal question, but maybe can give me a hint if AVAST is good or which software is more recommendable. (I do not really trus

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Sven Barth
On 12.02.2013 16:44, Leonardo M. Ramé wrote: From: Michael Van Canneyt To: FPC-Pascal users discussions Sent: Tuesday, February 12, 2013 12:36 PM Subject: Re: [fpc-pascal] Tree structure On Tue, 12 Feb 2013, Torsten Bonde Christiansen wrote: On 2013-02-12 1

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Leonardo M . Ramé
- Original Message - > From: Leonardo M. Ramé > To: FPC-Pascal users discussions > Cc: > Sent: Tuesday, February 12, 2013 12:45 PM > Subject: Re: [fpc-pascal] Tree structure > > - Original Message - > >> From: Michael Van Canneyt >> To: Leonardo M. Ramé ; FPC-Pascal users

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Graeme Geldenhuys
On 2013-02-12 15:44, Leonardo M. Ramé wrote: > > Isn't that a balanced binary tree? I'm looking for a simple tree structure > (http://en.wikipedia.org/wiki/Tree_%28data_structure%29) > It should be rather simple to create. A simple Composite design pattern and about 30-45 minutes with some acco

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Leonardo M . Ramé
- Original Message - > From: Michael Van Canneyt > To: Leonardo M. Ramé ; FPC-Pascal users discussions > > Cc: > Sent: Tuesday, February 12, 2013 12:28 PM > Subject: Re: [fpc-pascal] Tree structure > > > > On Tue, 12 Feb 2013, Leonardo M. Ramé wrote: > >> Hi, I would like to know

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Leonardo M . Ramé
> > From: Michael Van Canneyt >To: FPC-Pascal users discussions >Sent: Tuesday, February 12, 2013 12:36 PM >Subject: Re: [fpc-pascal] Tree structure > > > >On Tue, 12 Feb 2013, Torsten Bonde Christiansen wrote: > >> On 2013-02-12 16:13, Leonardo M. Ramé wrote: >>

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Torsten Bonde Christiansen
On 2013-02-12 16:36, Michael Van Canneyt wrote: On Tue, 12 Feb 2013, Torsten Bonde Christiansen wrote: On 2013-02-12 16:13, Leonardo M. Ramé wrote: Hi, I would like to know if there's a standard tree structure where each node is a TObject. With "standard" I mean, in a standard package

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Michael Van Canneyt
On Tue, 12 Feb 2013, Torsten Bonde Christiansen wrote: On 2013-02-12 16:13, Leonardo M. Ramé wrote: Hi, I would like to know if there's a standard tree structure where each node is a TObject. With "standard" I mean, in a standard package, like fcl-base.   Leonardo M. Ramé http://

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Torsten Bonde Christiansen
On 2013-02-12 16:13, Leonardo M. Ramé wrote: Hi, I would like to know if there's a standard tree structure where each node is a TObject. With "standard" I mean, in a standard package, like fcl-base. Leonardo M. Ramé http://leonardorame.blogspot.com ___

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Michael Van Canneyt
On Tue, 12 Feb 2013, Leonardo M. Ramé wrote: Hi, I would like to know if there's a standard tree structure where each node is a TObject. With "standard" I mean, in a standard package, like fcl-base. there is one in the generics. But not as a regular class. Michael.

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Giuliano Colla
On 02/12/2013 02:46 PM, Mark Morgan Lloyd wrote: Giuliano Colla wrote: On 02/12/2013 10:02 AM, Mark Morgan Lloyd wrote: I admit that I was slightly trolling there, since Giuliano was complaining about exceptions that he wasn't seeing (because, it turns out, he wasn't catching them). You catc

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Giuliano Colla
On 02/12/2013 01:58 PM, Mattias Gaertner wrote: The LCL has a default exception handler, so that the application notifies the user, that the application has a bug instead of simply crashing and vanishing silently. The programmr is reponsible to handle exceptions, show the user error messages an

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Mark Morgan Lloyd
Giuliano Colla wrote: On 02/12/2013 10:02 AM, Mark Morgan Lloyd wrote: I admit that I was slightly trolling there, since Giuliano was complaining about exceptions that he wasn't seeing (because, it turns out, he wasn't catching them). You catch an exception if you can handle it. If a user for

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Michael Van Canneyt
On Tue, 12 Feb 2013, Mattias Gaertner wrote: Giuliano Colla hat am 12. Februar 2013 um 13:29 geschrieben: [...] Why FormClose doesn't close the form in presence of an error (handled by a try..finally) when writing the ini file? Launching from command line, you have the same behavior, and an

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Mattias Gaertner
Giuliano Colla hat am 12. Februar 2013 um 13:29 geschrieben: >[...] > Why FormClose doesn't close the form in presence of an error (handled by > a try..finally) when writing the ini file? > Launching from command line, you have the same behavior, and an > additional information when you select Ca

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Michael Van Canneyt
On Tue, 12 Feb 2013, Sven Barth wrote: called whenever the user tries to close the form and if an assigned event handler raises an exception it seems that the calling code assumes that the form should not be closed. In my example I used OnDestroy which seems to be handled more gracefully.

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Sven Barth
On 12.02.2013 13:29, Giuliano Colla wrote: On 02/11/2013 09:14 PM, Sven Barth wrote: It would be nice if you could minimize the problemematic code further step by step so that we can see what caused the "missing dialog". Maybe it's a bug somewhere else... I've made some further experiments wit

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Giuliano Colla
On 02/12/2013 10:02 AM, Mark Morgan Lloyd wrote: I admit that I was slightly trolling there, since Giuliano was complaining about exceptions that he wasn't seeing (because, it turns out, he wasn't catching them). You catch an exception if you can handle it. If a user for some reasons has writ

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread José Mejuto
El 12/02/2013 13:29, Giuliano Colla escribió: My conclusion is that one can't properly handle INI files with just a try..finally construct, as all examples show, because a possible error will propagate outside the construct, with unpredictable effects (in this case the FormClose procedure doesn'

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Giuliano Colla
On 02/11/2013 09:14 PM, Sven Barth wrote: It would be nice if you could minimize the problemematic code further step by step so that we can see what caused the "missing dialog". Maybe it's a bug somewhere else... I've made some further experiments with my minimal test. Test form is just a For

[fpc-pascal] Re: Compiled program is a virus (seems to be internallinker problem)

2013-02-12 Thread Lukasz Sokol
On 11/02/2013 23:19, Gerhard Scholz wrote: > I switched to AVAST free Antivirus now, the problem does not occur here. > > This is not a pascal question, but maybe can give me a hint if AVAST is good > or which software is more recommendable. > (I do not really trust the tests I find in the interne

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Mark Morgan Lloyd
Sven Barth wrote: On 11.02.2013 15:30, Mark Morgan Lloyd wrote: If anything, it is the fault of AppConfigDir for indicating a directory without raising an exception pointing out that it doesn't yet exist :-) And AppConfigDir/File is documented as not guaranteeing that the path to the directo