Re: [Lazarus] Rebuild Lazarus everytime to have Zeos !

2013-08-26 Thread Michael Schnell

On 08/23/2013 07:05 PM, Gugui wrote:
after install Zeos I need to rebuild Lazarus to Zeos components shows 
up !


During the package installation, recompiling should be triggered rather 
automatically. So I don't think it is a disadvantage.


-Michael

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


Re: [Lazarus] TTreeView, string and SIGSEGV

2013-08-26 Thread Xiangrong Fang
Ok, that's reasonable, however:

1) If I use Move() is there a "manual" way to increate the string ref count?

2) why the error is gone if I change this line:

prev := tv.Items.InsertObjectBehind(prev, p^.title, p);

to this:

prev := tv.Items.InsertObjectBehind(prev, 'Node #' + IntToStr(i), p);

3) Why this error does not happen on node #0 and #3, but only node #1 and
#2?

4) Why it behaves different on Windows and Linux?

Thanks!


2013/8/24 Martin 

> On 23/08/2013 16:13, Xiangrong Fang wrote:
>
>> Hi All,
>>
>> I encountered a strange SIGSEGV with the attached program.  To reproduce
>> the problem:
>>
>> 1) compile and run it.
>> 2) select "Node #2"
>> 3) click "Test" button, it will insert a node before the selected Node
>> 4) close the program
>>
>> There will be a SIGSEGV at the end of OnDestroy method.
>>
>> This problem is reproducible under Linux amd64 and Wine and Win7 (32bit).
>> A strange thing is that on Linux or Wine, this error only occur on Node #1
>> and Node #2, but on Windows, it only occur on Node #2 and Node #3.
>>
>> Also, if you swap either of the 2 commented statements, this error is
>> gone.
>>
>> I suspect this is caused by the AnsiString manager.  Could anyone explain
>> why, or is this a bug?
>>
>
> Only had a quick look, please veryfy
>
>  Move(tv.Selected.Data^, p^, SizeOf(TNode));
>   tv.Items.InsertObject(tv.**Selected, 'New Node', p);
>
>
> Move makes a copy of the node, including a copy of the ansistring (that is
> the pointer-part) in the node.
> so now you have 2 strings, referring the same string data, but you never
> increased the ref count.
>
>
>
>
> --
> __**_
> Lazarus mailing list
> Lazarus@lists.lazarus.**freepascal.org
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 1.0.12 Release

2013-08-26 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.0.12.

This is a bug fix release, built with fpc 2.6.2. 
The previous releases 1.0.8 and 1.0.10 were built with fpc 2.6.2 too, while 
release 1.0.6 was built with fpc 2.6.0.

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch#Fixes_for_1.0.12_.28Merged.29
http://wiki.lazarus.freepascal.org/User_Changes_2.6.2

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 1.0.12" directory.

Minimum requirements:
Windows:   98, 2k, XP, Vista, 7, 8
FreeBSD/Linux: gtk 2.8 or qt4.5
Mac OS X:  10.5, LCL only 32bit, non LCL apps can be 64bit

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_0_12

For people who are blocked by SF, the Lazarus releases from SourceForge
are mirrored at: 
ftp://freepascal.dfmk.hu/pub/lazarus/releases/
and later at (after some time for synchronization)
http://michael-ep3.physik.uni-halle.de/Lazarus/releases/
and
http://mirrors.iwi.me/lazarus/


Mattias

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


Re: [Lazarus] Res: Re: bug in open package file

2013-08-26 Thread Mattias Gaertner
On Sun, 25 Aug 2013 21:50:26 -0300
Junior  wrote:

> Lazarus 1.1 r42498M FPC 2.6.2 i386-linux-gtk 2
> 
> 
> No, still exists a failure.
> 
> Open an existing package, all is ok, but if a pack that has not been 
> installed, the window remains behind the Lazarus.

Actually it is the other way round. The source editor does not remain
behind the package editor.

 
> This happened now when I went install a new package.

It works here. Please use at least svn revision 42501. 
Can you give more details about the mouse and keyboard commands you use
to open the package?


Mattias

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


Re: [Lazarus] TTreeView, string and SIGSEGV

2013-08-26 Thread Mattias Gaertner
On Mon, 26 Aug 2013 16:45:35 +0800
Xiangrong Fang  wrote:

> Ok, that's reasonable, however:
> 
> 1) If I use Move() is there a "manual" way to increate the string ref count?

Yes, but it is better to let the compiler do the work:
p^:=PNode(tv.Selected.Data)^;

 
> 2) why the error is gone if I change this line:
> 
> prev := tv.Items.InsertObjectBehind(prev, p^.title, p);
> 
> to this:
> 
> prev := tv.Items.InsertObjectBehind(prev, 'Node #' + IntToStr(i), p);
> 
> 3) Why this error does not happen on node #0 and #3, but only node #1 and
> #2?
> 
> 4) Why it behaves different on Windows and Linux?

All this has the same answer:
When you mess up the heap you get results depending on the current
memory, which depends on lots of stuff. The results
can vary from host to host and might not even be the same on each run.
In other words: random.
Windows and Linux have different approaches how to initialize memory,
so you see differences more likely.


Mattias

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


[Lazarus] Lazarus developer needed

2013-08-26 Thread Lazarus
Hello, 

Our company (www.astrill.com) provides personal VPN services since 2009. We are 
seeking for a skilled Lazarus/Free Pascal developer to work on development and 
maintenance of our Windows/Macintosh/Linux software. You need to be good on all 
of the three platforms. Most of our software is network related. 

This is a full time permanent job, you will work 8 hours per day Mon-Fri. Time 
is flexible, you will work from home. Salary starts from $2500-$3000 USD/month. 

As we develop corss-platform software, working for us you can as well 
contribute to Lazarus/Free Pascal project. If this was just your hobby before, 
now you can turn it into enjoyable paid job. 

If you are interested into this offer, please contact us back at 
j...@astrill.com and provide some references or examples of your previous work. 

We have already received several applications but as many people were at 
vacation, we are resending this job offer. This job application is open till 
31/August, then we will select the candidate. 

Best regards, 
Obrad Grujic 
Astrill Systems Corp. 
Managing Director 
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] SynEdit Development Status

2013-08-26 Thread Fabrício Srdic
Hi,

I'm new to the Lazarus/Free Pascal.

I have posted this message on the lazarus forum, do not know if there
is the best
place to discuss this topic...

According to the wiki page, the SynEdit contained in Lazarus and used by
Lazaru's editor is based on SynEdit 1.03. The current version of the
orginal SynEdit is 2.07.

Wiki also says that there is a port of the version 2.05 to Lazarus and also
says that there is a attempt to redesign the component.

My questions:

What are the future plans of the Lazaru's dev team for the SynEdit?

Is the team planning to use the port of the version 2.05?

Is the project to redesign the component a fork of the original SynEdit
project, breaking the compatibility between both components in the future
versions or the redesign will occur in the original project?

Best regards,
Fabrício
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SynEdit Development Status

2013-08-26 Thread martin

On 26/08/13 17:08, Fabrício Srdic wrote:

Hi,

I'm new to the Lazarus/Free Pascal

...

What are the future plans of the Lazaru's dev team for the SynEdit?


Well tell us more, what do you aim to do? I already gave you an answer 
on the forum: 
http://forum.lazarus.freepascal.org/index.php/topic,21867.msg128460.html#msg128460


And just in case, if you read the link in my forum detail: I am part of 
the "dev team", and the one who currently maintains SynEdit.


If you ask in more detail, I will try to answer

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


Re: [Lazarus] Memo for touchscreen

2013-08-26 Thread Koenraad Lelong

Op 18-07-13 21:24, Malcolm Poole schreef:
 //


procedure TForm1.LetterAButtonClick ( Sender: TObject ) ;
var
   testcaretpos: Integer;
begin
   testcaretpos := Memo1.SelStart;
   Memo1.Text := Copy(Memo1.Text, 1, testcaretpos) + 'A'
 + Copy(Memo1.Text, testcaretpos+1, MaxInt);
   Inc(testcaretpos);
   Memo1.SelStart := testcaretpos;
   Memo1.SetFocus;
end;


Hi Malcolm,

I made a few testprograms that work fine with your code. Now I made a 
full keyboard (Belgian AZERTY) and I'm having a problem I can't solve.


The keyboard has some "special" characters : é§èçà and others. Those are 
not 1 byte characters. When I add them, they appear in the memo, but the 
next character seems to erase the memo. If I have already some lines in 
it, all disappears and the cursor is on the first line, fully left.

I add the characters with a string :

Kars:='§';
Memo1.Text := Copy(Memo1.Text, 1, testcaretpos) + Kars + 
Copy(Memo1.Text, testcaretpos+1, MaxInt);


Actually, I do this in a procedure with Kars as a parameter.

Any suggestions where to look ?

BTW, I tried this on Lazarus 1.0 on Linux.

Thanks,

Koenraad Lelong


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


Re: [Lazarus] VirtualTreeView question, horizontal jump

2013-08-26 Thread luiz americo pereira camara
2013/8/25 Jürgen Hestermann 

> Am 2013-08-24 04:58, schrieb luiz americo pereira camara:
>
>  In the mean time try to set hoAutoResize in Header.Options and set
>> Header.AutoSizeIndex to 1
>> You should get the desired behavior
>> Luiz
>>
>>
> Yes, that solves the problem (though I don't know why ;-)).
> Thanks for investigating in this.
>
>

Basically, these options tell the component to automatically resize the
Column 1 to fill the remaining header space (control width - width all
other columns)

Luiz
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SynEdit Development Status

2013-08-26 Thread Fabrício Srdic
Thanks for the reply!

My name is Fabrício, i am a certified delphi programmer. I'm using Delphi
for over the last five years.

I'm Brazilian (thus, sorry if my English speaking is not good =)).

I'm would like to use Lazarus to build my own projects and i would like to
contribute to the community too.

I'm new to the Linux platform, but i'm still using Windows in my work.

I have noticed that doesn't exists a powerfull text editor - like Notepad++
- which I could use the same editor on both Windows and Linux.

I still prefer a text editors like Notepad++ - so, Gnu Emacs and Vi doesn't
work for me.

In Linux we have KEdit, but it's not avaliable on Windows platform. JEdit
is powerfull but it's Java-based, thus launches slowly...GEdit has fewer
features than the others.

So, initially, I'm planning to join the existing LazEdit project and help
to improve it. This also may be an opportunity for me to contribute to the
Lazarus project, learning about the SynEdit and helping to maintain this
component that is part of the Lazarus IDE today.

Regards


2013/8/26 martin 

> On 26/08/13 17:08, Fabrício Srdic wrote:
>
>> Hi,
>>
>> I'm new to the Lazarus/Free Pascal
>>
> ...
>
>  What are the future plans of the Lazaru's dev team for the SynEdit?
>>
>
> Well tell us more, what do you aim to do? I already gave you an answer on
> the forum: http://forum.lazarus.**freepascal.org/index.php/**
> topic,21867.msg128460.html#**msg128460
>
> And just in case, if you read the link in my forum detail: I am part of
> the "dev team", and the one who currently maintains SynEdit.
>
> If you ask in more detail, I will try to answer
>
> --
> __**_
> Lazarus mailing list
> Lazarus@lists.lazarus.**freepascal.org
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 1.10.12

2013-08-26 Thread Schindler Karl-Michael
Hi

Thanks a lot for the 1.0.12 release. I noticed this minor glitch: The tar.gz 
archive in 
http://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%201.0.12/
 has at least a wrong name. I did not check the content.

MiSchi.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus