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: Star

[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: 
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
> "", 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] Screen updating during TProcess execution

2006-05-03 Thread Horacio Jamilis
Try a

Application.ProcessMessages;

between the using of the components (setting the label caption, or filling
the combobox) and the TProcess.Execute.

Good luck!

Horacio Jamilis
[EMAIL PROTECTED]

- Original Message - 
From: "Arí Ricardo Ody" <[EMAIL PROTECTED]>
Subject: [lazarus] Screen updating during TProcess execution


> I mounted a listbox with a list of files. In a
> For loop that treat each file in the listbox I
> execute a TProcess that runs an external program
> that do some processing over this file. After the
> TProcess.Execute I call TProcess.WaitOnExit method.
>
> Before TProcess.Execute I switch the selected
> property of the listbox item to true. In this
> way, the items that are still processed will
> appear selected in the listbox. The listbox
> appears with all items selected only after the
> For loop ends. I create a 2nd listbox and try to
> add the item I will process just before call the
> Execute method. The same thing occurs: The second
> listbox appears filled only after the For loop
> ends(or the method where the For loop is, ends
> itself). Finally I try to alter the caption
> property of a TLabel just after call Execute Method. Again it didn't run
ok...
>
> May someone explain me how to solve this trouble?
>
> Greetings from São Paulo - Brazil
>
> Ricardo
>

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


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


Re: [lazarus] Highlighters -> SQL

2006-03-22 Thread Horacio Jamilis
Thanks

- Original Message - 

> > But the highlighter is not the component TSynSqlSyn that is on the
lazarus
> > component pallete?
>
> Ah, I see. Sorry.
> I will add it.
>
> Mattias

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


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


Re: [lazarus] Highlighters -> SQL

2006-03-22 Thread Horacio Jamilis
But the highlighter is not the component TSynSqlSyn that is on the lazarus
component pallete?

- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, March 22, 2006 7:39 PM
Subject: Re: [lazarus] Highlighters -> SQL


> On Wed, 22 Mar 2006 19:34:22 -0300
> "Horacio Jamilis" <[EMAIL PROTECTED]> 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.
>
> It has not been ported.
> If you want to give it a try, and got questions, don't hesitate to ask
here.
>
> Mattias
>
> _
>  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] 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] Debugger question

2006-01-11 Thread Horacio Jamilis

If nobody else has any clue how to do it, I will try to find it out.

Thanks,

Horacio Jamilis

- Original Message - 
From: "Vincent Snijders" <[EMAIL PROTECTED]>


> > 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?
>
> That it something that needs to implemented. Somehow I thought you were
> volunteering. ;-)
>
> I don't know how it can be implemented.
>
> Vincent.

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


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] 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 gdb able 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


[lazarus] Patch for EnvironmentOpts and EditorOptions

2006-01-08 Thread Horacio Jamilis



Hi,
 
Attached is a patch that fixes (I hope) the Color 
page on the editoroptions dialog (win32).
There were a couple of controls 
overimpossed.
 
On the environmentoptions dialog, the form editor 
page was a mess.
 
I don't understant how the component placing works, 
so I did my best :-)
 
The TColorButton do not seems to work properly on 
Win32. It seems that sometimes it receives the onclick event and sometimes not. 
I'm not sure, but most of the times the color dialog does not 
popup.
 

Hope this helps.
 Horacio 
Jamilis


envoptions.diff
Description: Binary data


Re: [lazarus] Multithreading in Lazarus = SMP Enabled applications?

2005-11-06 Thread Horacio Jamilis
I wrote on the lazarus wiki about multithreaded applications at:

http://wiki.lazarus.freepascal.org/index.php/Multithreaded_Application_Tutorial

Feel free to add more info to it.

Horacio Jamilis

_
 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] Function search

2005-10-29 Thread Horacio Jamilis



One question...
 
How to search where to find a 
function?
 
Now I need the function to create a Guid... in 
Delphi it is CreateClassID from the ComObj unit.
I need a cross platform function to do it... does 
it exists? where?
 
In any case, how should I look for it?
 
Thanks in advance
 
Horacio Jamilis


Re: [lazarus] Debugging multitheaded application

2005-10-29 Thread Horacio Jamilis
Thank you very much I will try this latter (I am not on linux right
now).

As somebody said... this must be in the wiki.

Horacio Jamilis

- Original Message - 
From: "Marc Weustink" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, October 29, 2005 8:46 AM
Subject: Re: [lazarus] Debugging multitheaded application


> > Could you explain me how to do either of them or point me to some place
I
> > could found the way...
>
> You can start a second X  by:
>X :1 &
> with Ctrl-Alt-F7 you swithc to :0 and with Ctrl-Alt-F8 you switch to :1
> after that you can start a second gnone session by:
>gnome-session --display=:1 &
>
> You can use vncserver/client by installing
> tightvncserver/realvncserver
> Start the server with:
>vncserver :1
>
> AFAIK, a session is also started.
> you van connect to the vncserver with vncviewer.
>
> In lazarus, in the run parameters for your project, check "use display"
> and enter :1
>
> Now your application will run on the second server, so when it is
> beining debugged, inly the second server will freeze (but that won't
> affect you since you are debugging on the first)

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


Re: [lazarus] Debugging multitheaded application

2005-10-28 Thread Horacio Jamilis
What are you talking about?

Once the X freeze, I go to the terminal and start gdb there?

I want to debug inside lazarus... or may be I should not?

Thanks

Horacio

- Original Message - 
From: "Mattias Gaertner" <[EMAIL PROTECTED]>
To: 
Sent: Friday, October 28, 2005 7:10 PM
Subject: Re: [lazarus] Debugging multitheaded application


> On Fri, 28 Oct 2005 18:18:17 +0200
> Marc Weustink <[EMAIL PROTECTED]> wrote:
>
> > Horacio Jamilis wrote:
> > > 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... but I 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 is trying to read the socket all 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...
> >
> > When you stop the program (in a debugger on a breakpoint orso) while it
> > is in a Xeventhandler, it stops X. (it looks like X is single threaded)
> > What you can do is run your application on an other Xserver
> > (--display=:1 or --display=orherserver:0).
> > Opions are:
> > - Start a second instance of x (:1)
> > - use VNC server and connect to that "virtual" xserver
> > - use a second machine
>
> Or: Start gdb on console (non X terminal, Ctrl-Alt-F1). For some unknown
> reason you can still switch back.
>
>
> > This still will freeze X, but not the one you are debugging with.
>
>
> Mattias
>
> _
>  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


Re: [lazarus] Debugging multitheaded application

2005-10-28 Thread Horacio Jamilis
Mark... I am not too new to linux, but enaught to don´t know how to open a
second x server instance.

I don´t expect to use a second computer so option 1 or 2 are good to me...

Could you explain me how to do either of them or point me to some place I
could found the way...

THANK YOU!

At the other side... it can´t be fixed? just to know!

Horacio

- Original Message - 
From: "Marc Weustink" <[EMAIL PROTECTED]>
To: 
Sent: Friday, October 28, 2005 1:18 PM
Subject: Re: [lazarus] Debugging multitheaded application


> Horacio Jamilis wrote:
> > 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... but I 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 is trying to read the socket all 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...
>
> When you stop the program (in a debugger on a breakpoint orso) while it
> is in a Xeventhandler, it stops X. (it looks like X is single threaded)
> What you can do is run your application on an other Xserver
> (--display=:1 or --display=orherserver:0).
> Opions are:
> - Start a second instance of x (:1)
> - use VNC server and connect to that "virtual" xserver
> - use a second machine
>
> This still will freeze X, but not the one you are debugging with.
>
> Marc
>
>
> _
>  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] 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... but I 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 is trying to read the socket all 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


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

2005-09-03 Thread Horacio Jamilis
Michel

> > 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)
>
> I can send you an article which shows you how to do this, complete with
sample code.
> (in fact, the sample code is already in Lazarus, I think)

Please do! :-)

> > At the same time, I want to know if someone is working in a Web
Applications support for Lazarus ala Intraweb?
>
> I am investigating this currently. I'm working on some base HTTP/HTML
components which will
> be incorporated in the FCL. My plan is to use this as the basis for 2
kinds of web-applications:
>
> If you're interested, we can discuss the basis for a intraweb-like
functionality in Lazarus.
>
> Michael.

It´s grait to know that there is already something on the way!

I don´t have too much free time to work on this projects... As I said I
think both of them should finally exists on Lazarus (RAD for Web and RAD for
Console)... but yes

Another point about Lazarus and Application kinds:
Shouldn´t the IDE show only the components that are usefull on the current
application kind?
How should this be achieved? I mean, in the current component registration
process there is not place to indicate on what kind of applications the
component could work.
Just an idea.

Horacio

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


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

2005-09-03 Thread Horacio Jamilis



Yes... with Console GUI Applications I mean that 
kind of applications (like Free Vision applications).
 
About Intraweb, I have nothing to do with 
them, but I like the tool.
 
Intraweb is a RAD Web development environment that uses Delphi (and 
Kylix)as IDE and Compiler.In an Intraweb project, you have Intraweb 
Forms and Data Modules(standard)...You fill the forms with Intraweb 
Enabled Components (no the standard ones),and you program the components 
events, as you normally do on any GraphicalGUI Application (Standard Lazarus 
Application).Once you compile, Delphi (or Kylix) creates one of the 
following:    a) A Web Server application (with the 
application embedded)    b) An ISAPI Module (for 
IIS)    c) An DSO Module (for Apache)This executable 
modules, generates for the user, the HTML+_javascript_ pages,that acts the way 
your application shoud. Everytime the user takes an action(like pressing a 
button, or selecting an item on a combobox), the browserask a new page to 
the server (in any of the 3 formats), it triggers theproper code (programed 
in Object Pascal), and then it generates the newpage.You could see 
more on http://www.atozed.com/intraWeb/
 
Horacio

  - Original Message - 
  From: 
  L505 
  To: lazarus@miraclec.com 
  Sent: Saturday, September 03, 2005 3:26 
  PM
  Subject: Re: [lazarus] Console GUI / Web 
  Applications Support for Lazarus RAD
  
  
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.
 
  You mean like norton commander or FP IDE 
  style applications? 


[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


[lazarus] Lazarus section on www.Torry.net

2005-08-20 Thread Horacio Jamilis
People,

FYI, I today asked Maxim Peresada (torry's site owner) when will he add a
Lazarus section to his site and he answered:


---

I know what Lazarus is well.

As I answered in Borland news group, first task is to fix all problems
that Torry's already has after server and database engine changes.
During September we will try to bring Torry's new look and make it
full with new features. I already added Lazarus section in my to-do
list, but it will be implemented after all other things will be fixed.

Estimated date is the middle of September.




I think this are grait news!

Thats why I am sharing this with you.

Keep the good work!

Horacio Jamilis
[EMAIL PROTECTED]
Pymesoft Argentina

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