Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Sven Barth

On 16.12.2015 19:11, Martin Frb wrote:

On 16/12/2015 17:26, Ondrej Pokorny wrote:

On 16.12.2015 18:20, Bart wrote:

On 12/16/15, Ondrej Pokorny  wrote:


>I had the same issue on Windows 10 and was advised to check
>DisableLoadSymbolsForLibraries (I don't remember who advised me,
sorry).

Yoe beat me to it.
(And I was the one.)


:)

Is it possible/reasonable to check the settings by default? Maybe more
people will be affected by the Win10 issue and not by disabling load
symbols by default?


If we could get a more uptodate gdb for 64 bit that should solve it
(providing it passes the gdbmi test case without crash)

If the option is active and you develop a library project, then you can
not debug it.

-
In the past 64 bit did not work because of SEH, so the error was
encountered with 32 bit. For 32 bit gdb was updated to 7.7.1 and that
should (afaik) fix the issue. (On 32 bit gdb > 7.7.1, tested up do gdb
10 are less stable, they crash in the testcase)


What about fpdebug? Does it work for Win64?

Regards,
Sven


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


Re: [Lazarus] UTF8String and UTF8Delete

2015-12-16 Thread Bart
On 12/10/15, Jürgen Hestermann  wrote:

> But now I have a problem with UTF8Strings:
> With this declaration
>
> var S : UTF8String;
>
> I want to delete a character
>
> UTF8Delete(S,1,1);
>
> but I get an error that the (var) parameter mismatches.

Fixed in r50850.
Proposed for merging to 1.6RC2.

Bart

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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Bart
On 12/16/15, Ondrej Pokorny  wrote:

> I had the same issue on Windows 10 and was advised to check
> DisableLoadSymbolsForLibraries (I don't remember who advised me, sorry).

Yoe beat me to it.
(And I was the one.)

> See http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips
>
> Ondrej

Bart

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


Re: [Lazarus] UTF8String and UTF8Delete

2015-12-16 Thread Sven Barth

On 16.12.2015 18:12, Bart wrote:

On 12/10/15, Jürgen Hestermann  wrote:


But now I have a problem with UTF8Strings:
With this declaration

var S : UTF8String;

I want to delete a character

UTF8Delete(S,1,1);

but I get an error that the (var) parameter mismatches.


Fixed in r50850.
Proposed for merging to 1.6RC2.


Better read Jonas' comments on that commit first:


The code that was committed for UTF8Delete(utf8string) in 
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/lazutf8.pas?root=lazarus=50850=50849=50850
 makes no sense:
* it's the "string" version that needs this wrapper, not the utf8string one (it's 
probably done because the "string" version is more commonly called, but that doesn't help 
if the current approach is wrong)
* changing the codepage of tmp at the start is a no-op, since it's an empty 
string at that point and you can't change the code page of an empty string 
(it's a nil pointer)
* if you can reasonably expect any custom string type to already have an utf8 code page, 
it's utf8string. It's not guaranteed of course, but it's much more likely than for a 
random "string"-typed variable (even if defaultsystemcodepage = CP_UTF8, 
because system unit routines may return rawbytestrings that have different code page) -- 
so if you want to change the code page of strings to make sure it's utf8, that should be 
done in the plain string version rather than in the utf8string version.

I also made an error in my original code (apart from the missing rawbytestring typecasts when 
calling SetStringCodePage). The "s:=tmp;" at the end needs to be 
"s:=RawByteString(tmp);" to avoid a codepage conversion in that assignment.


Regards,
Sven

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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Martin Frb

On 16/12/2015 19:57, Sven Barth wrote:


What about fpdebug? Does it work for Win64?


Not tested recently, but a year ago it did.

It is missing many features though. Even breakpoints do not always work 
(e.g. generics, where the same pascal code has more than one address in 
memory.


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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Andrea Mauri



32 or 64 bit?

win 64 lazarus 32



I put a button and an opendialog on a form
Onclick button I put
opendialog.execute
clicking button lazarus stop workin with message debugger error
gdb stop working


Does it work outside the IDE? (without gdb).

yes. the exe file works fine

---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus


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


Re: [Lazarus] Debian Packager released

2015-12-16 Thread Anthony Walter
Can you give me information on your FPC version?
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Andrea Mauri

thanks a lot!

Il 16/12/2015 18:15, Ondrej Pokorny ha scritto:

On 16.12.2015 17:52, Andrea Mauri wrote:

Dear all,
windows 10, lazarus 1.6 rc1 fpc 3.0
I put a button and an opendialog on a form
Onclick button I put
opendialog.execute
clicking button lazarus stop workin with message debugger error
gdb stop working


I had the same issue on Windows 10 and was advised to check 
DisableLoadSymbolsForLibraries (I don't remember who advised me, 
sorry). See http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips


Ondrej

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




---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus


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


[Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Andrea Mauri

Dear all,
windows 10, lazarus 1.6 rc1 fpc 3.0
I put a button and an opendialog on a form
Onclick button I put
opendialog.execute
clicking button lazarus stop workin with message debugger error
gdb stop working

andrea

---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus


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


[Lazarus] Two new Manage Desktops bugs

2015-12-16 Thread Anthony Walter
I've created two new bugs related to anchordocking and the "Manage
desktops" dialog.

Desktop manager restore incorrect docked layouts
http://bugs.freepascal.org/view.php?id=29200
(This issue can sometimes crash Lazarus)

Docked windows renamed when saving desktops
http://bugs.freepascal.org/view.php?id=29199
(A visual bug, but there is probably some bad code which should be
fixed causing the issue)

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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Bart
On 12/16/15, Andrea Mauri  wrote:
> Dear all,
> windows 10, lazarus 1.6 rc1 fpc 3.0
> I put a button and an opendialog on a form
> Onclick button I put
> opendialog.execute
> clicking button lazarus stop workin with message debugger error
> gdb stop working

See 
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working

Bart

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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Ondrej Pokorny

On 16.12.2015 18:20, Bart wrote:

On 12/16/15, Ondrej Pokorny  wrote:


>I had the same issue on Windows 10 and was advised to check
>DisableLoadSymbolsForLibraries (I don't remember who advised me, sorry).

Yoe beat me to it.
(And I was the one.)


:)

Is it possible/reasonable to check the settings by default? Maybe more 
people will be affected by the Win10 issue and not by disabling load 
symbols by default?


Ondrej

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


Re: [Lazarus] Debian Packager released

2015-12-16 Thread Alexsander Rosa
I've tried to compile it but got this compiling the Codebot package (fresh
clone):
Compiling package codebot 1.0: Exit code 1, Errors: 2
codebot.pas(10,3) Error: Duplicate identifier "CODEBOT"
codebot.pas(10,10) Fatal: Syntax error, ";" expected but "." found

2015-12-16 12:36 GMT-02:00 Alexsander Rosa :

> I've tested it, congratulations, it works fine.
> However I have a suggestion: an option to select the destination.
> It seems it always installs at /usr/local/bin.
> I would like to install into /opt/company-name/app-name to add other files.
> What do you think?
>
> 2015-11-10 14:22 GMT-02:00 JuuS :
>
>>
>>
>> On 11/10/2015 05:32 AM, Anthony Walter wrote:
>> > A new version is available with a much better dependency resolver.
>>
>> Beautiful, works great, VMs/machines, 32/64, qt/gtk2. Now, on to
>> codebot  Thanks for your work.
>>
>> --
>> ___
>> Lazarus mailing list
>> Lazarus@lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>
>
>
> --
> Atenciosamente,
> Alexsander da Rosa
>
>


-- 
Atenciosamente,
Alexsander da Rosa
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] installing "lazprojectgroups" generates exception after restart

2015-12-16 Thread Péter Gábor
Done: http://bugs.freepascal.org/view.php?id=29198

2015-12-16 13:23 keltezéssel, Mattias Gaertner írta:
> Please create a bug report.
> Mattias

-- 
Péter Gábor
p...@freemail.hu


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


Re: [Lazarus] [offtopic] Debugger is not working...

2015-12-16 Thread William Ferreira
1) Antivirus. I ve seen it before, the AV removes the exe before it
can run. (some av do that without asking, even if they are set to
ask first). The list of AV is always changing, as they get updated
and may stop doing so.

I don't use antivirus, if you don't count WDefender as antivirus. As on W10 we 
can't let it disabled, so, now I use an antivirus.
Anyway, he isn't removing any file.


2) Can you find and run the exe outside the IDE?

Yes, I'm using a lot of ShowMessage to debug...



3) which lazarus? 1.4 (32bit ?).x or 1.6 (32 or 64 bit?)

For 1.4 (32 bit) try download the alternative gdb 7.7.1 from our
sourceforge site. 1.6 already has that.


It's heappening since 1.4.2. I always use 32bit. On Laz 1.6RC1 the problem 
still lives...


4) name of directory in which you saved the project, and where the
exe is. For testing use a folder without spaces or accents (in
the entire path, so no "documents and settings". Use C:\mytest

Well, I'm thinking about special chars on path now. Old projects that has 
special chars on path worked fine on past but now they don't work. Spaces never 
was a problem, maybe now? Another thing to think about is that my projects are 
store on Onedrive's and Google Drive's folder. 

William de Oliveira Ferreira


Programador Web/Desktop


> (32) 8412 1897 - Whatsapp
> https://www.facebook.com/williamoferreira


To: lazarus@lists.lazarus.freepascal.org
From: laza...@mfriebe.de
Date: Wed, 16 Dec 2015 15:13:16 +
Subject: Re: [Lazarus] [offtopic] Debugger is not working...


  

  
  
On 16/12/2015 10:41, William Ferreira
  wrote:



  

Hi,

  

  I got a problem that seems more related to Windows than
  Lazarus itself.

  

  I simply can debug an application.

  

  I'm using a notebook that cames with Windows 8. I've updated
  to W8.1 and to W10. After updating to W8.1, if I run a project
  via F9 key, I always get that message ('Hit stop and hope the
  best, we're pulling the plug', 'Failed to load application
  executable')

  

  I thought updating lazarus should help but I got no success.

  

  It heappens with all projects.

  

  Is there a way check what is heappening?


  



1) Antivirus. I ve seen it before, the AV removes the exe before it
can run. (some av do that without asking, even if they are set to
ask first). The list of AV is always changing, as they get updated
and may stop doing so.



2) Can you find and run the exe outside the IDE?



3) which lazarus? 1.4 (32bit ?).x or 1.6 (32 or 64 bit?)

For 1.4 (32 bit) try download the alternative gdb 7.7.1 from our
sourceforge site. 1.6 already has that.



4) name of directory in which you saved the project, and where the
exe is. For testing use a folder without spaces or accents (in
the entire path, so no "documents and settings". Use C:\mytest





  


--
___
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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Martin Frb

On 16/12/2015 16:52, Andrea Mauri wrote:

Dear all,
windows 10, lazarus 1.6 rc1 fpc 3.0

32 or 64 bit?


I put a button and an opendialog on a form
Onclick button I put
opendialog.execute
clicking button lazarus stop workin with message debugger error
gdb stop working


Does it work outside the IDE? (without gdb).

If 64 bit: We currently have no maintainer for 64 bit gdb, so the gdb 
exe for 64 bit is rather old. It may not work well on modern windows.


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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Martin Frb

On 16/12/2015 17:26, Ondrej Pokorny wrote:

On 16.12.2015 18:20, Bart wrote:

On 12/16/15, Ondrej Pokorny  wrote:


>I had the same issue on Windows 10 and was advised to check
>DisableLoadSymbolsForLibraries (I don't remember who advised me, 
sorry).

Yoe beat me to it.
(And I was the one.)


:)

Is it possible/reasonable to check the settings by default? Maybe more 
people will be affected by the Win10 issue and not by disabling load 
symbols by default?


If we could get a more uptodate gdb for 64 bit that should solve it 
(providing it passes the gdbmi test case without crash)


If the option is active and you develop a library project, then you can 
not debug it.


-
In the past 64 bit did not work because of SEH, so the error was 
encountered with 32 bit. For 32 bit gdb was updated to 7.7.1 and that 
should (afaik) fix the issue. (On 32 bit gdb > 7.7.1, tested up do gdb 
10 are less stable, they crash in the testcase)


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


Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Ondrej Pokorny

On 16.12.2015 17:52, Andrea Mauri wrote:

Dear all,
windows 10, lazarus 1.6 rc1 fpc 3.0
I put a button and an opendialog on a form
Onclick button I put
opendialog.execute
clicking button lazarus stop workin with message debugger error
gdb stop working


I had the same issue on Windows 10 and was advised to check 
DisableLoadSymbolsForLibraries (I don't remember who advised me, sorry). 
See http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips


Ondrej

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


Re: [Lazarus] UTF8String and UTF8Delete

2015-12-16 Thread Bart
On 12/16/15, Sven Barth  wrote:

>
>> The code that was committed for UTF8Delete(utf8string) in
>> http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/lazutf8.pas?root=lazarus=50850=50849=50850
>> makes no sense:

Can you continue this discussion on the Lazarus devel list?
I discussed it there with Mattias.

Bart

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


Re: [Lazarus] Lazarus 1.6RC1 make bigide fails on Raspberry Pi2

2015-12-16 Thread Mattias Gaertner
On Wed, 16 Dec 2015 22:48:02 +0100
Bo Berglund  wrote:

>[...]
> >Fatal: (10022) Can't find unit process used by RegisterFCL
> 
> Does RegisterFCL work differently on Linux x64 than on Linux ARM?

No.

 
> By the way I found a process.pp file in the fpc 3.0.0 sources:
> packages/fcl-process/src/process.pp

You should have a process.ppu in your FPC install directory.

 
> Maybe the lazarus "make bigide" does not search the correct directory
> so it misses this on an ARM platform? Just guessing now of course...

process.ppu is part of every FPC install.
It must be in the -Fu search path of your /etc/fpc.cfg.

Mattias

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


Re: [Lazarus] Lazarus 1.6RC1 make bigide fails on Raspberry Pi2

2015-12-16 Thread Bo Berglund
On Tue, 15 Dec 2015 21:25:24 +, Mark Morgan Lloyd
 wrote:

>
>Also see Lazarus's --pcp= option. Again, I don't think this is the first 
>time I've pointed you at that.

My issue is not really the --pcp option to separate the lazarus
configs. I have done so already for the older lazarus.

Instead it is about actually being able to build the RC1 lazarus on
the Pi2 using the fpc. I have now tried both the 3.0.0 version and the
older 2.6.4 with the same results. So somehow it seems like there is
something amiss in the lazarus sources, which depend on the platform
it is being compiled for, or else the fpc 3.0.0 installation is
incomplete in some way. Is the process unit part of lazarus code or
fpc code?

Building Lazarus worked fine in the Linux Mint 17.2 virtual machine
but won't work here. Same sources checked out from svn in both cases,
yet there is this error about the missing process unit...
>Fatal: (10022) Can't find unit process used by RegisterFCL

Does RegisterFCL work differently on Linux x64 than on Linux ARM?

By the way I found a process.pp file in the fpc 3.0.0 sources:
packages/fcl-process/src/process.pp

Maybe the lazarus "make bigide" does not search the correct directory
so it misses this on an ARM platform? Just guessing now of course...
 

-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] TAChart Localization

2015-12-16 Thread Werner Pamler

Am 17.12.2015 um 01:01 schrieb Maxim Ganetsky:

16.12.2015 17:34, Werner Pamler пишет:

Another question related: Is it possible to find the address of a
resource string in the internal resource string table by using its hash
value? This would allow me to go back to the old calling convention
which had a "string" in the Register procedure (instead of a pointer
to a string): In this procedure I could calculate the hash value of the
passed untranslated resource string, store it and use it later to
retrieve the translated string from the tables.


See here for the list of available resource string functions:

http://www.freepascal.org/docs-html/3.0.0/prog/progse40.html#x229-2420009.3 



Thanks. I know this page, but my fpc-trunk does not find these 
functions, even if I "search in files" of the entire fpc folder, they do 
not show up. They do exist in the objpas of fpc3.0.0, but only enclosed 
by a define "RESSTRSECTIONS" which is not active, and I can't make 
TAChart depend on a non-standard define of fpc...


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


Re: [Lazarus] TAChart Localization

2015-12-16 Thread Maxim Ganetsky

16.12.2015 17:34, Werner Pamler пишет:

Another question related: Is it possible to find the address of a
resource string in the internal resource string table by using its hash
value? This would allow me to go back to the old calling convention
which had a "string" in the Register procedure (instead of a pointer
to a string): In this procedure I could calculate the hash value of the
passed untranslated resource string, store it and use it later to
retrieve the translated string from the tables.


See here for the list of available resource string functions:

http://www.freepascal.org/docs-html/3.0.0/prog/progse40.html#x229-2420009.3

--
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

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


Re: [Lazarus] installing "lazprojectgroups" generates exception after restart

2015-12-16 Thread Mattias Gaertner
On Mon, 14 Dec 2015 15:04:28 +0100
Péter Gábor  wrote:

> Hello!
> 
> I tried to install lazprojectgroups and everything was going fine while
> rebuilding the IDE. But after restarting the IDE shows the following
> exception (and stops running):
> 
> List index (25) out of bounds
> 
> It seems that the exception is raised in menu system.
> The full terminal output of the IDE is attached as plain text file.

Please create a bug report.


Mattias

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


Re: [Lazarus] TAChart Localization

2015-12-16 Thread Werner Pamler

Am 13.12.2015 um 13:26 schrieb Maxim Ganetsky:

It does not look nice. You are hacking around const specifier.

Hacking? At least in good company:

excerpt from SysUtils:
constructor Exception.CreateRes(ResString: PString);
begin
  inherited create;
  fmessage:=ResString^;
end;

Isn't this the same? If the address of the resource string is fed into 
the CreateRes constructor then the exception will be raised with the 
translated string.



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


Re: [Lazarus] TAChart Localization

2015-12-16 Thread Werner Pamler

Am 16.12.2015 um 15:16 schrieb Maxim Ganetsky:
There is no const modifier in this excerpt. 


Oh, I see your point now. Fortunately, the "const" is really not 
necessary here. Without the "const", would this idea of accessing the 
translated string be ok?


I do not want to translate the string again because this would bring the 
hassle of finding the po file into TAChart.


Another question related: Is it possible to find the address of a 
resource string in the internal resource string table by using its hash 
value? This would allow me to go back to the old calling convention 
which had a "string" in the Register procedure (instead of a pointer 
to a string): In this procedure I could calculate the hash value of the 
passed untranslated resource string, store it and use it later to 
retrieve the translated string from the tables.



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


Re: [Lazarus] TAChart Localization

2015-12-16 Thread Maxim Ganetsky


16.12.2015 16:30, Werner Pamler пишет:
> Am 13.12.2015 um 13:26 schrieb Maxim Ganetsky:
>> It does not look nice. You are hacking around const specifier.
> Hacking? At least in good company:
> 
> excerpt from SysUtils:
> constructor Exception.CreateRes(ResString: PString);
> begin
>   inherited create;
>   fmessage:=ResString^;
> end;
> 
> Isn't this the same? If the address of the resource string is fed into
> the CreateRes constructor then the exception will be raised with the
> translated string.

There is no const modifier in this excerpt.

-- 
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

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


Re: [Lazarus] Debian Packager released

2015-12-16 Thread Alexsander Rosa
I've tested it, congratulations, it works fine.
However I have a suggestion: an option to select the destination.
It seems it always installs at /usr/local/bin.
I would like to install into /opt/company-name/app-name to add other files.
What do you think?

2015-11-10 14:22 GMT-02:00 JuuS :

>
>
> On 11/10/2015 05:32 AM, Anthony Walter wrote:
> > A new version is available with a much better dependency resolver.
>
> Beautiful, works great, VMs/machines, 32/64, qt/gtk2. Now, on to
> codebot  Thanks for your work.
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Atenciosamente,
Alexsander da Rosa
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [offtopic] Debugger is not working...

2015-12-16 Thread Martin Frb

On 16/12/2015 10:41, William Ferreira wrote:

Hi,

I got a problem that seems more related to Windows than Lazarus itself.

I simply can debug an application.

I'm using a notebook that cames with Windows 8. I've updated to W8.1 
and to W10. After updating to W8.1, if I run a project via F9 key, I 
always get that message ('Hit stop and hope the best, we're pulling 
the plug', 'Failed to load application executable')


I thought updating lazarus should help but I got no success.

It heappens with all projects.

Is there a way check what is heappening?


1) Antivirus. I ve seen it before, the AV removes the exe before it can 
run. (some av do that without asking, even if they are set to ask 
first). The list of AV is always changing, as they get updated and may 
stop doing so.


2) Can you find and run the exe outside the IDE?

3) which lazarus? 1.4 (32bit ?).x or 1.6 (32 or 64 bit?)
For 1.4 (32 bit) try download the alternative gdb 7.7.1 from our 
sourceforge site. 1.6 already has that.


4) name of directory in which you saved the project, and where the exe 
is. For testing use a folder without spaces or accents (in the 
entire path, so no "documents and settings". Use C:\mytest



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


[Lazarus] 1.6 rc1 anchor docking ide

2015-12-16 Thread Andrea Mauri
I installed laz 1.6 rc1 fpc 3.0 on win 10.
after installing anchordockingdsgn.lpk and restarting lazarus i got an
error and lazarus crashes

here the message I got
[image: Immagine incorporata 1]
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TAChart Localization

2015-12-16 Thread Maxim Ganetsky


16.12.2015 17:34, Werner Pamler пишет:
> Am 16.12.2015 um 15:16 schrieb Maxim Ganetsky:
>> There is no const modifier in this excerpt. 
> 
> Oh, I see your point now. Fortunately, the "const" is really not
> necessary here. Without the "const", would this idea of accessing the
> translated string be ok?

Yes.

> I do not want to translate the string again because this would bring the
> hassle of finding the po file into TAChart.
> 
> Another question related: Is it possible to find the address of a
> resource string in the internal resource string table by using its hash
> value? This would allow me to go back to the old calling convention
> which had a "string" in the Register procedure (instead of a pointer
> to a string): In this procedure I could calculate the hash value of the
> passed untranslated resource string, store it and use it later to
> retrieve the translated string from the tables.

I don't know, TBH.

-- 
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

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


Re: [Lazarus] how to Draw Data Matrix by TLazBarcode

2015-12-16 Thread José Mejuto

El 16/12/2015 a las 1:22, 최경식 escribió:


Thank you for your answer. I solve this problem. I'm so so so appreciate.

But I have one more problem. How to change Data Matrix width and Height.

if you know any way, please share me.



Hello,

Can you be more precise ? Which kind of width & height ? With StrictSize 
checked the widget size would be 1x, 2x, 3x,...,Nx to fill as much as 
possible of the print space keeping pixels exactly as expected by the 
format so no "half pixel" dots appears. Non StrictSize can be used if 
the generated image would be big enought that non expected pixels 
(lines, "half pixel") will not affect the read capability (usually 
bigger than 4x original size).



--


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


Re: [Lazarus] [offtopic] Debugger is not working...

2015-12-16 Thread Thierry Andriamirado


Le 16 décembre 2015 13:41:25 UTC+03:00, William Ferreira 
 a écrit :

>I got a problem that seems more related to Windows than Lazarus itself.
>
>I simply can debug an application.
>

Maybe an anti-virus and file locking issue?
With windows 8.1 I can't run and debug my apps within Lazarus if AVAST's 
services are running.


-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.

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


[Lazarus] [offtopic] Debugger is not working...

2015-12-16 Thread William Ferreira



Hi,

I got a problem that seems more related to Windows than Lazarus itself.

I simply can debug an application.

I'm using a notebook that cames with Windows 8. I've updated to W8.1 and to 
W10. After updating to W8.1, if I run a project via F9 key, I always get that 
message ('Hit stop and hope the best, we're pulling the plug', 'Failed to load 
application executable')

I thought updating lazarus should help but I got no success.

It heappens with all projects.

Is there a way check what is heappening?

Thanks.

William de Oliveira Ferreira


Programador Web/Desktop


> (32) 8412 1897 - Whatsapp
> https://www.facebook.com/williamoferreira


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