Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 6:30 PM, Florian Klaempfl
 wrote:
>
> If you think it's so easy, be our guest to coordinate an fpc release :)
>
> 2.2.4 was heavily tested but then we recognized a security hole after
> everything was packed. Just as a hint: till all different versions of
> fpc for one rc are packed, it takes easily 2-4 weeks and lot of poking
> by the release coordinator :)

Wow, I didn't know it takes that long. I can only comment on my
experience with our software which gets released on two platforms.
What I described is how we do things - your mileage obviously varies.

>> * Release 0.9.26.
>> * Oh crap, we didn't test enough and 0.9.26 is broken.
>> * merge, fix and retest using the branch release 0.9.26 was based on.
>> * Release 0.9.26.1
>
> This is not really possible, the defines etc. in fpc are limited
> currently to x.y.z

Oh, I didn't know that. Then again, I wasn't talking about FPC, this
whole thread was about the Lazarus repository.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Modified .po files after each build

2009-04-14 Thread Graeme Geldenhuys
2009/4/14 Mattias Gärtner :
>
> What package is installed and what .po file was changed?

The changed .po files:

 .../languages/frmtemplatevariables.de.po
 .../languages/frmtemplatevariables.es.po
 .../languages/frmtemplatevariables.fr.po
 .../languages/frmtemplatevariables.id.po
 .../languages/frmtemplatevariables.it.po
 .../languages/frmtemplatevariables.lt.po
 .../languages/frmtemplatevariables.pb.po
 .../languages/frmtemplatevariables.pl.po
 .../languages/frmtemplatevariables.po
 .../languages/frmtemplatevariables.ru.po


I attached the exported list of installed packages. See attached xml file.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/


  




























  

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Interesting TextMate and RedCar feature

2009-04-14 Thread Alexander Klenin
2009/4/15 Mattias Gärtner :
> in place renaming can be done for simple things like an identifier in a script
> or with a *lot* of effort in bigger scopes. IMO it can be done for live
> templates but not for real 'renames'.

I think auto-renaming makes sence for only local variables, generally
for the cases where all instances fit into the screen.
Otherwise it may come as a nasty surprise to a user.

Anyway, the linked demo seems to be about a very particular case of
auto-renaming,
Notice that identifiers are different, though with the common structure.
An actual analogue for FPC/Lazarus would be an option to rename
'TMyClass' to 'TMyNewClass', while simulatneously updating variable names lile
'FMyClass', 'AMyClass', 'myClass'.

-- 
Alexander S. Klenin

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Interesting TextMate and RedCar feature

2009-04-14 Thread Mattias Gärtner
Zitat von Marco van de Voort :

> On Mon, Apr 13, 2009 at 03:02:28PM +0300, ik wrote:
> > RedCar and TextMate have interesting feature:
> >
> > Lets say I change the name of a function, class, variable etc...
> > So every place that reference to that symbol that I have changed, changed
> > while I type the new name according to my changes.
> >
> > It's better then choosing only to rename something using a refactoring
> > option.
>
> Why? I do not understand the difference, except if you want to make such
> animations?

Differences:
- instant typing is more direct, less typing, more eye candy
- dialog provides options to reduce scope, for example when doubling an
identifier
- dialog provides check for duplicates, for example when renaming will create a
conflict
- instant typing is only possible in small scope. rename something in all
dependent sources can not *easily* be done in real time.

conclusion:
in place renaming can be done for simple things like an identifier in a script
or with a *lot* of effort in bigger scopes. IMO it can be done for live
templates but not for real 'renames'.

Mattias


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFilestream raises exception class 'External SIGSEGV'

2009-04-14 Thread JoshyFun
Hello Dave,

Tuesday, April 14, 2009, 5:11:00 PM, you wrote:

>> In the other hand, use of a TFileStream to read byte by byte is
>> overkill.

DC> True, but I'm going through the file looking for a particular
DC> character $1B and assigning data to different dynamic arrays based on
DC> the byte following the  byte.

Anyway, use some kind of cache, each read operation involves a
complete read from disk (disk cache mostly) and a transition between
user mode to kernel mode and viceversa. Using a simple 4 Kb cache will
raise the performance 100 or 1000 times.

-- 
Best regards,
 JoshyFun

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Docking again (ATN: Mattias)

2009-04-14 Thread Hans-Peter Diettrich
Paul Ishenin schrieb:

>> If nobody can answer the above questions, Paul will update the LCL as 
>> appropriate.
>>   
> Where I said that?

Nowhere ;-)

> I am checking very seriously every docking patch in 
> order to preserve current implementation.

I meant: when nobody has an opinion any more, I'll try to convice you of
some enhancement, and you decide how to proceed (as appropriate).

The currently outstanding patches are very conservative and can be
applied with the least impact on existing code.

DoDi


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Interesting TextMate and RedCar feature

2009-04-14 Thread ik
Lets say uo have a method inside a big class. You renamed it from
RetriveData to GetData, now every place that uses RetriveData that belongs
to that class is changed to GetData, and it does so while keyup, so you do
not need to start looking for all of the changes or to discover that on line
100,004 it was not changed, i don't know why.

It also changes strings that uses the name, so if you have 100 debugging
line of writeln (I sometimes have), it also changes the string. but if you
change the string on your own for something else, it will not be applied in
feature changes.

I hope it is more clear.

Ido


On Wed, Apr 15, 2009 at 12:27 AM, Marco van de Voort wrote:

> On Mon, Apr 13, 2009 at 03:02:28PM +0300, ik wrote:
> > RedCar and TextMate have interesting feature:
> >
> > Lets say I change the name of a function, class, variable etc...
> > So every place that reference to that symbol that I have changed, changed
> > while I type the new name according to my changes.
> >
> > It's better then choosing only to rename something using a refactoring
> > option.
>
> Why? I do not understand the difference, except if you want to make such
> animations?
>
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Packages / Visual Form Inheritance / Components Connection

2009-04-14 Thread Marco van de Voort
On Tue, Apr 14, 2009 at 02:19:16PM -0300, Osvaldo Filho wrote:
> But how can i include forms/datamodules from a lpk package in CreateForm
> statement of a project?
> 
> And, how can a use Visual Form Inheritance in a project where the
> ansestors (my models) is on .lpk package?

The .lpk concept is static, not dynamic like Delphi. 

This means the designtime code is hard linked into the lazarus binary, and
the runtime packages are hard linked into the final binaries. No DLLs, no
.BPLs.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Interesting TextMate and RedCar feature

2009-04-14 Thread Marco van de Voort
On Mon, Apr 13, 2009 at 03:02:28PM +0300, ik wrote:
> RedCar and TextMate have interesting feature:
> 
> Lets say I change the name of a function, class, variable etc...
> So every place that reference to that symbol that I have changed, changed
> while I type the new name according to my changes.
> 
> It's better then choosing only to rename something using a refactoring
> option.

