Re: [lazarus] Patch for reading LRE encoded BMP files

2008-02-01 Thread Horacio Jamilis
Sorry to ask before searching on the code base but... is there code to 
ENCODE RLE BMP files?


I am building a support aplication (something like VNC with some 
aditional things we need)...


Thanks.

Horacio

Sebastian Günther escribió:

Hi *,

attached is a small patch which enables the LCL to read RLE encoded 
BMP files (successfully tested with some hundreds of small 8 bpp 
bitmaps, 4 bpp should work as well).


Maybe somebody wants to commit this small patch :)

Diff is against Lazarus 0.9.24


Regards,

Sebastian


__ Información de NOD32, revisión 2841 (20080131) __

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.com



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Internal debugger for Lazarus

2008-01-15 Thread Horacio Jamilis

I was thinking exactly the same

Yesterday I was talking about Lazarus to one of my clients, and he asked 
me why I am steel using Delphi... and the my answer was:


1) The internal debugger is not as usefull as the Delphi one...
The most important missing feature is the Object support (evaluate or 
modify property values, or call methods while debugging).
2) Some thirty party components that are not currently available 
(currently I am using mostly JVCL)


For me the debugger is the most important missing part...

Is anybody working on a internal debugger for lazarus?
Did anybody started such a project yet?
Does anybody have something to start from?

Thanks!

Horacio

Bogus?aw Brandys escribió:

Peter Vreman wrote:

If the debugger gdb can support the dwarf debug info the size of the
binary will be already a lot
smaller. So it isn't a problem of FPC but of the debuggers what 
debuginfo

is supported. See below
what the difference on the lazarus binary:

~/lazarus ls -l lazarus-*
-rwxr-xr-x 1 pvreman kmem 25630931 Jan 15 13:00 lazarus-dwarf
-rwxr-xr-x 1 pvreman kmem 74177091 Jan 15 13:02 lazarus-stabs
-rwxr-xr-x 1 pvreman kmem 9423528 Jan 15 13:00 lazarus-stripped



So why do not use the dwarf debug format (excuse my ignorance) ?


First: Please reply at the bottom of the messages.

The answer to your question was already in my reply quoted above. The 
debugger gdb support for
dwarf was not good enough and not supported on all platforms 
(especially windows). It is
improving, but it needs to be tested well before we can make dwarf 
debuginfo for some platforms

the default in fpc.

Peter



We need a native debugger support for FPC/Lazarus programs on all 
platforms.That's the big issue everyone seems to avoid talking about...


Boguslaw


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [fpc-devel] Invalid field size : 8

2008-01-10 Thread Horacio Jamilis

It seems that the Size field shoud be 0 (zero) for numeric fields...
The size property of TField have different meanings for the different 
field types.


So, you should not set the size property of an Integer field to anything 
(the default 0 value is correct).


Hope this helps.

Horacio


As you can see problem is with setting TField.Size to 8 for ftInteger 
field , but I've also modified code to force Size of ftInteger to 4  
and error still persisted.


questions:

Is that a bug inside fields.inc or just  a calling layer must prepare 
TFieldDef to avoid this exception ? Is that a known problem ?



Regards
Boguslaw Brandys


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Help installing package rxnew 1.1.5.98

2007-12-29 Thread Horacio Jamilis


I tried before my post downloading windres from cygwin... but without 
success...


Now worked!

Thanks!

Horacio

Vincent Snijders escribió:

Horacio Jamilis schreef:

Hi,

I am trying to install the rxnew package without success (I already 
have most availables packages from ccr).
But I have a link error when I install this package. If I uninstall 
it, lazarus links properly.
I was unable to understand where the problem is. I was unable to find 
any reference to fpc-res.res from this package...


Any help is appreciated.



You need to update windres. Easiest is to get a fpc 2.2.0 install, 
which contains these updated binaries, but they can be found in the 
fpcbuild svn repository too.


Vincent


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Help installing package rxnew 1.1.5.98

2007-12-28 Thread Horacio Jamilis

Hi,

I am trying to install the rxnew package without success (I already have 
most availables packages from ccr).
But I have a link error when I install this package. If I uninstall it, 
lazarus links properly.
I was unable to understand where the problem is. I was unable to find 
any reference to fpc-res.res from this package...


