Re: [Lazarus] Package does not use my register procedure in the unit

2013-01-07 Thread ik
On Mon, Jan 7, 2013 at 12:34 AM, Mattias Gaertner
nc-gaert...@netcologne.de wrote:
 On Sun, 6 Jan 2013 22:36:37 +0200
 ik ido...@gmail.com wrote:

 Hello,

 I'm creating mini tests to create at the end a split plugin for Lazarus.

 I started doing some experiment with menus[1], and display form, and
 the package does not seems to use my register unit.

 What am I missing or doing wrong ?

 Maybe this helps:
 http://wiki.lazarus.freepascal.org/Lazarus_Packages#The_Register_procedure

Thanks, it works :)



 [1] https://github.com/ik5/split_lazarus/tree/master/tests/ide_info


 Mattias

 --
 ___
 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] FreeBSD 9.1 (i386) and Lazarus IDE 1.0.4 (fpc 2.6.0) fails to start

2013-01-07 Thread Nikos Pasialis
Problem description
--
Unable to start the IDE of Lazarus 1.0.4 (fpc 2.6.0) on a FreeBSD 9.1
(i386) machine.

I have installed Lazarus and fpc through sources from the port under
ports/editors/lazarus on a FreeBSD 9.1 i386 vmware guest. I have installed
the gtk2 interface
Yet is installed :
Lazarus 1.0.4
fpc 2.6.0
(please refer to 'System Information' for more detailed description)

When i try to start the lazarus ide by invoking the command 'lazarus' as a
standard user at the xterminal program under XFCE4  (4.10) the IDE does no
start and I get the following output at the console.
$ lazarus
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $2870B3E4
  $2870D459
  $284067EA
  $284072AD
  $283EBF20
  $283C1013
  $0821E53D
  $081F7A7C
  $0814BFD4
  $0814650E
  $08146375
  $08137F2C
  $08137E43
  $08145F2F
  $08147803
  $0809AABF
TApplication.HandleException Access violation
  Stack trace:
  $2870B3E4
  $2870D459
  $284067EA
  $284072AD
  $283EBF20
  $283C1013
  $0821E53D
  $081F7A7C
  $0814BFD4
  $0814650E
  $08146375
  $08137F2C
  $08137E43
  $08145F2F
  $08147803
  $0809AABF
[FORMS.PP] ExceptionOccurred
An unhandled exception occurred at $2870ADC3 :
EAccessViolation : Access violation
  $2870ADC3
  $2870D459
  $283846BA
  $2838E036
  $28379C08
  $2859DDA8
  $285BB6B9
  $28602D56
  $285887B6
  $285BF26D
  $285BF93D
  $2859FB71
  $285FF4C2
  $2859D111
  $28600678
  $082150AD
  $08215154

The same problem occurs even when invoking the command as root.
I have even compiled and tested through ports the gtk1 and qt interfaces of
lazarus (ports/editors/lazarus) and tried them with the same results.

The Lazarus IDE can not run.


System information
--
*OS: FreeBSD 9.1 i386* (GENERIC kernel) as a VMware guest (VMware Fusion
5.0.2 on Mac OS X 10.8.2)

*fpc: 2.6.0_2*
root@freebsd:/root # fpc -iSO
freebsd
root@freebsd:/root # fpc -iSP
i386
root@freebsd:/root # pkg_info | grep fpc
fpc-2.6.0_2 Free Pascal compiler with Turbo and Delphi
fpc-cairo-2.6.0_1   Free Pascal interface to cairo library
fpc-chm-2.6.0   Free Pascal unit to manipulate chm files
fpc-fastcgi-2.6.0   Free Pascal fastcgi unit
fpc-fcl-async-2.6.0 Free Pascal interface to async library
fpc-fcl-base-2.6.0  Free Pascal Component Library
fpc-fcl-db-2.6.0Free Pascal Component Library
fpc-fcl-image-2.6.0_1 Free Pascal Component Library
fpc-fcl-json-2.6.0  JSON (JavaScript Object Notation) implementation in
FreePas
fpc-fcl-net-2.6.0   Free Pascal Component Library
fpc-fcl-passrc-2.6.0 Free Pascal Component Library
fpc-fcl-process-2.6.0 Free Pascal unit to start and manipulate other
programs
fpc-fcl-registry-2.6.0 Free Pascal Component Library
fpc-fcl-res-2.6.0   Free Pascal Component Library
fpc-fcl-web-2.6.0   Free Pascal Component Library
fpc-fcl-xml-2.6.0   Free Pascal Component Library
fpc-fpmkunit-2.6.0  Free Pascal build system unit
fpc-fppkg-2.6.0 Free Pascal package unit
fpc-gtk1-2.6.0  Free Pascal interface to the GTK libraries
fpc-gtk2-2.6.0_1Free Pascal interface to the GTK2 libraries
fpc-hash-2.6.0  Free Pascal unit for MD5 hash routines
fpc-httpd22-2.6.0   Free Pascal httpd unit
fpc-ibase-2.6.0 Free Pascal interface to interbase
fpc-iconvenc-2.6.0  Free Pascal unit to iconv library
fpc-libcurl-2.6.0   Free Pascal interface to libcurl
fpc-libpng-2.6.0_1  Free Pascal interface to libpng, for reading PNG image
file
fpc-mysql-2.6.0 Free Pascal interface to MySQL
fpc-odbc-2.6.0  Free Pascal interface to ODBC
fpc-opengl-2.6.0_1  Free Pascal interface to the OpenGL library
fpc-oracle-2.6.0Free Pascal interface to Oracle
fpc-pasjpeg-2.6.0   Handling JPEG files with Pascal
fpc-paszlib-2.6.0   Free Pascal unit for native compression IO
fpc-postgres-2.6.0  Free Pascal interface to PostGreSQL
fpc-pthreads-2.6.0  Free Pascal wrapper for the pthreads library
fpc-pxlib-2.6.0 Free Pascal unit to read various Paradox files
fpc-sqlite-2.6.0Free Pascal interface to SQLite
fpc-utils-2.6.0 Free Pascal Compiler utils
fpc-x11-2.6.0   Free Pascal interface to X windows server
fpc-zlib-2.6.0  Free Pascal interface to the zlib compression library

*Lazarus: 1.0.4*
The Lazarus IDE (ports/editors/lazarus) has been installed with the gtk2
interface
root@freebsd:/root # pkg_info | grep lazarus
lazarus-1.0.4   A portable Delphi-like IDE for the FreePascal compiler
lazarus-lcl-gtk2-1.0.4 Lazarus components library - GTK2 backend
lazarus-lcl-units-1.0.4 Lazarus components library units

*gtk:*
$ pkg_info | grep gtk
fpc-gtk1-2.6.0  Free Pascal interface to the GTK libraries
fpc-gtk2-2.6.0_1Free Pascal interface to the GTK2 libraries
gtk-1.2.10_22   Gimp Toolkit for X11 GUI (previous stable version)
gtk-2.24.6_2Gimp Toolkit for X11 GUI (previous stable version)
gtk-3.0.12_2Gimp Toolkit for X11 GUI (current stable version)
gtk-doc-1.15Code documentation system, originally for 

[Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Krzysztof
Hi,

I want attach second databse to sqlite connection by command:

DBConnection.ExecuteDirect('attach database
'+QuotedStr(GetConfigDir+'second.db')+' as mydb2');

But I get error that cannot attach database when on transaction. Even If I
commit transaction first, then ExecuteDirect start new one. How to get
around this?

BTW: Why SQLDB has logic always in transaction? Is it really perform in
large and complex ERP systems? What I was always taught that the
transaction should be used only in specific situtations (importing,
converting documents, FIFO, stock status etc) but whole time? Is not
dangerous? One programmer's mistake (e.g forget commit somewhere, or
transaction conflict etc.) and client can loose bunch of data.

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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Michael Van Canneyt



On Mon, 7 Jan 2013, Krzysztof wrote:


Hi,
I want attach second databse to sqlite connection by command:

DBConnection.ExecuteDirect('attach database 
'+QuotedStr(GetConfigDir+'second.db')+' as mydb2');

But I get error that cannot attach database when on transaction. Even If I 
commit transaction first, then ExecuteDirect start new one. How to get around 
this?


There is currently no way.



BTW: Why SQLDB has logic always in transaction? Is it really perform in large 
and complex ERP systems? What I was always taught that the transaction should
be used only in specific situtations (importing, converting documents, FIFO, 
stock status etc) but whole time? Is not dangerous? One programmer's mistake 
(e.g
forget commit somewhere, or transaction conflict etc.) and client can loose 
bunch of data.


This is the world upside down :)

A transaction is a basic cornerstone of any RDBMS. You must always take care of 
them.

Many RDBMS toolkits try to 'simplify' your life by adding some automated transaction 
handling which hides the details from you.


(whether this is good or not is another debate)

SQLDB currently does not do this. You must take full responsability for the 
transactions.

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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Krzysztof
Ok I found a hack. I created own TMyConnection = class(TSQLite3Connection)
so I have access to protected execsql which don't check transaction:

type

  { TMyConnection }

  TMyConnection = class(TSQLite3Connection)
  public
procedure ExecSQLNoTrans(const ASql: String);
  end;

implementation

procedure TMyConnection.ExecSQLNoTrans(const ASql: String);
begin
  execsql(ASql);
end;

And now I can attach my second database by calling:

DBConnection.ExecSQLNoTrans('attach database
'+QuotedStr(GetConfigDir+'second.db')+' as mydb2');

Each system can be broken ;)

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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Michael Van Canneyt



On Mon, 7 Jan 2013, Krzysztof wrote:


Ok I found a hack. I created own TMyConnection = class(TSQLite3Connection) so I 
have access to protected execsql which don't check transaction:
type

  { TMyConnection }

  TMyConnection = class(TSQLite3Connection)
  public
    procedure ExecSQLNoTrans(const ASql: String);
  end;  

implementation

procedure TMyConnection.ExecSQLNoTrans(const ASql: String);
begin
  execsql(ASql);
end;   

And now I can attach my second database by calling:

    DBConnection.ExecSQLNoTrans('attach database 
'+QuotedStr(GetConfigDir+'second.db')+' as mydb2');

Each system can be broken ;)


Maybe we should make a method for this in TSQLite3Connection ?

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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Krzysztof
2013/1/7 Michael Van Canneyt mich...@freepascal.org


 Maybe we should make a method for this in TSQLite3Connection ?


It would be great. Because without this we can't use all opportunities of
SQLite, like attaching databases or also VACUUM (trim and pack database)
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Michael Van Canneyt



On Mon, 7 Jan 2013, Krzysztof wrote:





2013/1/7 Michael Van Canneyt mich...@freepascal.org

Maybe we should make a method for this in TSQLite3Connection ?


It would be great. Because without this we can't use all opportunities of 
SQLite, like attaching databases or also VACUUM (trim and pack database)


I meant a method 
Procedure AttachDatabase(Const AFileName, AnAlias : String);

?

Other methods can also be added, of course.

Michael.

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


[Lazarus] My Lazarus logo using Inkscape

2013-01-07 Thread Zaher Dirkey
Hi, I want to share my new image for Lazarus logo, i will put it in my
powered by in my application.

http://imagebin.org/242012

https://github.com/parmaja/cliparts/tree/master/lazarus-logo

First i am not an artist, but i worked on it while my brain is offline.
I choose this Creative Commons license for it, (
http://creativecommons.org/licenses/by-nd/3.0/), not sure it it good
license for it.

And it is based on this image, i used it as guide lines to draw my own.
http://nature.ca/notebooks/english/cheetah_p1.htm
I am not a lawyer, so not sure if i break any license for the original
image.

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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Ludo Brands

On 07/01/2013 17:23, Michael Van Canneyt wrote:



On Mon, 7 Jan 2013, Ludo Brands wrote:


On 07/01/2013 16:01, Michael Van Canneyt wrote:



On Mon, 7 Jan 2013, Krzysztof wrote:





2013/1/7 Michael Van Canneyt mich...@freepascal.org

Maybe we should make a method for this in TSQLite3Connection ?


It would be great. Because without this we can't use all 
opportunities of SQLite, like attaching databases or also VACUUM 
(trim and pack database)


I meant a method Procedure AttachDatabase(Const AFileName, AnAlias : 
String);

?

Other methods can also be added, of course.

A method to execute a statement outside a transaction would also be 
useful for the following reasons:


That will have to be database-specific.

For example Firebird does not allow you to execute statements outside 
a transaction.
Firebird starts the transaction implicitly when the transaction hasn't 
started. So a user that uses this new method has to manually commit or 
rollback.
Firebird has virtually no sql commands for maintenance or system 
administration which explains why all SQL statements are running inside 
a transaction.




- Some statements end implicitly a transaction. Ex: 
http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html or all 
oracle DDL statements. sqldb is not aware that the transaction is 
terminated and its state doesn't match the db state.
- You can't make a method for every database command that has to run 
outside a transaction.


Why not ?

Of course you can when you have all the time of the world. A method that 
bypasses sql transaction control covers all cases once it is released. 
Any custom connector method is trunk first and then wait for next 
release to get it production ready.


If they are implemented in the specific connections, I do not see what 
problem there could be with that. Such methods already exist. People 
relying on such constructs should be aware that they are 
database-specific.


Problems arise only if you try to elevate some methods to 
TSQLConnection for something that is not supported by all databases...


Yep. That is exactly what is happening now with the statements that 
implicitly terminate transactions without sqldb knowing about it. 
Firebird behavior has been elevated to TSQLConnection and it is not 
working correctly for all databases.


Ludo

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


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Marcos Douglas
On Sat, Dec 15, 2012 at 4:28 PM, Marcos Douglas m...@delfire.net wrote:
 On Sat, Dec 15, 2012 at 4:02 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El sáb 15-dic-12, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch 
 and breaked band
 A: Waldo Kitty wkitt...@windstream.net, Lazarus mailing list 
 lazarus@lists.lazarus.freepascal.org
 Fecha: sábado, 15 de diciembre de 2012, 9:25
 On Sat, Dec 15, 2012 at 1:09 AM,
 waldo kitty wkitt...@windstream.net
 wrote:
  On 12/14/2012 13:17, Marcos Douglas wrote:
 
  On Fri, Dec 14, 2012 at 8:05 AM, Marcos
 Douglasm...@delfire.net
 wrote:
 
  Hi,
 
  I have a table with a memo field.
  I put a retangle with stretch property True;
 the band is stretch and
  breaked property too.
 
  The question:
  If the info is bigger than a page, how the
 report can continue
  printing in the next page?
 
 
  Not possible or nobody understood?
 
 
  or it is the weekend and those who might are elsewhere?
 ;)
 
  plus, it was only 12hours or so between the first post
 and the second ;)
 
  i would help if i could but i'm still pretty much an
 observer in many
  instances ;)

 You probably right... well, I need this, urgently... but
 you're right. Thanks.

 Marcos Douglas


 There is no sample attached to bug report, please give something that you 
 can reproduce yourself.

 Jesus Reyes A.

 Done.

 Marcos Douglas

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


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Marcos Douglas
On Sat, Dec 15, 2012 at 4:28 PM, Marcos Douglas m...@delfire.net wrote:
 On Sat, Dec 15, 2012 at 4:02 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El sáb 15-dic-12, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch 
 and breaked band
 A: Waldo Kitty wkitt...@windstream.net, Lazarus mailing list 
 lazarus@lists.lazarus.freepascal.org
 Fecha: sábado, 15 de diciembre de 2012, 9:25
 On Sat, Dec 15, 2012 at 1:09 AM,
 waldo kitty wkitt...@windstream.net
 wrote:
  On 12/14/2012 13:17, Marcos Douglas wrote:
 
  On Fri, Dec 14, 2012 at 8:05 AM, Marcos
 Douglasm...@delfire.net
 wrote:
 
  Hi,
 
  I have a table with a memo field.
  I put a retangle with stretch property True;
 the band is stretch and
  breaked property too.
 
  The question:
  If the info is bigger than a page, how the
 report can continue
  printing in the next page?
 
 
  Not possible or nobody understood?
 
 
  or it is the weekend and those who might are elsewhere?
 ;)
 
  plus, it was only 12hours or so between the first post
 and the second ;)
 
  i would help if i could but i'm still pretty much an
 observer in many
  instances ;)

 You probably right... well, I need this, urgently... but
 you're right. Thanks.

 Marcos Douglas


 There is no sample attached to bug report, please give something that you 
 can reproduce yourself.

 Jesus Reyes A.

 Done.

 Marcos Douglas

Jesus,

Do you need more information or tests to finish this bug?

Best regards,
Marcos Douglas

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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Michael Van Canneyt



On Mon, 7 Jan 2013, Ludo Brands wrote:


On 07/01/2013 17:23, Michael Van Canneyt wrote:



On Mon, 7 Jan 2013, Ludo Brands wrote:


On 07/01/2013 16:01, Michael Van Canneyt wrote:



On Mon, 7 Jan 2013, Krzysztof wrote:





2013/1/7 Michael Van Canneyt mich...@freepascal.org

Maybe we should make a method for this in TSQLite3Connection ?


It would be great. Because without this we can't use all opportunities 
of SQLite, like attaching databases or also VACUUM (trim and pack 
database)


I meant a method Procedure AttachDatabase(Const AFileName, AnAlias : 
String);

?

Other methods can also be added, of course.

A method to execute a statement outside a transaction would also be useful 
for the following reasons:


That will have to be database-specific.

For example Firebird does not allow you to execute statements outside a 
transaction.
Firebird starts the transaction implicitly when the transaction hasn't 
started. So a user that uses this new method has to manually commit or 
rollback.


I don't follow ?

Firebird has virtually no sql commands for maintenance or system 
administration which explains why all SQL statements are running inside a 
transaction.


Ah ? Can you name a few ?

- Some statements end implicitly a transaction. Ex: 
http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html or all oracle 
DDL statements. sqldb is not aware that the transaction is terminated and 
its state doesn't match the db state.
- You can't make a method for every database command that has to run 
outside a transaction.


Why not ?

Of course you can when you have all the time of the world. A method that 
bypasses sql transaction control covers all cases once it is released. Any 
custom connector method is trunk first and then wait for next release to get 
it production ready.


Eh ? That is the same for the bypass ?



If they are implemented in the specific connections, I do not see what 
problem there could be with that. Such methods already exist. People 
relying on such constructs should be aware that they are database-specific.


Problems arise only if you try to elevate some methods to TSQLConnection 
for something that is not supported by all databases...


Yep. That is exactly what is happening now with the statements that 
implicitly terminate transactions without sqldb knowing about it.


It would be the same if you had only 1 transaction per connection ?
No single client solution can handle this, unless it knows exactly 
which statements cause this implicit transaction commit ?


Michael.

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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Sven Barth

On 07.01.2013 20:03, Michael Van Canneyt wrote:

- Some statements end implicitly a transaction. Ex:
http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html or all
oracle DDL statements. sqldb is not aware that the transaction is
terminated and its state doesn't match the db state.
- You can't make a method for every database command that has to run
outside a transaction.


Why not ?


Of course you can when you have all the time of the world. A method
that bypasses sql transaction control covers all cases once it is
released. Any custom connector method is trunk first and then wait for
next release to get it production ready.


Eh ? That is the same for the bypass ?



As far as I understand it: the bypass could immediately be used for 
any affacted SQL command once trunk is released (or the fixes version 
with that bypass applied). If however in the other approach some 
commands are forgotten the user has to wait again until the next version 
is released.


Regards,
Sven

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


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Jesus Reyes


--- El lun 7-ene-13, Marcos Douglas m...@delfire.net escribió:
 
 Jesus,
 
 Do you need more information or tests to finish this bug?
 
 Best regards,
 Marcos Douglas
 

No, I'm in the process of testing the fix, will commit it soon.

Jesus Reyes A.

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


[Lazarus] install question from hfiandor 08 jan 2013

2013-01-07 Thread Héctor F . Fiandor Rosario
Dear collegues:

for a long time i have used de version 0.9.27 and now I have downloaded the 
version 1.0 and installed in my PC, but I have maintened the 0.9.27, changing 
the folder name.

I have installed the new one in a folder called c:\lazarus_1.0

when I try to open it for the first time, appears a message asking me for 
upgrade the configuration, but I want to use two versions and it have this 
alternative:



but I don't know how to include the command line parameter and what to modify.

Maybe it is a question of primary school, but I don't know.

thanks in advance for your help,

yours

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu



--

Este mensaje le ha llegado mediante el servicio de correo electronico 
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas


Infomed: http://www.sld.cu/


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


Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Michael Van Canneyt



On Mon, 7 Jan 2013, Sven Barth wrote:


On 07.01.2013 20:03, Michael Van Canneyt wrote:

- Some statements end implicitly a transaction. Ex:
http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html or all
oracle DDL statements. sqldb is not aware that the transaction is
terminated and its state doesn't match the db state.
- You can't make a method for every database command that has to run
outside a transaction.


Why not ?


Of course you can when you have all the time of the world. A method
that bypasses sql transaction control covers all cases once it is
released. Any custom connector method is trunk first and then wait for
next release to get it production ready.


Eh ? That is the same for the bypass ?



As far as I understand it: the bypass could immediately be used for any 
affacted SQL command once trunk is released (or the fixes version with that 
bypass applied). If however in the other approach some commands are forgotten 
the user has to wait again until the next version is released.


Ah yes.

Good point, had not though of that. Well, let's add the bypass then. 
Just need to figure out what to do with Firebird, since it needs transactions.

Probably temporarily creating one and committing it at the end will do.

Michael.

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


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Marcos Douglas
On Mon, Jan 7, 2013 at 6:25 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El lun 7-ene-13, Marcos Douglas m...@delfire.net escribió:

 Jesus,

 Do you need more information or tests to finish this bug?

 Best regards,
 Marcos Douglas


 No, I'm in the process of testing the fix, will commit it soon.

 Jesus Reyes A.

Ok, thank you.

Marcos Douglas

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


Re: [Lazarus] install question from hfiandor 08 jan 2013

2013-01-07 Thread Marcos Douglas
On Tue, Jan 8, 2013 at 2:35 AM, Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu wrote:

 Dear collegues:

 for a long time i have used de version 0.9.27 and now I have downloaded the 
 version 1.0 and installed in my PC, but I have maintened the 0.9.27, changing 
 the folder name.

 I have installed the new one in a folder called c:\lazarus_1.0

 when I try to open it for the first time, appears a message asking me for 
 upgrade the configuration, but I want to use two versions and it have this 
 alternative:


 but I don't know how to include the command line parameter and what to modify.

 Maybe it is a question of primary school, but I don't know.

 thanks in advance for your help,

You should call the lazarus.exe using the prompt.
This is a good idea create a BAT for it.

Marcos Douglas

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


Re: [Lazarus] install question from hfiandor 08 jan 2013

2013-01-07 Thread Mattias Gaertner
On Mon, 7 Jan 2013 16:35:45 -1200
Héctor F. Fiandor Rosario hfian...@infomed.sld.cu wrote:

 Dear collegues:
 
 for a long time i have used de version 0.9.27 and now I have downloaded the 
 version 1.0 and installed in my PC, but I have maintened the 0.9.27, changing 
 the folder name.
 
 I have installed the new one in a folder called c:\lazarus_1.0
 
 when I try to open it for the first time, appears a message asking me for 
 upgrade the configuration, but I want to use two versions and it have this 
 alternative:
 
 
 
 but I don't know how to include the command line parameter and what to modify.

Maybe this helps:
http://support.microsoft.com/kb/140443

Mattias

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


Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-07 Thread William Oliveira Ferreira
I think not as I can see some big differences...

great drawning!

2013/1/7 Zaher Dirkey parm...@gmail.com


 And it is based on this image, i used it as guide lines to draw my own.
 http://nature.ca/notebooks/english/cheetah_p1.htm
 I am not a lawyer, so not sure if i break any license for the original
 image.

 Best Regards
 Zaher Dirkey

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




-- 

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


Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-07 Thread Mattias Gaertner
On Mon, 7 Jan 2013 19:34:21 +0200
Zaher Dirkey parm...@gmail.com wrote:

 Hi, I want to share my new image for Lazarus logo, i will put it in my
 powered by in my application.
 
 http://imagebin.org/242012

Nice!

 
 https://github.com/parmaja/cliparts/tree/master/lazarus-logo
 
 First i am not an artist, but i worked on it while my brain is offline.
 I choose this Creative Commons license for it, (
 http://creativecommons.org/licenses/by-nd/3.0/), not sure it it good
 license for it.
 
 And it is based on this image, i used it as guide lines to draw my own.
 http://nature.ca/notebooks/english/cheetah_p1.htm
 I am not a lawyer, so not sure if i break any license for the original
 image.

AFAIK this depends on the country.

Mattias


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


Re: [Lazarus] install question from hfiandor 08 jan 2013

2013-01-07 Thread Maxim Ganetsky

08.01.2013 8:35, Héctor F. Fiandor Rosario пишет:

Dear collegues:
for a long time i have used de version 0.9.27 and now I have downloaded
the version 1.0 and installed in my PC, but I have maintened the 0.9.27,
changing the folder name.
I have installed the new one in a folder called c:\lazarus_1.0
when I try to open it for the first time, appears a message asking me
for upgrade the configuration, but I want to use two versions and it
have this alternative:
but I don't know how to include the command line parameter and what to
modify.


You can start Lazarus from command prompt (console), either by manually 
entering command or by starting .bat file. Alternatively you can modify 
property of desktop (or Start menu) shortcut which you use to start Lazarus.


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

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