Re: [Lazarus] thread safe

2011-06-30 Thread Lukasz Sokol
On 29/06/2011 16:11, Michael Schnell wrote:
 On 06/28/2011 08:14 PM, Hans-Peter Diettrich wrote:


 I just found a very nice description of some aspects of thread safety in
 http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap02.html#tag_22_02_09_08
 titled Thread-Safety.
 Great.
 
 Niche background information on Posix.
 
 But it does not help regarding the issue of defining a thread-safety paradigm 
 for classes.
 

How is the 'thread safety for classses' different from 
thread safety for any other code ?

L.


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


Re: [Lazarus] non-sensical window repositioning

2011-06-30 Thread Felipe Monteiro de Carvalho
On Fri, Jun 24, 2011 at 10:32 PM, zeljko zel...@holobit.net wrote:
 why fsFullScreen ? IMO, wsFullScreen (WindowState) is more apropriate.

Good idea! I implemented it like that. Now wsFullScreen exists and it
works in gtk2 at the moment.

-- 
Felipe Monteiro de Carvalho

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


[Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Tommi Prami

-Tee-

PPU Loading C:\lazarus\lcl\units\i386-win32\intfgraphics.ppu
PPU Source: intfgraphics.pas not found
Recompiling IntfGraphics, checksum changed for LCLIntf
..\graphics.pp(47,49) Fatal: Can't find unit IntfGraphics used by Graphics


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


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Bart
Which revision?
Which FPC version?
How did you try to rebuild Lazarus?

Bart

On 6/30/11, Tommi Prami groups.tpr...@gmail.com wrote:
 -Tee-

 PPU Loading C:\lazarus\lcl\units\i386-win32\intfgraphics.ppu
 PPU Source: intfgraphics.pas not found
 Recompiling IntfGraphics, checksum changed for LCLIntf
 ..\graphics.pp(47,49) Fatal: Can't find unit IntfGraphics used by Graphics


 --
 ___
 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] Error while compiling latest SVN version

2011-06-30 Thread Tommi Prami

OK, short explanation:

Did everything all over again :

SVN : 31471
FPC : 2.4.4

I run the make of the Lazarus, and then start the IDE (That fart it 
works) then try to run Toos - Build Lazarus with profile ... to get 
all the Packages to build again... (After update... Now it weirdly fails at)

main(.pas)
function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf: TCodeBuffer;
  OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
const
  BufSize = 4096; // allocating mem in 4k chunks helps many mem managers

  ShowCommands: array[TWindowState] of Integer =
(SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);

with message :

...
C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol OnEditButtonClick is 
deprecated
C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol OnEditButtonClick is 
deprecated
C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol OnEditButtonClick is 
deprecated

Compiling package LCLBase 1.0.1 completed
C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User 
defined: Fix implicit pointer conversions

Compiling package LCL 1.0.1 completed
C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15) Warning: An 
inherited method is hidden by TListFilterEdit.Invalidate;
C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint: 
Parameter Done not used

Compiling package LazControls 0.0 completed
Compiling package IDEIntf 1.0 completed
C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58) Hint: 
Parameter User not used

Compiling package sqlite3laz 0.4 completed
Compiling package lnetvisual 0.6.6 completed
Compiling package SynEdit 1.0 completed
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9) 
Warning: Local variable C does not seem to be initialized
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30) Hint: 
Parameter SQL not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3) Hint: 
Local const SSQLOK is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3) Hint: 
Local const SQLSyntaxOK is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3) Hint: 
Local const SSQLError is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3) Hint: 
Local const SSQLSyntaxError is not used
C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint: Parameter 
ResourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint: Parameter 
Filename not used
C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint: Parameter 
SourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint: Parameter 
ResourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit 
SrcEditorIntf not used in registersqldb

Compiling package SQLDBLaz 1.0.1 completed
C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol 
GDBDisassemble is deprecated
C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local variable 
TVNodeStack not used
C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected but 
) found


-Tee-


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


Re: [Lazarus] thread safe

2011-06-30 Thread Hans-Peter Diettrich

Lukasz Sokol schrieb:

On 29/06/2011 16:11, Michael Schnell wrote:

On 06/28/2011 08:14 PM, Hans-Peter Diettrich wrote:


I just found a very nice description of some aspects of thread safety in
http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap02.html#tag_22_02_09_08
titled Thread-Safety.

Great.

Niche background information on Posix.

But it does not help regarding the issue of defining a thread-safety paradigm 
for classes.



How is the 'thread safety for classses' different from 
thread safety for any other code ?


Thread-safety has many facettes. An item may be safe in one aspect, e.g. 
not using global variables, but unsafe in other aspects.


Objects (classes) add further topics to the list of items, that make up 
thread-safety in general.


During the various discussions I got the impression, that thread-safety 
only can be a headline or keyword, that leads to a detailed description 
of thread-related properties or behaviour of the described item.


DoDi


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


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Torsten Bonde Christiansen

Same here.

Happens on both Win32 and Linux x86_64 - i have the same SVN revision.

-Torsten.

On 2011-06-30 11:46, Tommi Prami wrote:

OK, short explanation:

Did everything all over again :

SVN : 31471
FPC : 2.4.4

I run the make of the Lazarus, and then start the IDE (That fart it 
works) then try to run Toos - Build Lazarus with profile ... to get 
all the Packages to build again... (After update... Now it weirdly 
fails at)

main(.pas)
function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf: TCodeBuffer;
  OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
const
  BufSize = 4096; // allocating mem in 4k chunks helps many mem managers

  ShowCommands: array[TWindowState] of Integer =
(SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);

with message :

...
C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol OnEditButtonClick 
is deprecated
C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol OnEditButtonClick 
is deprecated
C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol OnEditButtonClick 
is deprecated

Compiling package LCLBase 1.0.1 completed
C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User 
defined: Fix implicit pointer conversions

Compiling package LCL 1.0.1 completed
C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15) Warning: 
An inherited method is hidden by TListFilterEdit.Invalidate;
C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint: 
Parameter Done not used

Compiling package LazControls 0.0 completed
Compiling package IDEIntf 1.0 completed
C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58) Hint: 
Parameter User not used

Compiling package sqlite3laz 0.4 completed
Compiling package lnetvisual 0.6.6 completed
Compiling package SynEdit 1.0 completed
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9) 
Warning: Local variable C does not seem to be initialized
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30) 
Hint: Parameter SQL not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3) 
Hint: Local const SSQLOK is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3) 
Hint: Local const SQLSyntaxOK is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3) 
Hint: Local const SSQLError is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3) 
Hint: Local const SSQLSyntaxError is not used
C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint: Parameter 
ResourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint: Parameter 
Filename not used
C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint: Parameter 
SourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint: Parameter 
ResourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit 
SrcEditorIntf not used in registersqldb

Compiling package SQLDBLaz 1.0.1 completed
C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol 
GDBDisassemble is deprecated
C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local variable 
TVNodeStack not used
C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected but 
) found


-Tee-


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



--
Our Program who art in Memory, Hello be Thy Name.
Thy Operating System come, Thy Commands be done,
at the Printer as it is on the Screen.

Give us this day our daily Data, and forgive us our I/O Errors as we forgive 
those whose Logic Circuits are faulty. Lead us not into frustration, and 
deliver us from Power Surges,

for Thine is the Algorithm, the Application, and the Solution, looping forever 
and ever.

Return.


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


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Bart
Due to r31470: 
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/forms.pp?root=lazarusr1=31468r2=31470

TWindowState definition has changed.

On 6/30/11, Torsten Bonde Christiansen t...@epidata.dk wrote:
 Same here.

 Happens on both Win32 and Linux x86_64 - i have the same SVN revision.

 -Torsten.

 On 2011-06-30 11:46, Tommi Prami wrote:
 OK, short explanation:

 Did everything all over again :

 SVN : 31471
 FPC : 2.4.4

 I run the make of the Lazarus, and then start the IDE (That fart it
 works) then try to run Toos - Build Lazarus with profile ... to get
 all the Packages to build again... (After update... Now it weirdly
 fails at)
 main(.pas)
 function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf: TCodeBuffer;
   OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
 const
   BufSize = 4096; // allocating mem in 4k chunks helps many mem managers

   ShowCommands: array[TWindowState] of Integer =
 (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);

 with message :

 ...
 C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol OnEditButtonClick
 is deprecated
 Compiling package LCLBase 1.0.1 completed
 C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User
 defined: Fix implicit pointer conversions
 Compiling package LCL 1.0.1 completed
 C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15) Warning:
 An inherited method is hidden by TListFilterEdit.Invalidate;
 C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint:
 Parameter Done not used
 Compiling package LazControls 0.0 completed
 Compiling package IDEIntf 1.0 completed
 C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58) Hint:
 Parameter User not used
 Compiling package sqlite3laz 0.4 completed
 Compiling package lnetvisual 0.6.6 completed
 Compiling package SynEdit 1.0 completed
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9)
 Warning: Local variable C does not seem to be initialized
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30)
 Hint: Parameter SQL not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3)
 Hint: Local const SSQLOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3)
 Hint: Local const SQLSyntaxOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3)
 Hint: Local const SSQLError is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3)
 Hint: Local const SSQLSyntaxError is not used
 C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint: Parameter
 Filename not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint: Parameter
 SourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit
 SrcEditorIntf not used in registersqldb
 Compiling package SQLDBLaz 1.0.1 completed
 C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol
 GDBDisassemble is deprecated
 C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local variable
 TVNodeStack not used
 C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected but
 ) found

 -Tee-


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


 --
 Our Program who art in Memory, Hello be Thy Name.
 Thy Operating System come, Thy Commands be done,
 at the Printer as it is on the Screen.

 Give us this day our daily Data, and forgive us our I/O Errors as we forgive
 those whose Logic Circuits are faulty. Lead us not into frustration, and
 deliver us from Power Surges,

 for Thine is the Algorithm, the Application, and the Solution, looping
 forever and ever.

 Return.


 --
 ___
 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] Error while compiling latest SVN version

2011-06-30 Thread Bart
Filed a bugreport: http://bugs.freepascal.org/view.php?id=19659

Bart

On 6/30/11, Bart bartjun...@gmail.com wrote:
 Due to r31470:
 http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/forms.pp?root=lazarusr1=31468r2=31470

 TWindowState definition has changed.

 On 6/30/11, Torsten Bonde Christiansen t...@epidata.dk wrote:
 Same here.

 Happens on both Win32 and Linux x86_64 - i have the same SVN revision.

 -Torsten.

 On 2011-06-30 11:46, Tommi Prami wrote:
 OK, short explanation:

 Did everything all over again :

 SVN : 31471
 FPC : 2.4.4

 I run the make of the Lazarus, and then start the IDE (That fart it
 works) then try to run Toos - Build Lazarus with profile ... to get
 all the Packages to build again... (After update... Now it weirdly
 fails at)
 main(.pas)
 function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf: TCodeBuffer;
   OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
 const
   BufSize = 4096; // allocating mem in 4k chunks helps many mem managers

   ShowCommands: array[TWindowState] of Integer =
 (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);

 with message :

 ...
 C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol OnEditButtonClick
 is deprecated
 Compiling package LCLBase 1.0.1 completed
 C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User
 defined: Fix implicit pointer conversions
 Compiling package LCL 1.0.1 completed
 C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15) Warning:
 An inherited method is hidden by TListFilterEdit.Invalidate;
 C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint:
 Parameter Done not used
 Compiling package LazControls 0.0 completed
 Compiling package IDEIntf 1.0 completed
 C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58) Hint:
 Parameter User not used
 Compiling package sqlite3laz 0.4 completed
 Compiling package lnetvisual 0.6.6 completed
 Compiling package SynEdit 1.0 completed
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9)
 Warning: Local variable C does not seem to be initialized
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30)
 Hint: Parameter SQL not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3)
 Hint: Local const SSQLOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3)
 Hint: Local const SQLSyntaxOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3)
 Hint: Local const SSQLError is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3)
 Hint: Local const SSQLSyntaxError is not used
 C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint: Parameter
 Filename not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint: Parameter
 SourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit
 SrcEditorIntf not used in registersqldb
 Compiling package SQLDBLaz 1.0.1 completed
 C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol
 GDBDisassemble is deprecated
 C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local variable
 TVNodeStack not used
 C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected but
 ) found

 -Tee-


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


 --
 Our Program who art in Memory, Hello be Thy Name.
 Thy Operating System come, Thy Commands be done,
 at the Printer as it is on the Screen.

 Give us this day our daily Data, and forgive us our I/O Errors as we
 forgive
 those whose Logic Circuits are faulty. Lead us not into frustration, and
 deliver us from Power Surges,

 for Thine is the Algorithm, the Application, and the Solution, looping
 forever and ever.

 Return.


 --
 ___
 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] Error while compiling latest SVN version

2011-06-30 Thread Bart
If you change the line in main.pp to

 ShowCommands: array[TWindowState] of Integer =
   (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED, SW_SHOWFULLSCREEN);

Will it then build?

Bart

On 6/30/11, Bart bartjun...@gmail.com wrote:
 Filed a bugreport: http://bugs.freepascal.org/view.php?id=19659

 Bart

 On 6/30/11, Bart bartjun...@gmail.com wrote:
 Due to r31470:
 http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/forms.pp?root=lazarusr1=31468r2=31470

 TWindowState definition has changed.

 On 6/30/11, Torsten Bonde Christiansen t...@epidata.dk wrote:
 Same here.

 Happens on both Win32 and Linux x86_64 - i have the same SVN revision.

 -Torsten.

 On 2011-06-30 11:46, Tommi Prami wrote:
 OK, short explanation:

 Did everything all over again :

 SVN : 31471
 FPC : 2.4.4

 I run the make of the Lazarus, and then start the IDE (That fart it
 works) then try to run Toos - Build Lazarus with profile ... to get
 all the Packages to build again... (After update... Now it weirdly
 fails at)
 main(.pas)
 function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf: TCodeBuffer;
   OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
 const
   BufSize = 4096; // allocating mem in 4k chunks helps many mem
 managers

   ShowCommands: array[TWindowState] of Integer =
 (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);

 with message :

 ...
 C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol OnEditButtonClick
 is deprecated
 Compiling package LCLBase 1.0.1 completed
 C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User
 defined: Fix implicit pointer conversions
 Compiling package LCL 1.0.1 completed
 C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15) Warning:
 An inherited method is hidden by TListFilterEdit.Invalidate;
 C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint:
 Parameter Done not used
 Compiling package LazControls 0.0 completed
 Compiling package IDEIntf 1.0 completed
 C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58) Hint:
 Parameter User not used
 Compiling package sqlite3laz 0.4 completed
 Compiling package lnetvisual 0.6.6 completed
 Compiling package SynEdit 1.0 completed
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9)
 Warning: Local variable C does not seem to be initialized
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30)
 Hint: Parameter SQL not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3)
 Hint: Local const SSQLOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3)
 Hint: Local const SQLSyntaxOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3)
 Hint: Local const SSQLError is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3)
 Hint: Local const SSQLSyntaxError is not used
 C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint: Parameter
 Filename not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint: Parameter
 SourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit
 SrcEditorIntf not used in registersqldb
 Compiling package SQLDBLaz 1.0.1 completed
 C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol
 GDBDisassemble is deprecated
 C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local variable
 TVNodeStack not used
 C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected but
 ) found

 -Tee-


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


 --
 Our Program who art in Memory, Hello be Thy Name.
 Thy Operating System come, Thy Commands be done,
 at the Printer as it is on the Screen.

 Give us this day our daily Data, and forgive us our I/O Errors as we
 forgive
 those whose Logic Circuits are faulty. Lead us not into frustration, and
 deliver us from Power Surges,

 for Thine is the Algorithm, the Application, and the Solution, looping
 forever and ever.

 Return.


 --
 ___
 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] Error while compiling latest SVN version

2011-06-30 Thread Tommi Prami

Seems to work...

-TP-

On 30.6.2011 14:01, Bart wrote:

If you change the line in main.pp to

  ShowCommands: array[TWindowState] of Integer =
(SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED, SW_SHOWFULLSCREEN);

Will it then build?

Bart

On 6/30/11, Bartbartjun...@gmail.com  wrote:

Filed a bugreport: http://bugs.freepascal.org/view.php?id=19659

Bart

On 6/30/11, Bartbartjun...@gmail.com  wrote:

Due to r31470:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/forms.pp?root=lazarusr1=31468r2=31470

TWindowState definition has changed.

On 6/30/11, Torsten Bonde Christiansent...@epidata.dk  wrote:

Same here.

Happens on both Win32 and Linux x86_64 - i have the same SVN revision.

-Torsten.

On 2011-06-30 11:46, Tommi Prami wrote:

OK, short explanation:

Did everything all over again :

SVN : 31471
FPC : 2.4.4

I run the make of the Lazarus, and then start the IDE (That fart it
works) then try to run Toos -  Build Lazarus with profile ... to get
all the Packages to build again... (After update... Now it weirdly
fails at)
main(.pas)
function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf: TCodeBuffer;
   OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
const
   BufSize = 4096; // allocating mem in 4k chunks helps many mem
managers

   ShowCommands: array[TWindowState] of Integer =
 (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);

with message :

...
C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol OnEditButtonClick
is deprecated
C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol OnEditButtonClick
is deprecated
C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol OnEditButtonClick
is deprecated
Compiling package LCLBase 1.0.1 completed
C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User
defined: Fix implicit pointer conversions
Compiling package LCL 1.0.1 completed
C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15) Warning:
An inherited method is hidden by TListFilterEdit.Invalidate;
C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint:
Parameter Done not used
Compiling package LazControls 0.0 completed
Compiling package IDEIntf 1.0 completed
C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58) Hint:
Parameter User not used
Compiling package sqlite3laz 0.4 completed
Compiling package lnetvisual 0.6.6 completed
Compiling package SynEdit 1.0 completed
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9)
Warning: Local variable C does not seem to be initialized
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30)
Hint: Parameter SQL not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3)
Hint: Local const SSQLOK is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3)
Hint: Local const SQLSyntaxOK is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3)
Hint: Local const SSQLError is not used
C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3)
Hint: Local const SSQLSyntaxError is not used
C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint: Parameter
ResourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint: Parameter
Filename not used
C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint: Parameter
SourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint: Parameter
ResourceName not used
C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit
SrcEditorIntf not used in registersqldb
Compiling package SQLDBLaz 1.0.1 completed
C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol
GDBDisassemble is deprecated
C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local variable
TVNodeStack not used
C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected but
) found

-Tee-


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


--
Our Program who art in Memory, Hello be Thy Name.
Thy Operating System come, Thy Commands be done,
at the Printer as it is on the Screen.

Give us this day our daily Data, and forgive us our I/O Errors as we
forgive
those whose Logic Circuits are faulty. Lead us not into frustration, and
deliver us from Power Surges,

for Thine is the Algorithm, the Application, and the Solution, looping
forever and ever.

Return.


--
___
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 mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Bart
I just tried that myself and it seems to work.
I attached a patch in the bugtracker.

Bart

On 6/30/11, Bart bartjun...@gmail.com wrote:
 If you change the line in main.pp to

  ShowCommands: array[TWindowState] of Integer =
(SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED, SW_SHOWFULLSCREEN);

 Will it then build?

 Bart

 On 6/30/11, Bart bartjun...@gmail.com wrote:
 Filed a bugreport: http://bugs.freepascal.org/view.php?id=19659

 Bart

 On 6/30/11, Bart bartjun...@gmail.com wrote:
 Due to r31470:
 http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/forms.pp?root=lazarusr1=31468r2=31470

 TWindowState definition has changed.

 On 6/30/11, Torsten Bonde Christiansen t...@epidata.dk wrote:
 Same here.

 Happens on both Win32 and Linux x86_64 - i have the same SVN revision.

 -Torsten.

 On 2011-06-30 11:46, Tommi Prami wrote:
 OK, short explanation:

 Did everything all over again :

 SVN : 31471
 FPC : 2.4.4

 I run the make of the Lazarus, and then start the IDE (That fart it
 works) then try to run Toos - Build Lazarus with profile ... to get
 all the Packages to build again... (After update... Now it weirdly
 fails at)
 main(.pas)
 function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf:
 TCodeBuffer;
   OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
 const
   BufSize = 4096; // allocating mem in 4k chunks helps many mem
 managers

   ShowCommands: array[TWindowState] of Integer =
 (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);

 with message :

 ...
 C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol OnEditButtonClick
 is deprecated
 C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol OnEditButtonClick
 is deprecated
 Compiling package LCLBase 1.0.1 completed
 C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User
 defined: Fix implicit pointer conversions
 Compiling package LCL 1.0.1 completed
 C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15) Warning:
 An inherited method is hidden by TListFilterEdit.Invalidate;
 C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint:
 Parameter Done not used
 Compiling package LazControls 0.0 completed
 Compiling package IDEIntf 1.0 completed
 C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58) Hint:
 Parameter User not used
 Compiling package sqlite3laz 0.4 completed
 Compiling package lnetvisual 0.6.6 completed
 Compiling package SynEdit 1.0 completed
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9)
 Warning: Local variable C does not seem to be initialized
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30)
 Hint: Parameter SQL not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3)
 Hint: Local const SSQLOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3)
 Hint: Local const SQLSyntaxOK is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3)
 Hint: Local const SSQLError is not used
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3)
 Hint: Local const SSQLSyntaxError is not used
 C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint: Parameter
 Filename not used
 C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint: Parameter
 SourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint: Parameter
 ResourceName not used
 C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit
 SrcEditorIntf not used in registersqldb
 Compiling package SQLDBLaz 1.0.1 completed
 C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol
 GDBDisassemble is deprecated
 C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local variable
 TVNodeStack not used
 C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected but
 ) found

 -Tee-


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


 --
 Our Program who art in Memory, Hello be Thy Name.
 Thy Operating System come, Thy Commands be done,
 at the Printer as it is on the Screen.

 Give us this day our daily Data, and forgive us our I/O Errors as we
 forgive
 those whose Logic Circuits are faulty. Lead us not into frustration,
 and
 deliver us from Power Surges,

 for Thine is the Algorithm, the Application, and the Solution, looping
 forever and ever.

 Return.


 --
 ___
 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] Error while compiling latest SVN version

2011-06-30 Thread silvioprog
This problem is also happening to me:

http://imagebin.org/160713

Lazarus 0.9.31 r31428 FPC 2.5.1 i386-win32-win32/win64

-- 
Silvio Clécio
===
Blog - silvioprog.com.br
Twitter - twitter.com/silvioprog
LazSolutions - code.google.com/p/lazsolutions
LazWebSolutions - code.google.com/p/lazwebsolutions
Lazarus-BR - groups.google.com.br/group/lazarus-br?hl=pt-BR
===
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] thread safe

2011-06-30 Thread Lukasz Sokol
On 30/06/2011 11:14, Hans-Peter Diettrich wrote:
 Lukasz Sokol schrieb:
[...]
 
 How is the 'thread safety for classses' different from thread
 safety for any other code ?
 
 Thread-safety has many facettes. An item may be safe in one aspect,
 e.g. not using global variables, but unsafe in other aspects.

If it is unsafe in other aspects then it is unsafe, right?
(modulo what you actually need, but AFAIR there is not much too pickchoose 
from,
because they are related and some of them imply others ?)

 
 Objects (classes) add further topics to the list of items, that make
 up thread-safety in general.

After compilation, it's just code, isn't it? 
Classes may have the 'hidden' variables but they're not 'hidden' to the
OS/CPU ?

 
 During the various discussions I got the impression, that
 thread-safety only can be a headline or keyword, that leads to a
 detailed description of thread-related properties or behaviour of the
 described item.
 
AFAIR, code (whatever way you write it) can either BE safe or NOT, no
half measyres here - any one of the 'properties' vel 'aspects' not 
complied with, and you can't name your code thread-safe.

It may be a headline or keyword, but it should list ALL the things one
need to be aware of when writing multi-threaded code?

That's my view.

 DoDi
 



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


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Dirk
The change also breaks AnchorDocking package:

Compiling anchordockpkg.pas
Compiling anchordocking.pas
Compiling anchordockstorage.pas
C:\dev\lazarus_trunk\examples\anchordocking\anchordockstorage.pas(266,5)
Error: Expected another 1 array elements

Code:
  ADLWindowStateNames: array[TWindowState] of string = (
'Normal',
'Minimized',
'Maximized'
);


Dirk.



 -Original Message-
 From: Bart [mailto:bartjun...@gmail.com]
 Sent: Thursday, June 30, 2011 12:28 PM
 To: Lazarus mailing list
 Subject: Re: [Lazarus] Error while compiling latest SVN version
 
 I just tried that myself and it seems to work.
 I attached a patch in the bugtracker.
 
 Bart
 
 On 6/30/11, Bart bartjun...@gmail.com wrote:
  If you change the line in main.pp to
 
   ShowCommands: array[TWindowState] of Integer =
 (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED, SW_SHOWFULLSCREEN);
 
  Will it then build?
 
  Bart
 
  On 6/30/11, Bart bartjun...@gmail.com wrote:
  Filed a bugreport: http://bugs.freepascal.org/view.php?id=19659
 
  Bart
 
  On 6/30/11, Bart bartjun...@gmail.com wrote:
  Due to r31470:
  http://svn.freepascal.org/cgi-
 bin/viewvc.cgi/trunk/lcl/forms.pp?root=lazarusr1=31468r2=31470
 
  TWindowState definition has changed.
 
  On 6/30/11, Torsten Bonde Christiansen t...@epidata.dk wrote:
  Same here.
 
  Happens on both Win32 and Linux x86_64 - i have the same SVN
 revision.
 
  -Torsten.
 
  On 2011-06-30 11:46, Tommi Prami wrote:
  OK, short explanation:
 
  Did everything all over again :
 
  SVN : 31471
  FPC : 2.4.4
 
  I run the make of the Lazarus, and then start the IDE (That fart
 it
  works) then try to run Toos - Build Lazarus with profile ...
 to get
  all the Packages to build again... (After update... Now it
 weirdly
  fails at)
  main(.pas)
  function TMainIDE.DoLoadLFM(AnUnitInfo: TUnitInfo; LFMBuf:
  TCodeBuffer;
OpenFlags: TOpenFlags; CloseFlags: TCloseFlags): TModalResult;
  const
BufSize = 4096; // allocating mem in 4k chunks helps many mem
  managers
 
ShowCommands: array[TWindowState] of Integer =
  (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);
 
  with message :
 
  ...
  C:\lazarus\lcl\grids.pas(5854,38) Warning: Symbol
 OnEditButtonClick
  is deprecated
  C:\lazarus\lcl\grids.pas(6088,34) Warning: Symbol
 OnEditButtonClick
  is deprecated
  C:\lazarus\lcl\grids.pas(6089,24) Warning: Symbol
 OnEditButtonClick
  is deprecated
  Compiling package LCLBase 1.0.1 completed
  C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User
  defined: Fix implicit pointer conversions
  Compiling package LCL 1.0.1 completed
  C:\lazarus\components\lazcontrols\listfilteredit.pas(64,15)
 Warning:
  An inherited method is hidden by TListFilterEdit.Invalidate;
  C:\lazarus\components\lazcontrols\listfilteredit.pas(24,43) Hint:
  Parameter Done not used
  Compiling package LazControls 0.0 completed
  Compiling package IDEIntf 1.0 completed
  C:\lazarus\components\sqlite\sqlitecomponenteditor.pas(63,58)
 Hint:
  Parameter User not used
  Compiling package sqlite3laz 0.4 completed
  Compiling package lnetvisual 0.6.6 completed
  Compiling package SynEdit 1.0 completed
 
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(227,9)
  Warning: Local variable C does not seem to be initialized
 
 C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(57,30)
  Hint: Parameter SQL not used
  C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(82,3)
  Hint: Local const SSQLOK is not used
  C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(83,3)
  Hint: Local const SQLSyntaxOK is not used
  C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(84,3)
  Hint: Local const SSQLError is not used
  C:\lazarus\components\sqldb\sqlstringspropertyeditordlg.pas(85,3)
  Hint: Local const SSQLSyntaxError is not used
  C:\lazarus\components\sqldb\registersqldb.pas(92,38) Hint:
 Parameter
  ResourceName not used
  C:\lazarus\components\sqldb\registersqldb.pas(93,33) Hint:
 Parameter
  Filename not used
  C:\lazarus\components\sqldb\registersqldb.pas(93,43) Hint:
 Parameter
  SourceName not used
  C:\lazarus\components\sqldb\registersqldb.pas(94,27) Hint:
 Parameter
  ResourceName not used
  C:\lazarus\components\sqldb\registersqldb.pas(63,16) Hint: Unit
  SrcEditorIntf not used in registersqldb
  Compiling package SQLDBLaz 1.0.1 completed
  C:\lazarus\debugger\gdbmidebugger.pp(6547,107) Warning: Symbol
  GDBDisassemble is deprecated
  C:\lazarus\packager\packageeditor.pas(1636,3) Note: Local
 variable
  TVNodeStack not used
  C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, , expected
 but
  ) found
 
  -Tee-
 
 
  --
  ___
  Lazarus mailing list
  Lazarus@lists.lazarus.freepascal.org
  http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
 
 
  --
  Our Program who art in Memory, Hello be Thy Name.
  Thy Operating System come, Thy Commands be done,
  at the Printer as it is on the Screen.
 
  Give us this 

Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Dirk
Submitted bug report + patch for Anchordocking:
http://bugs.freepascal.org/view.php?id=19660

Dirk.


 -Original Message-
 From: Dirk [mailto:dirk.l...@dirksweb.com]
 Sent: Thursday, June 30, 2011 1:47 PM
 To: 'Lazarus mailing list'
 Subject: RE: [Lazarus] Error while compiling latest SVN version
 
 The change also breaks AnchorDocking package:
 
 Compiling anchordockpkg.pas
 Compiling anchordocking.pas
 Compiling anchordockstorage.pas
 C:\dev\lazarus_trunk\examples\anchordocking\anchordockstorage.pas(266,5
 )
 Error: Expected another 1 array elements
 
 Code:
   ADLWindowStateNames: array[TWindowState] of string = (
 'Normal',
 'Minimized',
 'Maximized'
 );
 
 
 Dirk.
 



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


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread silvioprog
2011/6/30 Dirk dirk.l...@dirksweb.com:
 Submitted bug report + patch for Anchordocking:
 http://bugs.freepascal.org/view.php?id=19660

 Dirk.

Solved.

Lazarus 0.9.31 r31477 FPC 2.5.1 i386-win32-win32/win64

-- 
Silvio Clécio
===
Blog - silvioprog.com.br
Twitter - twitter.com/silvioprog
LazSolutions - code.google.com/p/lazsolutions
LazWebSolutions - code.google.com/p/lazwebsolutions
Lazarus-BR - groups.google.com.br/group/lazarus-br?hl=pt-BR
===
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] thread safe

2011-06-30 Thread Michael Schnell

On 06/30/2011 10:09 AM, Lukasz Sokol wrote:

On 29/06/2011 16:11, Michael Schnell wrote:
How is the 'thread safety for classses' different from
thread safety for any other code ?

This already has been discussed in this thread previously.

-Michael

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


Re: [Lazarus] thread safe

2011-06-30 Thread Michael Schnell

On 06/30/2011 01:53 PM, Lukasz Sokol wrote:


After compilation, it's just code, isn't it?
Yep but the programmer that writes the code using an existing object and 
reading it's docs does not see the code after compilation. He is 
inclined to consider the functions of multiple instances of a class to 
be unrelated code which might or might not be appropriate, depending on 
the classes internals. (Or anther programmer thinks the code is related, 
which might in fact be too restrictive.)


-Michael

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


Re: [Lazarus] thread safe

2011-06-30 Thread Michael Schnell

On 06/30/2011 01:53 PM, Lukasz Sokol wrote:


AFAIR, code (whatever way you write it) can either BE safe or NOT, no
half measyres here - any one of the 'properties' vel 'aspects' not
complied with, and you can't name your code thread-safe.
A function easily can be thread safe _only_ if a parameter of same is 
different for each thread:


var
 a array [0...10] of Integer;
Function x(i);
begin
  a[i] := a[i] + 1;
end;

A very likely case with the hidden self parameter of class instances.

-Michael

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


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread zeljko
On Thursday 30 of June 2011 15:10:08 Dirk wrote:
 Submitted bug report + patch for Anchordocking:
 http://bugs.freepascal.org/view.php?id=19660

I've applied your patch.
thanks
zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Codetools confused?

2011-06-30 Thread Bart
On 3/27/11, Bart bartjun...@gmail.com wrote:
 On 3/27/11, Mattias Gaertner nc-gaert...@netcologne.de wrote:
 ATM I cannot reproduce the popup after a dot in a text constant, I'll
 make another screenshot when it happens again (and I rember to do so).

Codetools still pop up when I type a period in a string constant (but
only (it seems) if the string constant is already enclosed in single
quotes).

See attached image.

Lazarus r31473M/fpc 2.4.4


Bart
attachment: codetools-confusion-2.png--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error while compiling latest SVN version

2011-06-30 Thread Dirk
From: zeljko [mailto:zel...@holobit.net] 
Sent: Thursday, June 30, 2011 2:56 PM
To: Lazarus mailing list
Subject: Re: [Lazarus] Error while compiling latest SVN version

On Thursday 30 of June 2011 15:10:08 Dirk wrote:
 Submitted bug report + patch for Anchordocking:
 http://bugs.freepascal.org/view.php?id=19660

I've applied your patch.


Thanks zeljko. I closed the bug report.

Dirk.



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


[Lazarus] barchart demo...

2011-06-30 Thread waldo kitty


win2k i386
Laz 0.9.31 SVN r31426
FPC 2.4.5 SVN runknown

when i attempt to run laz/examples/barchart/chartdemo.lpi i'm told that it 
cannot find the chart unit specified in the uses clause... am i missing a 
required package installed to my ide or is something else amiss?



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


Re: [Lazarus] barchart demo...

2011-06-30 Thread Alexander Klenin
On Fri, Jul 1, 2011 at 02:06, waldo kitty wkitt...@windstream.net wrote:

 win2k i386
 Laz 0.9.31 SVN r31426
 FPC 2.4.5 SVN runknown

 when i attempt to run laz/examples/barchart/chartdemo.lpi i'm told that it
 cannot find the chart unit specified in the uses clause... am i missing a
 required package installed to my ide or is something else amiss?

TBarChart is deprecated, please use TAChart instead.
(BTW, maybe it is time to remove the example, or at least mark it in some way?)

-- 
Alexander S. Klenin

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


Re: [Lazarus] barchart demo...

2011-06-30 Thread waldo kitty

On 6/30/2011 11:08, Alexander Klenin wrote:

On Fri, Jul 1, 2011 at 02:06, waldo kittywkitt...@windstream.net  wrote:


win2k i386
Laz 0.9.31 SVN r31426
FPC 2.4.5 SVN runknown

when i attempt to run laz/examples/barchart/chartdemo.lpi i'm told that it
cannot find the chart unit specified in the uses clause... am i missing a
required package installed to my ide or is something else amiss?


TBarChart is deprecated, please use TAChart instead.


ahhh... i was just going thru compiling the demos to see what they do and how 
they are coded... this is one of several that i have problems with... i'm going 
to try to report each as i find them but sometimes i'm on another machine 
without access to email and this list...



(BTW, maybe it is time to remove the example, or at least mark it in some way?)


i would at least add something to the header... if TBarChart is deprecated it 
appears that it may already be removed since my systems cannot find it... if it 
is already removed, yes, i'd remove the examples/barchart directory and all 
files it contains...


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


Re: [Lazarus] Codetools confused?

2011-06-30 Thread Mattias Gaertner



 Bart bartjun...@gmail.com hat am 30. Juni 2011 um 16:29 geschrieben:

  On 3/27/11, Bart bartjun...@gmail.com wrote:
   On 3/27/11, Mattias Gaertner nc-gaert...@netcologne.de wrote:
   ATM I cannot reproduce the popup after a dot in a text constant, I'll
   make another screenshot when it happens again (and I rember to do so).
 
  Codetools still pop up when I type a period in a string constant (but
  only (it seems) if the string constant is already enclosed in single
  quotes).
 
  See attached image.
 
  Lazarus r31473M/fpc 2.4.4

 Please create a bug report. 
Mattias
 --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] thread safe

2011-06-30 Thread Hans-Peter Diettrich

Lukasz Sokol schrieb:


Objects (classes) add further topics to the list of items, that make
up thread-safety in general.


After compilation, it's just code, isn't it? 
Classes may have the 'hidden' variables but they're not 'hidden' to the

OS/CPU ?


Objects include information, that may be subject to race conditions, 
deadlocks and other unwanted things. A thread-safe definition for 
procedures covers nothing of what applies to thread-safe objects.


DoDi


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


[Lazarus] TStringGrid - ColResize on FixedCols (or Freeze Pane on ordinary columns)

2011-06-30 Thread Alexsander Rosa
TStringGrid - ColResize on FixedCols (or Freeze Pane on ordinary columns).
Is it possible? I would like to resize a column that is one of the FixedCols
-- but I need the freeze pane feature.

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


Re: [Lazarus] TStringGrid - ColResize on FixedCols (or Freeze Pane on ordinary columns)

2011-06-30 Thread Michael Van Canneyt



On Thu, 30 Jun 2011, Alexsander Rosa wrote:


TStringGrid - ColResize on FixedCols (or Freeze Pane on ordinary columns).
Is it possible? I would like to resize a column that is one of the FixedCols -- but I 
need the freeze pane feature.


This one I would REALLY like myself. A serious shortcoming of the grid. 
(in Delphi as well)


Michael.

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


[Lazarus] IDE flaws

2011-06-30 Thread Hans-Peter Diettrich

Currently I observe the following flaws (Win7):

1) An editor page in a secondary editor window *only* can be cloned into 
a new window. Why does the handling of secondary editor windows differ 
from the handling of the primary window???


2) Code completion still gets stuck all the time. The list is either 
blanked, or contains only Bad... entries.


3) Possibly related to secondary editor windows: a code template 
invocation (^J) can end up in a different window (previously active?). 
In most cases it helps to switch to an different tab/file in the 
originating window, and back again.


4) In IdeWindowIntf TIDEWindowCreator.GetDefaultBounds(), relative 
window extents are computed in a wrong way. In both horizontal and 
vertical direction the lines


if aRight0 then
  aRight:=ScreenR.Right-aRight // relative to right of screen

should be corrected into
  aRight:=ScreenR.Right + aRight // relative to right of screen
because aRight/aBottom is already negative!

DoDi


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