Any help is appreciated.

I have rxnew from the ccr svn server (v1.1.5.98), lazarus SVN v0.9.25 
r13493 i386-win32-win32/win64, and fpc 2.2.1 from svn.


When I compile the package it compiles just fine. The complete output is:

Hint: Start of reading config file E:\lazarus\pp\bin\i386-win32\fpc.cfg
Hint: End of reading config file E:\lazarus\pp\bin\i386-win32\fpc.cfg
Warning: You are using the obsolete switch -OG
Free Pascal Compiler version 2.2.1 [2007/12/27] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling rxnew.pas
rxnew.pas(10,11) Hint: Unit rxlookup not used in rxnew
rxnew.pas(10,31) Hint: Unit dateutil not used in rxnew
rxnew.pas(10,40) Hint: Unit dbutils not used in rxnew
rxnew.pas(10,62) Hint: Unit rxdconst not used in rxnew
rxnew.pas(10,74) Hint: Unit rxstrutils not used in rxnew
rxnew.pas(11,15) Hint: Unit dbdateedit not used in rxnew
rxnew.pas(11,37) Hint: Unit curredit not used in rxnew
rxnew.pas(11,51) Hint: Unit folderlister not used in rxnew
rxnew.pas(11,70) Hint: Unit rxmemds not used in rxnew
rxnew.pas(12,13) Hint: Unit duallist not used in rxnew
rxnew.pas(12,23) Hint: Unit boxprocs not used in rxnew
rxnew.pas(12,43) Hint: Unit rxswitch not used in rxnew
rxnew.pas(12,51) Hint: Unit rxdice not used in rxnew
rxnew.pas(12,61) Hint: Unit rxdbcomb not used in rxnew
rxnew.pas(12,72) Hint: Unit rxtoolbar not used in rxnew
rxnew.pas(13,34) Hint: Unit rxxpman not used in rxnew
rxnew.pas(13,44) Hint: Unit pagemngr not used in rxnew
rxnew.pas(13,55) Hint: Unit rxappicon not used in rxnew
rxnew.pas(13,74) Hint: Unit rxctrls not used in rxnew
rxnew.pas(14,65) Hint: Unit rxpopupunit not used in rxnew
rxnew.pas(15,23) Hint: Unit rxcustomchartpanel not used in rxnew
rxnew.pas(15,47) Hint: Unit AutoPanel not used in rxnew
rxnew.pas(15,66) Hint: Unit rxiconv not used in rxnew
rxnew.pas(16,25) Hint: Unit rxceEditLookupFields not used in rxnew
27 lines compiled, 0.7 sec
1 warning(s) issued
26 hint(s) issued
Compiling package rxnew 1.1.5.98 completed

When I copy all and hidden messages (from the lazarus message window) 
this is what I get:


E:\lazarus\pp\bin\i386-win32\make.exe: Entering directory 
`E:/lazarus/laz_svn'

E:/lazarus/pp/bin/i386-win32/make.exe -C ide ide
make.exe[1]: Entering directory `E:/lazarus/laz_svn/ide'
E:/lazarus/pp/bin/i386-win32/make.exe --assume-new=lazarus.pp 
lazarus.exe OPT=' -WG -Cn -FEE:\lazarus\laz_svn -olazarus.new.exe'

make.exe[2]: Entering directory `E:/lazarus/laz_svn/ide'
E:/lazarus/pp/bin/i386-win32/ppc386.exe -gl -Fu../lcl/units/i386-win32 
-Fu../lcl/units/i386-win32/win32 
-Fu../components/codetools/units/i386-win32 
-Fu../components/synedit/units/i386-win32 -Fu../components/custom 
-Fu../components/mpaslex -Fu../ideintf/units/i386-win32 -Fu../designer 
-Fu../designer/jitform/units/i386-win32 -Fu../debugger -Fu../converter 
-Fu../packager -Fu../packager/units/i386-win32 -Fu../units/i386-win32 
-Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. 
-FU../units/i386-win32 -WG -Cn -FEE:\lazarus\laz_svn -olazarus.new.exe 
-di386 lazarus.pp

Hint: End of reading config file E:\lazarus\pp\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.2.1 [2007/12/27] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling lazarus.pp
Closing script E:\lazarus\laz_svn\ppas.bat
155 lines compiled, 1.4 sec
2 hint(s) issued
make.exe[2]: Leaving directory `E:/lazarus/laz_svn/ide'
make.exe[1]: Leaving directory `E:/lazarus/laz_svn/ide'
E:\lazarus\pp\bin\i386-win32\make.exe: Leaving directory 
`E:/lazarus/laz_svn'

Compilar IDE (sin enlazado) completed
E:\lazarus\pp\bin\i386-win32\make.exe: Entering directory 
`E:/lazarus/laz_svn'

E:/lazarus/pp/bin/i386-win32/make.exe -C ide ide
make.exe[1]: Entering directory `E:/lazarus/laz_svn/ide'
E:/lazarus/pp/bin/i386-win32/make.exe --assume-new=lazarus.pp 
lazarus.exe OPT=' -WG @E:\lazarus\laz_svn\idemake.cfg'

make.exe[2]: Entering directory `E:/lazarus/laz_svn/ide'
E:/lazarus/pp/bin/i386-win32/ppc386.exe -gl -Fu../lcl/units/i386-win32 
-Fu../lcl/units/i386-win32/win32 
-Fu../components/codetools/units/i386-win32 
-Fu../components/synedit/units/i386-win32 -Fu../components/custom 
-Fu../components/mpaslex -Fu../ideintf/units/i386-win32 -Fu../designer 
-Fu../designer/jitform/units/i386-win32 -Fu../debugger -Fu../converter 
-Fu../packager -Fu../packager/units/i386-win32 -Fu../units/i386-win32 
-Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. 
-FU../units/i386-win32 -WG @E:\lazarus\laz_svn\idemake.cfg -di386 lazarus.pp

Hint: End of reading config file E:\lazarus\pp\bin\i386-win32\fpc.cfg
Hint: Start of reading config file 

[lazarus] Two little problems - revision.inc and rxnew package

2007-11-08 Thread Horacio Jamilis

Hi,

I have two problems trying to use lazarus...

1) The first... just a curiosity but... in the about dialog, for the 
last monthes, I can´t see the revision number of my lazarus app.
   It don´t stop lazarus from working so is low priority... buy nice to 
have...


2) The seccond... I am trying to install the rxnew package downloaded 
from the ccr svn repository (updated today) but the tooledit.lrs file 
didn´t existed...
   i created it (with lazres -compiled today too-) and copied the 
generated tooledit.lrs with the tooledit.pas file.
   After that, when I compile the package it compiles fine... but when 
I try to install it I have:


Compilar IDE (sin enlazado) completed
staticpackages.inc(2,16) Hint: Unit lhelpcontrolpkg not used in Lazarus
staticpackages.inc(4,12) Hint: Unit lnetpackage not used in Lazarus
staticpackages.inc(21,10) Hint: Unit JvCoreLaz not used in Lazarus
windres: e:\lazarus\pp\bin\i386-win32\windres.exe: 
..\units\i386-win32\fpc-res.res: unexpected end of file

makefile:3403: warning: overriding commands for target `examples'
makefile:3363: warning: ignoring old commands for target `examples'
E:\lazarus\pp\bin\i386-win32\make.exe: Entering directory 
`E:/lazarus/laz_svn'

E:/lazarus/pp/bin/i386-win32/make.exe -C ide ide
make.exe[1]: Entering directory `E:/lazarus/laz_svn/ide'
E:/lazarus/pp/bin/i386-win32/make.exe --assume-new=lazarus.pp 
lazarus.exe OPT=' -WG @E:\lazarus\laz_svn\idemake.cfg'

make.exe[2]: Entering directory `E:/lazarus/laz_svn/ide'
E:/lazarus/pp/bin/i386-win32/ppc386.exe -gl -Fu../lcl/units/i386-win32 
-Fu../lcl/units/i386-win32/win32 
-Fu../components/codetools/units/i386-win32 
-Fu../components/synedit/units/i386-win32 -Fu../components/custom 
-Fu../components/mpaslex -Fu../ideintf/units/i386-win32 -Fu../designer 
-Fu../designer/jitform/units/i386-win32 -Fu../debugger -Fu../converter 
-Fu../packager -Fu../packager/units/i386-win32 -Fu../units/i386-win32 
-Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. 
-FU../units/i386-win32 -WG @E:\lazarus\laz_svn\idemake.cfg -di386 lazarus.pp

Hint: End of reading config file E:\lazarus\pp\bin\i386-win32\fpc.cfg
Hint: Start of reading config file E:\lazarus\laz_svn\idemake.cfg
Hint: End of reading config file E:\lazarus\laz_svn\idemake.cfg
Free Pascal Compiler version 2.2.1 [2007/11/08] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling lazarus.pp
staticpackages.inc(2,16) Hint: Unit lhelpcontrolpkg not used in Lazarus
staticpackages.inc(4,12) Hint: Unit lnetpackage not used in Lazarus
staticpackages.inc(21,10) Hint: Unit JvCoreLaz not used in Lazarus
Compiling resource lazarus.rc
Compiling resource ..\units\i386-win32\fpc-res.res
e:\lazarus\pp\bin\i386-win32\windres.exe: 
e:\lazarus\pp\bin\i386-win32\windres.exe: 
..\units\i386-win32\fpc-res.res: unexpected end of file

E:\lazarus\laz_svn\ide\lazarus.pp(114,1) Error: Error while linking
E:\lazarus\laz_svn\ide\lazarus.pp(114,1) Fatal: There were 1 errors 
compiling module, stopping


If I unninstall this package, lazarus links properly.

Any help is appreciated!

Horacio

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] StringReplace - TReplaceFlags

2007-05-23 Thread Horacio Jamilis
Try

StringReplace(s,'something','somethingElse',[rfReplaceAll]);

The last parameter is a set... I guess :-)

Horacio


- Original Message - 
From: Alvise Nicoletti [EMAIL PROTECTED]
To: lazarus@miraclec.com
Sent: Wednesday, May 23, 2007 12:35 PM
Subject: [lazarus] StringReplace - TReplaceFlags


 Sorry but I really don't understand this:
 StringReplace(s,'something','somethingElse',rfReplaceAll);

 servizio_server.pas(65,39) Error: Incompatible type for arg no. 4: Got
 enumeration type, expected TReplaceFlags

 What's that???

 Shouldn't that work?

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

 __ Información de NOD32, revisión 2286 (20070523) __

 Este mensaje ha sido analizado con  NOD32 antivirus system
 http://www.nod32.com



_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Spanish missing translations of menu items

2006-09-20 Thread Horacio Jamilis



Attached is a patch to fix some menu entries that 
was not translated to spanish, and apeared as "...".

Horacio Jamilis


spanish.diff
Description: Binary data


Re: [lazarus] Lazarus Foundation pros

2006-04-29 Thread Horacio Jamilis
 
  Create 10 important Bounties (
  http://wiki.lazarus.freepascal.org/index.php/Bounties ). With these 10
  we could cover the most important ideas we had about Summer of Code

 People coding for money don't do much for 1000 Eur :)

May be not in Europe or USA but in South America (and specially in
Argentina), 1000 Eur is enougth for a good full time Semi Senior Developer
with at least 3 years of expertise.

Horacio Jamilis

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Highlighters - SQL

2006-03-22 Thread Horacio Jamilis



Why lazarus does not include a highlighter for 
SQL?
It could be usefull to have it and I guess synedit 
should have it already, but in the code editor popup menu, it offers many 
options (like PHP or HTML) but not SQL...

Just a question.

Horacio Jamilis
[EMAIL PROTECTED]


Re: [lazarus] Highlighters - SQL

2006-03-22 Thread Horacio Jamilis
I think that opening .sql files should select automatically the sql
highlighter.

- Original Message - 
From: Mattias Gaertner [EMAIL PROTECTED]
To: lazarus@miraclec.com
Sent: Wednesday, March 22, 2006 7:53 PM
Subject: Re: [lazarus] Highlighters - SQL


 On Wed, 22 Mar 2006 23:49:03 +0100 (Romance Standard Time)
 Michael Van Canneyt [EMAIL PROTECTED] wrote:

 
 
  On Wed, 22 Mar 2006, Horacio Jamilis wrote:
 
   Why lazarus does not include a highlighter for SQL?
   It could be usefull to have it and I guess synedit should have it
   already, but in the code editor popup menu, it offers many options
(like
   PHP or HTML) but not SQL...
  
   Just a question.
 
  I would like to see SQL included, this would be very useful for me as
  well.
 
  A new file type 'SQL script' could also be included, maybe ?

 What do you mean with 'file type'?
 What file extension should do what?


  Mattias, is this possible ? Till now all my wizards created
  regular pascal files.


 Mattias


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Debugger question

2006-01-11 Thread Horacio Jamilis



I saw that the debugger is starting to work! That´s 
grait.

There are a couple of things that must be 
improved... and I will try to work on it.

I´m using Lazarus under Windows.

The question is: is gdbable to evaluate 
object properties ?

I mean, if I enter on the evaluator something like 
form1.caption it says it cant parse or something like that.

Where should I look for to fix this?
Horacio Jamilis


Re: [lazarus] Debugger question

2006-01-11 Thread Horacio Jamilis
Thanks,

MyBla.fBla is evaluated properly

MyBla.GetBla does not work.
The evaluator stil complains.
what should I try?
Let´s say I found the getter method... how to invoke it?

Horacio Jamilis

- Original Message - 

  The question is: is gdb able to evaluate object properties ?
 No. only object fields, i.e. variables.

:-(


 For field properties that have actual fields, use the private field.
 property Bla :integer read FBla;
 use MyBla.FBla

 
  Where should I look for to fix this?
 For properties that have read specifiers methods, find a way to execute
 the getter in the debuggee and get the result in Lazarus.
 example: property Bla: integer read GetBla;

 Vincent

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Multithreading in Lazarus = SMP Enabled applications?

2005-11-05 Thread Horacio Jamilis



Hi,

I was trying to look for information about how to 
enable a linux server application to work with any procesor available on the 
system, being, this way, SMP enabled.

Someplace I readed that working in Delphi with the 
TThread class (this is the way I work), the applications will be SMP 
automagically on Windows.

Is this true?

Happens the same with FPC/Lazarus?
On windows?
On linux?

Thanks

Horacio Jamilis


[lazarus] Debugging multitheaded application

2005-10-28 Thread Horacio Jamilis



Hi,

I am porting a multithreaded server application 
from Delphi to Lazarus (linux).
I am using the cThreads unit, and the TThread 
class.

The program is not working properly... I don´t know 
why yet. But it compiles and starts! I´m happy for that.

The program listen on a port for TCP connections 
using Synapse (or Indy on Windows... butI didn´t tested Indy4Lazarus yet 
on Linux... does it works for a basic Tcp Server app? ). When the connection is 
incoming, it creates a new thread for that connection that keeps the connection 
open (and the thread istrying to read the socketall the 
time).

The problem is that while I am trying to debug the 
application, most of the times the debugger (gdb) hangs the X 
Server...
Is somebody else having such a problem? Does 
anybody have any clue about what is happening?

I need to fix the application... and without the 
debugger will be very complex...

Any help will be appreciated.

Horacio


[lazarus] Console GUI / Web Applications Support for Lazarus RAD

2005-09-03 Thread Horacio Jamilis



Hi,

Some years ago I started a project in Delphi/Kylix 
that should finally allow me (and any other developer) to create Console GUI 
Applications using Delphi, in a pure RAD way, using non-visual standard 
components, and a set of components I was developing.

I got the base idea from de KOL project, that was 
able, throw a Mirroring System, to use the Delphi environment to develop de KOL 

projects. I never finished this project... I only 
created the base console application and some components... and started building 
the mirroring system. But it never worked (I never finished it).

The fact is, I think it would be a grait thing to 
have this support integrated in Lazarus (as is Intraweb in Delphi).

My idea is, as I said, to contribute all this thing 
to the lazarus project (to be LGPL also).

Does anybody tried to do something like this 
before?

Where should I start from? (to create the new 
application type in the IDE, and to make the IDE work with this new kind of 
TtxtForm)

Is anybody interested to participate in this 
project?

At the same time, I want to know if someone is 
working in a Web Applications support for Lazarus ala Intraweb?

Horacio


Re: Getting the word out

2005-09-02 Thread Horacio Jamilis
As I asked to Torrys, and I forwarded the answer here...

Torrys should have a Lazarus Section in about 2/3 weeks...

Horacio

 
 btw. has anybody ever heard anything back from Torry or DSP?? Perhapse
 I'll nudge them too/ ;) 
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives