Re: [Lazarus] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-14 Thread Mattias Gaertner
On Thu, 13 Feb 2014 19:05:57 -0800 (PST)
leledumbo leledumbo_c...@yahoo.co.id wrote:

  Ah, you debugged startlazarus.
  Please start /media/LinuxShared/lazarus/lazarus in gdb. 
 
 No difference:
 
 leledumbo@LeleBuntu:/media/Sources/fpc$ gdb
 /media/LinuxShared/lazarus/lazarus
 GNU gdb (GDB) 7.5-ubuntu
 Copyright (C) 2012 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i686-linux-gnu.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /media/LinuxShared/lazarus/lazarus...done.
 (gdb) b FPC_RAISEEXCEPTION
 Breakpoint 1 at 0x8072f25
 (gdb) run
 Starting program: /media/LinuxShared/lazarus/lazarus 
 Fontconfig warning: /etc/fonts/conf.d/50-user.conf, line 14: reading
 configurations from ~/.fonts.conf is deprecated.
 TMainIDE.ParseCmdLineOptions:
   PrimaryConfigPath=/home/leledumbo/.lazarus
   SecondaryConfigPath=/etc/lazarus
 TSourceEditorSharedValues.GetMainLinkScanner not pascal highlighted:
 unit1.pas
 [TEnvironmentOptions.Save]  error writing
 /home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
 DOMDocument.CreateElement PackageEditor_
 NiceChartD7 0

Strange. It is raising a FPC exception. gdb should break here, but it
does not.

Martin, do you have an idea how this is possible?

Anyway I now see, that there is an invalid identifier:
 NiceChartD7. 
I added check. Please test.

Mattias

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


Re: [Lazarus] play video and music from the web

2014-02-14 Thread Michael Schnell

On 02/13/2014 02:37 PM, Andrew Brunner wrote:
Chrome is by far the most widely versatile.  FireFox did not spring 
for MP3 licensing. Firefox requires streams as ogg.


For Videos I do on on Websites I now use HTM5 with both mp4 and ogg. 
With that most browsers are happy (but not the old IE that is the latest 
version installable on W-XP).


Before that I did Flash videos, but here the mobile  Apple devices decline.

-Michael


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


Re: [Lazarus] Lazarus Second Release Candidate, 1.2RC2

2014-02-14 Thread Luca Olivetti
El 14/02/14 00:21, Mattias Gaertner ha escrit:
 On Thu, 13 Feb 2014 20:17:31 +0100
 Luca Olivetti l...@wetron.es wrote:
 
 [...]
 TBuildManager.DoCheckIfProjectNeedsCompilation icon has changed Project
 /home/luca/Datos/1354_vision_dot/programas_pc/test_plc/project1.ico

 don't know why (I didn't change it but the date changes every time I try
 to run the project).
 
 Fixed. Please test.

It works, thank you!
(Note that I just took ide/buildmanager.pas and ide/projecticon.pas from
svn revision 44062).

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007

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


Re: [Lazarus] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-14 Thread Martin Frb

On 14/02/2014 08:33, Mattias Gaertner wrote:

On Thu, 13 Feb 2014 19:05:57 -0800 (PST)
leledumbo leledumbo_c...@yahoo.co.id wrote:

Reading symbols from /media/LinuxShared/lazarus/lazarus...done.
(gdb) b FPC_RAISEEXCEPTION
Breakpoint 1 at 0x8072f25
(gdb) run
Starting program: /media/LinuxShared/lazarus/lazarus
Fontconfig warning: /etc/fonts/conf.d/50-user.conf, line 14: reading
configurations from ~/.fonts.conf is deprecated.
TMainIDE.ParseCmdLineOptions:
   PrimaryConfigPath=/home/leledumbo/.lazarus
   SecondaryConfigPath=/etc/lazarus
TSourceEditorSharedValues.GetMainLinkScanner not pascal highlighted:
unit1.pas
[TEnvironmentOptions.Save]  error writing
/home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
DOMDocument.CreateElement PackageEditor_
NiceChartD7 0

Strange. It is raising a FPC exception. gdb should break here, but it
does not.

Martin, do you have an idea how this is possible?



Not sure, maybe (Marc pointed that out ot me once) it is the same, why 
the IDE does take the address of RAISE_Exception, and set the break at 
the address.


GDB looks at the assembler of the function and makes a decision where 
the prologue ends. With FPC omitting the stackframe it may get that wrong.


Though I have used the

 b FPC_RAISEEXCEPTION
myself, and it had worked, but it may depend on versions, etc.

Try
info address
b *0x8072f25

--

here is output from gdb I just tried

(gdb) b FPC_RAISEEXCEPTION
Breakpoint 1 at 0x40da33: file ../inc/except.inc, line 195.
(gdb) info address  FPC_RAISEEXCEPTION
Symbol FPC_RAISEEXCEPTION is at 0x40da20 in a file compiled without debugging.
(gdb)


info address is 19 bytes earlier
In my case that is correct (looking at disaasemble), but my FPC was build with 
-O1





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


Re: [Lazarus] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-14 Thread leledumbo
Ah...my bad, my FPC wasn't built with debugging info, only Lazarus was.
Perhaps that could be the problem? But GDB knows when I give b
FPC_RAISEEXCEPTION? OK, this is weird...



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035840.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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


Re: [Lazarus] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-14 Thread Martin Frb

On 14/02/2014 15:23, leledumbo wrote:

Ah...my bad, my FPC wasn't built with debugging info, only Lazarus was.
Perhaps that could be the problem? But GDB knows when I give b
FPC_RAISEEXCEPTION? OK, this is weird...




FPC_RAISEEXCEPTION is declared
Function fpc_RaiseException (Obj : TObject; AnAddr : CodePointer; AFrame : 
Pointer) : TObject;[Public, Alias : 'FPC_RAISEEXCEPTION']; compilerproc;

the alias means it is exported always. But apparently GDB gets it wrong. At 
least for use as breakpoint.


It should work via the address trick. Most users have an RTL without dbg 
info, and yet can debug


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


Re: [Lazarus] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-14 Thread leledumbo
 Anyway I now see, that there is an invalid identifier: 
 NiceChartD7. 
I added check. Please test.

Tested and working. So, what the code would do now if such an invalid
identifier occurs?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035843.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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