Why? I do not understand the difference, except if you want to make such
animations?

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFilestream raises exception class External SIGSEGV

2009-04-14 Thread Dave Coventry
Thanks for all the suggestions.

It was indeed nothing to do with the code I'd posted but had to do
with a subroutine which added elements to a dynamic array.

I rewrote the subroutine and it now works fine.

2009/4/14 waldo kitty :
> Dave Coventry wrote:
>> Hi, I'm having a problem with the following code:
>>
>>   Fstr:=TFileStream.Create('data',fmOpenRead);
>>   i:=0;
>>   while i>   begin
>>     b:=Fstr.ReadByte;
>>     inc(i);
>>    . Stuff ..
>>   end;
>>   Fstr.Free;  <-- Exception raised here
>>
>> Do TFileStream objects not have to be freed?
>
> did you close Fstr after the while loop? the above doesn't show it...
>
> --
> NOTE: NEW EMAIL ADDRESS!!
>
>        _\/
>       (@@)                      Waldo Kitty, Waldo's Place USA
> __ooO_( )_Ooo_ telnet://bbs.wpusa.dynip.com
> _|_|_|_|_|_|_ http://www.wpusa.dynip.com
> |_|_|_|_|_| ftp://ftp.wpusa.dynip.com
> _|_Eat_SPAM_to_email_me!_YUM!__|_ wkitty42 -at- windstream.net
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] OCX / ActiveX

2009-04-14 Thread Marco van de Voort
On Mon, Apr 13, 2009 at 10:12:49AM +0200, Robert wrote:
> is there any possibility to use an ActiveX component from Lazarus 
> on Windows - at least low level. Any HOW-TO / example?
> Its about a hardware driver which is only accessible through an 
> ActiveX DLL.

2.3.1 is able to start and instrument word or IE using dispatch interfaces.

See examples in winunits-base/examples.

I don't know the exact status of 2.2.4 in this regard. A lot of the windows
headers parts are merged, but I don't know how much of the
languag and objpas/variants units parts are merged.

For 2.2.4 I'd try to get the IDL description of the OCX, and then translate
it to FPC taking winunits-base units (like shlobj) as an template.

There are no FPC tutorials yet, but this is fairly close to how Delphi does
it, so general Delphi tutorials should be fine.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Modified .po files after each build

2009-04-14 Thread Vincent Snijders
Graeme Geldenhuys schreef:
> Hi,
> 
> Recently it started to happen that every time I build Lazarus IDE
> after a clean checkout, after the build I have many modified .po
> files.
> 

Already reported:
http://bugs.freepascal.org/view.php?id=13128

Possible cause:
Localize.sh and the IDE generate different po-files.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFilestream raises exception class External SIGSEGV

2009-04-14 Thread waldo kitty
Dave Coventry wrote:
> Hi, I'm having a problem with the following code:
> 
>   Fstr:=TFileStream.Create('data',fmOpenRead);
>   i:=0;
>   while i   begin
> b:=Fstr.ReadByte;
> inc(i);
>. Stuff ..
>   end;
>   Fstr.Free;  <-- Exception raised here
> 
> Do TFileStream objects not have to be freed?

did you close Fstr after the while loop? the above doesn't show it...

-- 
NOTE: NEW EMAIL ADDRESS!!

_\/
   (@@)  Waldo Kitty, Waldo's Place USA
__ooO_( )_Ooo_ telnet://bbs.wpusa.dynip.com
_|_|_|_|_|_|_ http://www.wpusa.dynip.com
|_|_|_|_|_| ftp://ftp.wpusa.dynip.com
_|_Eat_SPAM_to_email_me!_YUM!__|_ wkitty42 -at- windstream.net
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Doug Chamberlin
It seems to me that in this discussion of tags vs. branches collectively 
we are not in disagreement about what tags are, what they mean, and how 
they were intended to be used.

What disagreement there is seems to be in how to manage a release. 
Specifically, the process of tagging a release and whether that process 
should be atomic and immutable or whether it can be adjusted, as necessary.

If the tool allows tags to be changed, then some see that as a useful 
option for adjusting a release that was, at first, incorrectly tagged. 
Others see such an action as a violation of the proper process for 
managing releases.

So, please let's talk about the discipline of managing releases.

If a branch has been designated as ready for release it should be tagged 
and announced. If that process was faulty - for whatever reason - what 
should happen? It seems to me that the answer to that question should be 
decided *independently* of the capability of the tools being used and 
also separately from the amount of effort involved. In other words, 
doing the "right thing" is always the correct choice and we should work 
toward making that easy to do.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Packages / Visual Form Inheritance / Components Connection

2009-04-14 Thread Osvaldo Filho
But how can i include forms/datamodules from a lpk package in CreateForm
statement of a project?

And, how can a use Visual Form Inheritance in a project where the
ansestors (my models) is on .lpk package?

Thanks.

Em Ter, 2009-04-14 às 18:27 +0200, Mattias Gärtner escreveu:
> Zitat von Osvaldo Filho :
> 
> > Em Ter, 2009-04-14 às 10:25 -0300, "Leonardo M. Ramé" escreveu:
> > > If you are referring to .bpl packages, the answer is No, because
> > > FPC/Lazarus doesn't use packages.
> >
> > No.
> > I'm talk about "Lazarus Packages", ".lpk";
> >
> > > But if you create your datamodule inside a .dll or .so library, it's
> > > perfectly possible.
> >
> > It is not the case.
> >
> > One project (new application project)
> > One package, .lpk, with form models (for visual form inheritance) and
> > one conection datamodule with a database component.
> >
> > is it possible access the database component with others components as
> > dataset?
> > is it possible use of VFI ?
> 
> At the moment components on other forms/datamodules can only be used in the
> designer, if the form/datamodule is listed in the CreateForm statement of the
> lpr file.
> Note: A CreateForm statement can also create hidden forms/datamodules.
> 
> It does not matter if any of those units is in an lpk or not.
> 
> Eventually the IDE will search components on all available forms/datamodules.
> 
> Mattias
> 
> 
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Vincent Snijders
Alexander Klenin schreef:
> 
> As a general issue, IMO the "Discussion" section of git-tag manpage
> summarizes the case for correct tag usage very nicely ;-)
> 
> http://www.kernel.org/pub/software/scm/git/docs/git-tag.html
> 

I agree, and IMO until the release is announced, a tagged version of the 
release in svn is not yet published (even though you can read it), so I 
am free to retag it. Until the release has been announced, I send the "I 
messed up" mail to the other release builders.

I wonder if I could make a tag unreadable for annomynous use in svn. It 
would be worth the trouble...

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Alexander Klenin
On Wed, Apr 15, 2009 at 03:30, Florian Klaempfl  wrote:
> Graeme Geldenhuys schrieb:
>> On Tue, Apr 14, 2009 at 3:31 PM, Florian Klaempfl
>>  wrote:
>>> And what if someone realizes that one patch is missing?
>>
>> Well, is that not what "release canditate" or stable branches are for?
>> Users at least expect updates and backports of patches in a branch.
>> Then test, test and test! Once everything is working, create a release
>> tag based on that branch.
>
> If you think it's so easy, be our guest to coordinate an fpc release :)

I think this particular case is nothing to worry about. It is clear that
tag moving is an exception made due to unfortunate coincidence.

As a general issue, IMO the "Discussion" section of git-tag manpage
summarizes the case for correct tag usage very nicely ;-)

http://www.kernel.org/pub/software/scm/git/docs/git-tag.html

-- 
Alexander S. Klenin
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Multilog exception tracing

2009-04-14 Thread Bogusław Brandys
Bogusław Brandys pisze:
> Hi,
> 
> I found a bug in multilog code used by SendException. Exception was no 
> correctly send with stack trace (no source line informations)
> The problem in my case may be due to encoding,I used example attached to 
> multilog package (encoding UTF8) while multilog using is at CP1250 in my 
> case.
> 
> Anyway,changing AStream.Write into AStream.WriteBuffer resolved problem
> 
> 
> Look at code below:
> 
> procedure TLogger.SendBuffer(AMsgType: Integer; const AText: String;
>var Buffer; Count: LongWord);
> var
>AStream: TStream;
> begin
>if Count > 0 then
>begin
>  AStream:=TMemoryStream.Create;
>  AStream.WriteBuffer(Buffer,Count);
> //AStream.Write(Buffer,Count);
>end
>else
>  AStream:=nil;
>//SendStream free AStream
>SendStream(AMsgType,AText,AStream);
> end;
> 
> 
> Best regards
> Boguslaw
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
> 

I see that problem is deeper. It has a source in problem of avoiding 
infinite recursion while generating stack trace.
The nasty result is that you cannot generate more then one stack trace 
per program execution ! I mean stack trace with full source/line 
information :-(

Problem lies inside lineinfo unit.

Any clues ?

Best regards
Boguslaw
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On Tue, Apr 14, 2009 at 3:31 PM, Florian Klaempfl
>  wrote:
>> And what if someone realizes that one patch is missing?
> 
> Well, is that not what "release canditate" or stable branches are for?
> Users at least expect updates and backports of patches in a branch.
> Then test, test and test! Once everything is working, create a release
> tag based on that branch.

If you think it's so easy, be our guest to coordinate an fpc release :)

2.2.4 was heavily tested but then we recognized a security hole after
everything was packed. Just as a hint: till all different versions of
fpc for one rc are packed, it takes easily 2-4 weeks and lot of poking
by the release coordinator :)

> 
>> Skip a release
>> number? We will never to this again, we did this in FPC 1.0.x times and
>> it caused a lot of confusion. Better a tag is moved ...
> 
> Isn't that what point releases are for??
> 
> * Release 0.9.26.
> * Oh crap, we didn't test enough and 0.9.26 is broken.
> * merge, fix and retest using the branch release 0.9.26 was based on.
> * Release 0.9.26.1

This is not really possible, the defines etc. in fpc are limited
currently to x.y.z

> 
> in the mean time new development continues on unstable trunk (0.9.27)...
> 
> If a release is broken one day after it has been released, then
> clearly not enough testing was done on that stable branch. In that
> case, release candidate branches should have a longer lifespan.

So above.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Packages / Visual Form Inheritance / Components Connection

2009-04-14 Thread Mattias Gärtner
Zitat von Osvaldo Filho :

> Em Ter, 2009-04-14 às 10:25 -0300, "Leonardo M. Ramé" escreveu:
> > If you are referring to .bpl packages, the answer is No, because
> > FPC/Lazarus doesn't use packages.
>
> No.
> I'm talk about "Lazarus Packages", ".lpk";
>
> > But if you create your datamodule inside a .dll or .so library, it's
> > perfectly possible.
>
> It is not the case.
>
> One project (new application project)
> One package, .lpk, with form models (for visual form inheritance) and
> one conection datamodule with a database component.
>
> is it possible access the database component with others components as
> dataset?
> is it possible use of VFI ?

At the moment components on other forms/datamodules can only be used in the
designer, if the form/datamodule is listed in the CreateForm statement of the
lpr file.
Note: A CreateForm statement can also create hidden forms/datamodules.

It does not matter if any of those units is in an lpk or not.

Eventually the IDE will search components on all available forms/datamodules.

Mattias


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Modified .po files after each build

2009-04-14 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys :

> 2009/4/14 Mattias Gärtner :
> >
> > These are separated things.
> > Can you both provide more details to reproduce?
>
> For the *.po files issue:
>
> * Do a clean 'svn co' of the repository or 'git clone'.
> * I always use my previous version of Lazarus executable to build so
> copy it into new directory.
> * Run Lazarus, setup Environment options in not set.
> * Tools -> Configure build lazarus -> Advanced
>- radio buttons to build, except for examples
>- check GTK2
>- check "with packages"
>- target directory is "/opt/lazarus"
>- check "Restart after build"
>- Click BUILD
> * once complete, do a "svn status -q" or "git diff" and I have a whole
> list of modified *.po files as I listed before.

What package is installed and what .po file was changed?

Mattias


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Multilog exception tracing

2009-04-14 Thread Bogusław Brandys
Hi,

I found a bug in multilog code used by SendException. Exception was no 
correctly send with stack trace (no source line informations)
The problem in my case may be due to encoding,I used example attached to 
multilog package (encoding UTF8) while multilog using is at CP1250 in my 
case.

Anyway,changing AStream.Write into AStream.WriteBuffer resolved problem


Look at code below:

procedure TLogger.SendBuffer(AMsgType: Integer; const AText: String;
   var Buffer; Count: LongWord);
var
   AStream: TStream;
begin
   if Count > 0 then
   begin
 AStream:=TMemoryStream.Create;
 AStream.WriteBuffer(Buffer,Count);
//AStream.Write(Buffer,Count);
   end
   else
 AStream:=nil;
   //SendStream free AStream
   SendStream(AMsgType,AText,AStream);
end;


Best regards
Boguslaw
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Packages / Visual Form Inheritance / Components Connection

2009-04-14 Thread Osvaldo Filho
Em Ter, 2009-04-14 às 10:25 -0300, "Leonardo M. Ramé" escreveu:
> If you are referring to .bpl packages, the answer is No, because 
> FPC/Lazarus doesn't use packages.

No.
I'm talk about "Lazarus Packages", ".lpk";

> But if you create your datamodule inside a .dll or .so library, it's 
> perfectly possible.

It is not the case. 

One project (new application project)
One package, .lpk, with form models (for visual form inheritance) and
one conection datamodule with a database component.

is it possible access the database component with others components as
dataset?
is it possible use of VFI ?

Thanks for your reply.
Thanks all. 

> Leonardo M. Ramé
> Griensu S.A. - Medical IT Córdoba
> Tel.: 0351 - 4247979
> 
> 
> 
> 
> Osvaldo Filho escribió:
> > Hi, is it possible i have packages and use your units for visual form 
> > inheritance ?
> > Is it possible i connect a dataset from a form of my project with an 
> > database in a datamodule in a package?
> >  
> > Thanks
> > 
> >
> > ___
> > Lazarus mailing list
> > Lazarus@lazarus.freepascal.org
> > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
> >   
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Michael Van Canneyt


On Tue, 14 Apr 2009, Graeme Geldenhuys wrote:

> On Tue, Apr 14, 2009 at 5:24 PM, Michael Van Canneyt
>  wrote:
> >
> > You miss the point, namely that a 'tag' is just a convention between
> > people. Nowhere it says that a tag should be set in concrete to last
> 
> Well to me and most other developers a tag is "a snapshot in time".

To me as well...

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Modified .po files after each build

2009-04-14 Thread Graeme Geldenhuys
2009/4/14 Mattias Gärtner :
>
> These are separated things.
> Can you both provide more details to reproduce?

For the *.po files issue:

* Do a clean 'svn co' of the repository or 'git clone'.
* I always use my previous version of Lazarus executable to build so
copy it into new directory.
* Run Lazarus, setup Environment options in not set.
* Tools -> Configure build lazarus -> Advanced
   - radio buttons to build, except for examples
   - check GTK2
   - check "with packages"
   - target directory is "/opt/lazarus"
   - check "Restart after build"
   - Click BUILD
* once complete, do a "svn status -q" or "git diff" and I have a whole
list of modified *.po files as I listed before.



Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 5:24 PM, Michael Van Canneyt
 wrote:
>
> You miss the point, namely that a 'tag' is just a convention between
> people. Nowhere it says that a tag should be set in concrete to last

Well to me and most other developers a tag is "a snapshot in time".
And if you wanted something to move in time and merge, that is what
branches are for. Why else would they have tags and branches? If they
were meant to be used the same they would just as well just have
created a feature called branches - and that's it (no need for tags).

'tags' have a different meaning to 'branches'. Everybody understands
it like that and the documentation explains it like that. But Lazarus
doesn't differentiate between it. Well you guys did in the past, but
since last few releases tags are now handled like branches. So why do
you you guys still bother with tags, just use branches then! At least
then users will know to periodically do a 'svn up' on a stable branch.

That's how I see it, but now that I know you guys treat branches and
tags exactly the same, now I know I need to periodically do a 'svn up'
no matter where I am in the repository (and even if it doesn't make
sense to me).  :-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFilestream raises exception class 'External SIGSEGV'

2009-04-14 Thread Dave Coventry
2009/4/14 Sergei Gorelkin :
> TFileStream's have to be freed. Your problem is most probably caused by
> memory
> corruption somewhere in the skipped part of code. Once the heap is
> corrupt, any operation that involves allocating or freeing memory may
> end up with a random fault (but most often, with a SIGSEGV).

Okay, thanks, I'll have a look at that section of the code then.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFilestream raises exception class 'External SIGSEGV'

2009-04-14 Thread Dave Coventry
Hi JoshyFun,

Thanks for taking the time.

2009/4/14 JoshyFun :
> Quite sure you are trashing the stack in the "stuff" part,
> maybe an array access ? Pointers ? Do you have range checking enabled

Could be, but I'm just adding items to a dynamic array.

> In the other hand, use of a TFileStream to read byte by byte is
> overkill.

True, but I'm going through the file looking for a particular
character $1B and assigning data to different dynamic arrays based on
the byte following the  byte.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFilestream raises exception class 'External SIGSEGV'

2009-04-14 Thread Sergei Gorelkin
Dave Coventry wrote:

> ...
> Do TFileStream objects not have to be freed?
> 
TFileStream's have to be freed. Your problem is most probably caused by 
memory
corruption somewhere in the skipped part of code. Once the heap is 
corrupt, any operation that involves allocating or freeing memory may 
end up with a random fault (but most often, with a SIGSEGV).

Regards,
Sergei
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFilestream raises exception class 'External SIGSEGV'

2009-04-14 Thread JoshyFun
Hello General,

Tuesday, April 14, 2009, 3:16:13 PM, you wrote:

DC>   Fstr:=TFileStream.Create('data',fmOpenRead);
DC>   i:=0;
DC>   while i   begin
DC> b:=Fstr.ReadByte;
DC> inc(i);
DC>. Stuff ..
DC>   end;
DC>   Fstr.Free;  <-- Exception raised here

DC> Do TFileStream objects not have to be freed?

Quite sure you are trashing the stack in the "stuff" part,
maybe an array access ? Pointers ? Do you have range checking enabled
?

In the other hand, use of a TFileStream to read byte by byte is
overkill.

-- 
Best regards,
 JoshyFun

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Modified .po files after each build

2009-04-14 Thread Mattias Gärtner
Zitat von Alexander Klenin :

> On Wed, Apr 15, 2009 at 00:18, Graeme Geldenhuys
>  wrote:
> > Hi,
> >
> > Recently it started to happen that every time I build Lazarus IDE
> > after a clean checkout, after the build I have many modified .po
> > files.
>
> Yes, this bothers me too.
> Additionally, many makefiles aloso get modified.

These are separated things.
Can you both provide more details to reproduce?

Mattias


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Flávio Etrusco
On Tue, Apr 14, 2009 at 11:07 AM, Graeme Geldenhuys
 wrote:
> On Tue, Apr 14, 2009 at 4:29 PM, Michael Van Canneyt
>  wrote:
>>
>> Even in CVS - the mother of all revision systems - a tag could be moved,
>> so there also it could be that you had to do a cvs up on a tag.
>
> Software evolves (hopefully) and we should not repeat prior mistakes.
> ;-)  See my previous post.
>

Also, AFAIK the option in CVS was not there from the beginning and was
introduced for repository maintenance, and required a "force" option.
(And you aren't allowed to commit to tag so you wouldn't do it by
accident... Does svn at least have a lock folder/branch command
already?)

And as SVN revision ids are global/repository-unique, is there a
reason to tag before compiling/testing like with CVS?

Best regards,
Flávio

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Michael Van Canneyt


On Tue, 14 Apr 2009, Graeme Geldenhuys wrote:

> On Tue, Apr 14, 2009 at 4:29 PM, Michael Van Canneyt
>  wrote:
> >
> > Even in CVS - the mother of all revision systems - a tag could be moved,
> > so there also it could be that you had to do a cvs up on a tag.
> 
> Software evolves (hopefully) and we should not repeat prior mistakes.
> ;-)  See my previous post.

You miss the point, namely that a 'tag' is just a convention between
people. Nowhere it says that a tag should be set in concrete to last
unaltered for eternity. Every versioning software available provides 
a means to set a 'tag', and leaves it up to the users how to interpret 
'tag'.

I for one would never use software that makes a tag irrevocable:
Errare humanum est...

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Docking again (ATN: Mattias)

2009-04-14 Thread Paul Ishenin
Mattias Gärtner wrote:
> Ok with me.
>
> Mattias
>   
"Convince Mattias to look at docking" task failed.

Best regards,
Paul Ishenin.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 4:29 PM, Michael Van Canneyt
 wrote:
>
> Even in CVS - the mother of all revision systems - a tag could be moved,
> so there also it could be that you had to do a cvs up on a tag.

Software evolves (hopefully) and we should not repeat prior mistakes.
;-)  See my previous post.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Modified .po files after each build

2009-04-14 Thread Alexander Klenin
On Wed, Apr 15, 2009 at 00:18, Graeme Geldenhuys
 wrote:
> Hi,
>
> Recently it started to happen that every time I build Lazarus IDE
> after a clean checkout, after the build I have many modified .po
> files.

Yes, this bothers me too.
Additionally, many makefiles aloso get modified.

-- 
Alexander S. Klenin
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 3:31 PM, Florian Klaempfl
 wrote:
>
> And what if someone realizes that one patch is missing?

Well, is that not what "release canditate" or stable branches are for?
Users at least expect updates and backports of patches in a branch.
Then test, test and test! Once everything is working, create a release
tag based on that branch.

> Skip a release
> number? We will never to this again, we did this in FPC 1.0.x times and
> it caused a lot of confusion. Better a tag is moved ...

Isn't that what point releases are for??

* Release 0.9.26.
* Oh crap, we didn't test enough and 0.9.26 is broken.
* merge, fix and retest using the branch release 0.9.26 was based on.
* Release 0.9.26.1

in the mean time new development continues on unstable trunk (0.9.27)...

If a release is broken one day after it has been released, then
clearly not enough testing was done on that stable branch. In that
case, release candidate branches should have a longer lifespan.

Just because a tag can have updates, doesn't mean it must. It goes
against what most people know or expect and is even documented as such
in the SubVersion docs. It simply adds more confusion. Once a release
is out, it should be final. Point releases should follow from that to
fix minor or overlooked issues.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [?? Probable Spam] Re: Packages / Visual Form Inheritance / ComponentsConnection

2009-04-14 Thread Bogusław Brandys
Leonardo M. Ramé pisze:
> If you are referring to .bpl packages, the answer is No, because 
> FPC/Lazarus doesn't use packages.
> 
> But if you create your datamodule inside a .dll or .so library, it's 
> perfectly possible.
> 
> Leonardo M. Ramé
> Griensu S.A. - Medical IT Córdoba
> Tel.: 0351 - 4247979
> 


Are you sure ? Any problems ?

Regards
Boguslaw

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Vincent Snijders
2009/4/14 Graeme Geldenhuys :
> On Tue, Apr 14, 2009 at 3:02 PM, Vincent Snijders
>  wrote:
>>
>> I am abusing the tool, because it is a tool after all, not a law. Sorry to 
>> confuse
>> you with it, but I never realized you would get into trouble with git. svn 
>> export
>> and svn co of that tag works exactly the same after the release announcement 
>> (all
>> the release builders were notified in private).
>
> It's not that Git doesn't cope with it, it's just something unexpected
> even for a svn user. I would never consider doing a 'svn up' after I
> do a 'svn co' on a tag.  As a long time svn user I always understood a
> tag as a single point in time with no modifications after it has been
> created. So if I did a 'svn co' before you did the merge to that tag,

Then you did it before the release was announced and then you are on
your own. Too bad.

Vincent

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 3:26 PM, Hans-Peter Diettrich
 wrote:
>>
>> Now I'm starting to appreciate Linus's talk about Git at Google Talk.
>> SubVersion really has a brain-dead design.  ;-)
>
> SubVersion had to be compatible with the old SVN, so that existing
> repositories could be moved easily.

By SVN I guess you meant CVS?  SVN is simply the command line tool for
SubVersion repositories.

And WHY must SubVersion be compatible with CVS???  Git is a totally
different design, yet importing CVS or SubVersion repositories is a
no-brainer. In fact in all my years of using SCM software, moving
repositories from SubVersion to Git was the easiest migration I have
ever had to do.


> We should distinguish between implementation and use of tags. Using tags
> for anything but immutable milestones is an abuse of the SVN features,
> and it's a weak excuse that "it's possible, so we do it" :-(

+1


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Michael Van Canneyt


On Tue, 14 Apr 2009, Graeme Geldenhuys wrote:

> On Tue, Apr 14, 2009 at 3:02 PM, Vincent Snijders
>  wrote:
> >
> > I am abusing the tool, because it is a tool after all, not a law. Sorry to 
> > confuse
> > you with it, but I never realized you would get into trouble with git. svn 
> > export
> > and svn co of that tag works exactly the same after the release 
> > announcement (all
> > the release builders were notified in private).
> 
> It's not that Git doesn't cope with it, it's just something unexpected
> even for a svn user. I would never consider doing a 'svn up' after I
> do a 'svn co' on a tag.  As a long time svn user I always understood a
> tag as a single point in time with no modifications after it has been
> created. So if I did a 'svn co' before you did the merge to that tag,
> then if I spoke of tag 0.9.26 (expecting it not to change) if would be
> different to your tag 0.9.26.  Hence my concern about the odd usage of
> tags.

Even in CVS - the mother of all revision systems - a tag could be moved,
so there also it could be that you had to do a cvs up on a tag.

Although it is rare that a tagged version changes, it can happen.

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Docking again (ATN: Mattias)

2009-04-14 Thread Mattias Gärtner
Zitat von Hans-Peter Diettrich :

> Now an extended docking model and a new docking manager has been tested
> and partially integrated into the LCL. The new model extends the flawed
> Delphi model, without breaking compatibility. Full integration and
> fixing of related issues (widgetset?) deserve some discussion. See
> uploads for Patches #13427.
>
> Most important issues:
>
> What's the purpose of the TDragManager class? Is it designed for support
> of user-defined drag managers, or can it be removed?
>
> Same question about TDrag/DockPerformers.
>
> Delphi also allows for some customization of the visualization etc. in
> the drag/dock objects, but the current LCL implementation bypasses such
> extensions. What's the reason for *not* using the customizable methods
> in these objects?
>
>
> If nobody can answer the above questions, Paul will update the LCL as
> appropriate.

Ok with me.

Mattias


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On Tue, Apr 14, 2009 at 2:27 PM, Florian Klaempfl
>  wrote:
>> No. It's stupid to tag after a release is built or even worse, build
>> from a branch.
> 
> That's what I meant. If trunk or some "release candidate" branch is
> stable enough to make a release, then tag that specific revision (a
> snapshot of a specific point in time).

And what if someone realizes that one patch is missing? Skip a release
number? We will never to this again, we did this in FPC 1.0.x times and
it caused a lot of confusion. Better a tag is moved ...
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Docking again (ATN: Mattias)

2009-04-14 Thread Paul Ishenin
Hans-Peter Diettrich wrote:
> If nobody can answer the above questions, Paul will update the LCL as 
> appropriate.
>   
Where I said that? I am checking very seriously every docking patch in 
order to preserve current implementation.

Best regards,
Paul Ishenin.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 3:02 PM, Vincent Snijders
 wrote:
>
> I am abusing the tool, because it is a tool after all, not a law. Sorry to 
> confuse
> you with it, but I never realized you would get into trouble with git. svn 
> export
> and svn co of that tag works exactly the same after the release announcement 
> (all
> the release builders were notified in private).

It's not that Git doesn't cope with it, it's just something unexpected
even for a svn user. I would never consider doing a 'svn up' after I
do a 'svn co' on a tag.  As a long time svn user I always understood a
tag as a single point in time with no modifications after it has been
created. So if I did a 'svn co' before you did the merge to that tag,
then if I spoke of tag 0.9.26 (expecting it not to change) if would be
different to your tag 0.9.26.  Hence my concern about the odd usage of
tags.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb:

>> The difference between tags and branches does only exist in the naming
>> convention, nothing more.
> 
> Now I'm starting to appreciate Linus's talk about Git at Google Talk.
> SubVersion really has a brain-dead design.  ;-)

SubVersion had to be compatible with the old SVN, so that existing 
repositories could be moved easily.

>>> In future I would recommend using branches and when a release is
>>> announced, then only create a tag.
>> Cumbersome.
> 
> Funny how the SubVersion documentation says that is exactly how you
> are supposed to use tags. If you start committing to a "tag", it is
> NOT a snapshot in time any more and is now considered a branch. I have
> been working on many SubVersion repositories from various projects.
> Everybody "gets" that concept, but the Lazarus developers don't.

We should distinguish between implementation and use of tags. Using tags 
for anything but immutable milestones is an abuse of the SVN features, 
and it's a weak excuse that "it's possible, so we do it" :-(

DoDi

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Modified .po files after each build

2009-04-14 Thread Graeme Geldenhuys
Hi,

Recently it started to happen that every time I build Lazarus IDE
after a clean checkout, after the build I have many modified .po
files.

Should the localize.sh script be run or something?

eg:

===
--- components/projecttemplates/languages/frmtemplatevariables.de.po ---
index f04ab28..874b3e0 100644
@@ -13,6 +13,10 @@ msgstr ""
 msgid "Description"
 msgstr "Beschreibung"

+#: frmtemplatevariables.snoadditionalvars
+msgid "This project has no additional variables."
+msgstr ""
+
 #: frmtemplatevariables.svalue
 msgid "Value"
 msgstr "Wert"

--- components/projecttemplates/languages/frmtemplatevariables.es.po ---
index b6d736d..61f7e42 100644
@@ -13,6 +13,10 @@ msgstr ""
 msgid "Description"
 msgstr "Descripcion"

+#: frmtemplatevariables.snoadditionalvars
+msgid "This project has no additional variables."
+msgstr ""
+
 #: frmtemplatevariables.svalue
 msgid "Value"
 msgstr "Valor"

===

Here is a complete list of files that changes after a Lazarus IDE rebuild.

$ git diff --stat=72
 .../languages/frmtemplatevariables.de.po   |4 
 .../languages/frmtemplatevariables.es.po   |4 
 .../languages/frmtemplatevariables.fr.po   |4 
 .../languages/frmtemplatevariables.id.po   |4 
 .../languages/frmtemplatevariables.it.po   |4 
 .../languages/frmtemplatevariables.lt.po   |4 
 .../languages/frmtemplatevariables.pb.po   |4 
 .../languages/frmtemplatevariables.pl.po   |4 
 .../languages/frmtemplatevariables.po  |4 
 .../languages/frmtemplatevariables.ru.po   |4 
 10 files changed, 40 insertions(+), 0 deletions(-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Packages / Visual Form Inheritance / Components Connection

2009-04-14 Thread Leonardo M. Ramé
If you are referring to .bpl packages, the answer is No, because 
FPC/Lazarus doesn't use packages.

But if you create your datamodule inside a .dll or .so library, it's 
perfectly possible.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Osvaldo Filho escribió:
> Hi, is it possible i have packages and use your units for visual form 
> inheritance ?
> Is it possible i connect a dataset from a form of my project with an 
> database in a datamodule in a package?
>  
> Thanks
> 
>
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Vincent Snijders
2009/4/14 Vincent Snijders :
> change. The correct way should have been

after a blocking issue was found in the tagged version.

> * create a new branch from lazarus/tags/lazarus_0_9_26_2 to
> lazarus/branches/lazarus_0_9_26_2
> * delete lazarus/tags/lazarus_0_9_26_2 (since the tag is not valid anymore)
> * merge the revision from trunk to lazarus/branches/lazarus_0_9_26_2
> * tag lazarus/branches/lazarus_0_9_26_2 to lazarus/tags/lazarus_0_9_26_2
>
> Again: cumbersome.
>

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TFilestream raises exception class 'External SIGSEGV'

2009-04-14 Thread Dave Coventry
Hi, I'm having a problem with the following code:

  Fstr:=TFileStream.Create('data',fmOpenRead);
  i:=0;
  while ihttp://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Vincent Snijders
Graeme Geldenhuys schreef:
  
> Another common version control concept is a tag. A tag is just a
> “snapshot” of a project in time.
> 
> [...snip]
> 
> But wait a moment: isn't this tag creation procedure the same
> procedure we used to create a branch? Yes, in fact, it is. In
> Subversion, there's no difference between a tag and a branch. Both are
> just ordinary directories that are created by copying. Just as with
> branches, the only reason a copied directory is a “tag” is because
> humans have decided to treat it that way: as long as nobody ever
> commits to the directory, it forever remains a snapshot. If people
> start committing to it, it becomes a branch.
> 
> 

Correct. Until the release has been announced, that directory should be 
considered a 
branch. After that is a tag set in stone. I admit I took a shortcut by merging 
the 
change. The correct way should have been:
* create a new branch from lazarus/tags/lazarus_0_9_26_2 to 
lazarus/branches/lazarus_0_9_26_2
* delete lazarus/tags/lazarus_0_9_26_2 (since the tag is not valid anymore)
* merge the revision from trunk to lazarus/branches/lazarus_0_9_26_2
* tag lazarus/branches/lazarus_0_9_26_2 to lazarus/tags/lazarus_0_9_26_2

Again: cumbersome.

I am abusing the tool, because it is a tool after all, not a law. Sorry to 
confuse 
you with it, but I never realized you would get into trouble with git. svn 
export 
and svn co of that tag works exactly the same after the release announcement 
(all 
the release builders were notified in private).

Vincent

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 2:27 PM, Florian Klaempfl
 wrote:
>
> No. It's stupid to tag after a release is built or even worse, build
> from a branch.

That's what I meant. If trunk or some "release candidate" branch is
stable enough to make a release, then tag that specific revision (a
snapshot of a specific point in time). Now make a release based on
that tag (and specific revision).  Now that release is done and dusted
- never to be touched again. The same should be said about the tag.

If changes need to be made, a new branch should be created, revisions
merged and patches applied. When it's tested and ready, tag it and
create a new point release. Isn't this how 99% of the software
projects out there work?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Docking again (ATN: Mattias)

2009-04-14 Thread Hans-Peter Diettrich
Now an extended docking model and a new docking manager has been tested 
and partially integrated into the LCL. The new model extends the flawed 
Delphi model, without breaking compatibility. Full integration and 
fixing of related issues (widgetset?) deserve some discussion. See 
uploads for Patches #13427.

Most important issues:

What's the purpose of the TDragManager class? Is it designed for support 
of user-defined drag managers, or can it be removed?

Same question about TDrag/DockPerformers.

Delphi also allows for some customization of the visualization etc. in 
the drag/dock objects, but the current LCL implementation bypasses such 
extensions. What's the reason for *not* using the customizable methods 
in these objects?


If nobody can answer the above questions, Paul will update the LCL as 
appropriate.

DoDi
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Packages / Visual Form Inheritance / Components Connection

2009-04-14 Thread Osvaldo Filho
Hi, is it possible i have packages and use your units for visual form
inheritance ?
Is it possible i connect a dataset from a form of my project with an
database in a datamodule in a package?

Thanks
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On Tue, Apr 14, 2009 at 12:33 PM, Vincent Snijders 
> 
>> Another school says that you need to build releases from a tagged version.
> 
> Those learners should go back to school!  :-)

No. It's stupid to tag after a release is built or even worse, build
from a branch. This makes it very hard to ensure that everybody uses the
same revision to do its builds (e.g. FPC releases are build by probably
almost 10 different people). It rarely happens that a release must be
rebuilt but in this case the tag is simply moved by merging a certain
revision.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 12:33 PM, Vincent Snijders 
>
> Another school says that you need to build releases from a tagged version.

Those learners should go back to school!  :-)


>> I have no idea if SubVersion supports deleting or moving tags.
>
> Updating a directory under tags, isn't that moving tags?
> Deleting the directory under tags, isn't that deleting tags?
>
> The difference between tags and branches does only exist in the naming
> convention, nothing more.

Now I'm starting to appreciate Linus's talk about Git at Google Talk.
SubVersion really has a brain-dead design.  ;-)


>> In future I would recommend using branches and when a release is
>> announced, then only create a tag.
>
> Cumbersome.

Funny how the SubVersion documentation says that is exactly how you
are supposed to use tags. If you start committing to a "tag", it is
NOT a snapshot in time any more and is now considered a branch. I have
been working on many SubVersion repositories from various projects.
Everybody "gets" that concept, but the Lazarus developers don't.

http://svnbook.red-bean.com/en/1.5/svn.branchmerge.tags.html


Another common version control concept is a tag. A tag is just a
“snapshot” of a project in time.

[...snip]

But wait a moment: isn't this tag creation procedure the same
procedure we used to create a branch? Yes, in fact, it is. In
Subversion, there's no difference between a tag and a branch. Both are
just ordinary directories that are created by copying. Just as with
branches, the only reason a copied directory is a “tag” is because
humans have decided to treat it that way: as long as nobody ever
commits to the directory, it forever remains a snapshot. If people
start committing to it, it becomes a branch.


NOTE the last line!


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb:

>> Yes, but beware the some of them got merges from trunk afterwards.
>>
>> For instance, lazarus_0_9_26_2 is based on 18716, and r18269 got merged
>>  resulting in r18898. So you cannot simpy use r18898 for the tag.
> 
> I noticed that...  Doesn't that defeat the point of tags???  Branches
> are used for merging things. Tags should be set in stone - a snapshot
> at a specific point in time.

I'll second that.

Later fixes should be supplied as patches (AKA "service packs"), IMO.

DoDi

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Vincent Snijders
2009/4/14 Graeme Geldenhuys :
> On Tue, Apr 14, 2009 at 11:44 AM, Vincent Snijders
>  wrote:
>>
>> What do you suggest instead? Remove the tag and tag again? Or is
>> deleting a directory under tags not allowed in GIT either?
>
> Tags should be created after a release has been announced.  Before
> that, a Branch should be used.
>

Another school says that you need to build releases from a tagged version.

> I have no idea if SubVersion supports deleting or moving tags.

Updating a directory under tags, isn't that moving tags?

Deleting the directory under tags, isn't that deleting tags?

The difference between tags and branches does only exist in the naming
convention, nothing more.

> What worries me now with the current tags in Lazarus, is that they
> don't have a clean history (specific snapshot in time). You wouldn't
> expect to do a 'svn up' after you checked out a tag - so some users
> might be missing those extra commits / merges.  You also can't re-tag
> by simply using the last merged revision, because the history is not
> sequential any more.  I'm not sure what would happen if you created a
> new branch (using original revision of tag) and recreated what some of
> those tags do, then re-tag the branch and then delete the branch...
> Can you do that?  The joys of tags and branches under SubVersion!  :-(

Sure, I enjoy it. -)

>
> In future I would recommend using branches and when a release is
> announced, then only create a tag.

Cumbersome.

Vincent

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 11:44 AM, Vincent Snijders
 wrote:
>
> What do you suggest instead? Remove the tag and tag again? Or is
> deleting a directory under tags not allowed in GIT either?

Tags should be created after a release has been announced.  Before
that, a Branch should be used.

I have no idea if SubVersion supports deleting or moving tags. I know
under Git I can delete or move tags without problems.

What worries me now with the current tags in Lazarus, is that they
don't have a clean history (specific snapshot in time). You wouldn't
expect to do a 'svn up' after you checked out a tag - so some users
might be missing those extra commits / merges.  You also can't re-tag
by simply using the last merged revision, because the history is not
sequential any more.  I'm not sure what would happen if you created a
new branch (using original revision of tag) and recreated what some of
those tags do, then re-tag the branch and then delete the branch...
Can you do that?  The joys of tags and branches under SubVersion!  :-(

In future I would recommend using branches and when a release is
announced, then only create a tag.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Git mirror of Lazarus SubVersion repository is available

2009-04-14 Thread Graeme Geldenhuys
Hi,

I created a wiki page documenting the steps on using the Git mirror of
Lazarus SubVersion repository.

  http://wiki.lazarus.freepascal.org/git_mirrors


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Vincent Snijders
2009/4/14 Graeme Geldenhuys :
> On Tue, Apr 14, 2009 at 10:47 AM, Marc Weustink
>  wrote:
>>
>> Yes, but beware the some of them got merges from trunk afterwards.
>>
>> For instance, lazarus_0_9_26_2 is based on 18716, and r18269 got merged
>>  resulting in r18898. So you cannot simpy use r18898 for the tag.
>
> I noticed that...  Doesn't that defeat the point of tags???  Branches
> are used for merging things. Tags should be set in stone - a snapshot
> at a specific point in time. Now Lazarus developers do not distinguish
> between tags and branches.  :-(
>

I guess we exploit this SVN feature to get the best out of SVN :-p

What do you suggest instead? Remove the tag and tag again? Or is
deleting a directory under tags not allowed in GIT either?

Vincent

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Vincent Snijders
2009/4/14 Graeme Geldenhuys :
> On Tue, Apr 14, 2009 at 10:47 AM, Marc Weustink
>  wrote:
>>
>> Yes, but beware the some of them got merges from trunk afterwards.
>>
>> For instance, lazarus_0_9_26_2 is based on 18716, and r18269 got merged
>>  resulting in r18898. So you cannot simpy use r18898 for the tag.
>
> How long before a Lazarus tag is not merged to any more??

After a release has been announced.

Vincent.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
On Tue, Apr 14, 2009 at 10:47 AM, Marc Weustink
 wrote:
>
> Yes, but beware the some of them got merges from trunk afterwards.
>
> For instance, lazarus_0_9_26_2 is based on 18716, and r18269 got merged
>  resulting in r18898. So you cannot simpy use r18898 for the tag.

I noticed that...  Doesn't that defeat the point of tags???  Branches
are used for merging things. Tags should be set in stone - a snapshot
at a specific point in time. Now Lazarus developers do not distinguish
between tags and branches.  :-(

How long before a Lazarus tag is not merged to any more?? This strange
usage of tags makes any mirroring near impossible (or a lot more
work).  I still think merging to a tag is wrong though.  Maybe I'll
just use the base revision number the tag was created on and be done
with it.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TImageList.AddMasked not working with TBitmap.PixelFormat := pf32bit

2009-04-14 Thread Boian Mitov
  Hi Mark,

Thank you!
The reason I need to use pf32bit is that I manipulate the raw image, and I 
access the pixels as integers. I can't do that if the image is 24 bit. I 
actually don't care about the Alpha channel in this case.

  AScanLineImage:=TLazIntfImage.Create(0,0);
  AImgFormatDescription.Init_BPP32_B8G8R8_BIO_TTB(Images.Width,Images.Height);
  AScanLineImage.DataDescription := AImgFormatDescription;

for Y :=0 to AScanLineImage.Height-1 do
  begin
  Ptr := AScanLineImage.GetDataLineStart( Y );
  for X := 0 to AScanLineImage.Width-1 do
begin
AColor := TColor( Ptr^ and $FF );
 if( AColor = clWhite ) then
  Ptr^ := AGlyphColor

else if( AColor = clGray ) then
  Ptr^ := ABorderColor

else if( ASecondaryArea and ( AColor = clRed )) then
  Ptr^ := ABorderColor

else if( AColor = clLtGray ) then
  Ptr^ := AHalfToneColor

else if( AColor = clBlack ) then
  Ptr^ := AButtonColor
   
   
AIntfImage.CopyPixels( AScanLineImage );
ABitmap.LoadFromIntfImage( AIntfImage );

Images.ReplaceMasked( ImageIndex, ABitmap, InvertColor( AUniqueColor ));

As you can see I need this so I can access the pixels fast as a raw image, 
and need to get the image back. This is significantly more complex in 24 bit 
image, so the need for 32 bit image being added as masked is obvious.

With best regards,
  Boian Mitov

---
Mitov Software
www.mitov.com
---
- Original Message - 
From: "Marc Weustink" 
To: "General mailing list" 
Sent: Tuesday, April 14, 2009 1:29 AM
Subject: Re: [Lazarus] TImageList.AddMasked not working with 
TBitmap.PixelFormat := pf32bit


> there is not a good reason to add a 32bit alpha image using a mask.
> Anyway, in the current implementation, the added images are converted
> first. This is still a todo to fix.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Marc Weustink
Graeme Geldenhuys wrote:
> Hi,
> 
> I forgot to pull in the 'tags' when I mirrored the SubVersion
> repository to Git. I would like to tag them now, but need to know what
> revisions was used for each tag.
> 
> Based on the following URL, is the "revision" column next to every tag
> the revision numbers I am looking for?
> 
>   http://svn.freepascal.org/cgi-bin/viewvc.cgi/tags/?root=lazarus

Yes, but beaware the some of them got merges from truk afterward.

For instance, lazarus_0_9_26_2 is based on 18716, and r18269 got merged 
  resulting in r18898.

So you cannot simpy use r18898 for the tag.


Marc
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TImageList.AddMasked not working with TBitmap.PixelFormat := pf32bit

2009-04-14 Thread Marc Weustink
Boian Mitov wrote:
>  Hi Folks,
>  
> I am testing the:
> Lazarus-0.9.27-19324-fpc-2.2.5-20090411-win32.exe
> snapshot. I have had a bug that has been around for many months, and 
> finally had time to investigate it in this snapshot.
>  
> The TImageList.AddMasked does not work correctly 
> with TBitmap.PixelFormat := pf32bit; . It works with pf24bit but not 
> with pf32bit.

there is not a good reason to add a 32bit alpha image using a mask.
Anyway, in the current implementation, the added images are converted 
first. This is still a todo to fix.

Marc

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] revision numbers of each SVN tag?

2009-04-14 Thread Graeme Geldenhuys
Hi,

I forgot to pull in the 'tags' when I mirrored the SubVersion
repository to Git. I would like to tag them now, but need to know what
revisions was used for each tag.

Based on the following URL, is the "revision" column next to every tag
the revision numbers I am looking for?

  http://svn.freepascal.org/cgi-bin/viewvc.cgi/tags/?root=lazarus


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] [Fwd: Help with external dbg file and lineinfo]

2009-04-14 Thread Bogusław Brandys


 Wiadomość oryginalna 
Temat: Help with external dbg file and lineinfo
Data: Tue, 14 Apr 2009 08:38:37 +0200
Nadawca: Bogusław Brandys 
Adresat: FPC developers' list 

Hi,

Please help me fix this bug: http://bugs.freepascal.org/view.php?id=13499

According to my little knowledge string table immediately follows symbol
table so computation of string table in case of coff symbols is probably
wrong by 4 bytes offset. Yet I don't understand why thos +4 was added here.
There is of course not a complete fix, because I have no access to 64
bit windows.


Boguslaw

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus