Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-04

Porting Large Application from Windows to Linux

10 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

drew einhorn

Needless to say. I've got a lot of Lazarus/Free Pascal errors.

First, Is there a way to capture the contents of the Lazarus IDE Message window?
Tried cutting from the Messages window, in hopes of being able to paste it into an editor, and edit into a form where I can get a handle on the scope of the
project. But I can's select it much less cut and paste it.

Googling got me a dozen or so missing units.

Now I'm running into MS only junk.

First I need to read:

http://support.microsoft.com/kb/147940
Intro to Microsoft OLE Custom Control Architecture & Tools

Is there a linux package that provides capabilities similar to OLE that is supported by Lazarus?

Once I capture and edit the Messages window I will have a much larger list of things to port.

Is there a way to set a flage to always comment stuff out, and continue?

One problem that is disturbing is the IDE tends to freeze when manually clicking the "Comment out and continue" button.

To get rid of the crashed Lazarus I have to bring up a shell run xkill and click on one of the Lazarus IDE windows.

I can remove the source directories and refresh them from the archives and try again. We may run to completion, or it may freeze somewhere else.

Frequently, it freezes when bringing up a source code window. It's not quite done painting the window, but you can see enough to recognize it and the source file it is bringing up.

Drew Einhorn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080424/40cdccde/attachment.html

Reply by email

matthew rollings
to Mattias Gärtner

You can use Ctrl-Alt-Esc (on KDE, not sure about others) to automatically start xkill then click on what you want, not really very helpful but might save you some time.

Mattias G?rtner wrote 23 lines
Zitat von drew einhorn : >[...] > Is there a way to set a flage to always comment stuff out, and continue? Not yet. > One problem that is disturbing is the IDE tends to freeze when > manually clicking the "Comment out and continue" button. > > To get rid of the crashed Lazarus I have to bring up a shell > run xkill and click on one of the Lazarus IDE windows. Run lazarus via gdb, reproduce the freeze, create a backtrace and send it. So this bug can be fixed. >[...] Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Chris Kirkpatrick
to drew einhorn: Needless to say. I've got a lot of Lazarus/Free Pascal errors. First, Is there a way to…
drew einhorn wrote 10 lines
Needless to say. I've got a lot of Lazarus/Free Pascal errors. First, Is there a way to capture the contents of the Lazarus IDE Message window? Tried cutting from the Messages window, in hopes of being able to paste it into an editor, and edit into a form where I can get a handle on the scope of the project. But I can's select it much less cut and paste it.

Right click on message window
Select 'save all messages to file'

Regards - Chris

Reply by email

Graeme Geldenhuys
to drew einhorn: Needless to say. I've got a lot of Lazarus/Free Pascal errors. First, Is there a way to…
drew einhorn wrote
First, Is there a way to capture the contents of the Lazarus IDE Message window?

Two options I know of...

* You can run Lazarus from a console window, which should show the FPC output.
* In the IDE Messages window. Right click in the window and select 'Copy all and hidden messages to the clipboard'.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

drew einhorn
to Mattias Gärtner: An embedded and charset-unspecified text was scrubbed... Name: not available Url:…
Mattias G?rtner wrote 5 lines
Zitat von drew einhorn : Run lazarus via gdb, reproduce the freeze, create a backtrace and send it. So this bug can be fixed.

Hmm. I'm running Lazarus on Ubuntu not sure if I downloaded the .debs from the web
or if they were automatically retrieved from a repository.

Any way the executables are stripped and do not have any debugging info. Do I need to rebuild lazarus from source first?

Drew Einhorn

Reply by email

Adrian De Armas
to drew einhorn

I am just copying an email written by Fabio Dell'Aria some time ago where this issue was discused.
Hope you find it usefull.

Regards

-------------------------MAIL BEGIN--------------------------- Hi to all,

all we know how many new users do not uses lazarus because it create too BIG compiled files.

We know that:

1)...the additional options are needed to can debug the project; 2)...just do a simple "strip --strip-all filename" reduce drastically the final size (an empty project go from 12.5Mb to 1.2 Mb).

I think to have found a really simple solution to can continue to debug our project with a really little size increasing.

Just remove all the debug-info from all the LCL object files to reduce the final compiled file from 12.5Mb to ONLY 2Mb (on Windows).

We'll can continue to debug our projects but we'll CANNOT debug the LCL code.

To obtain this little miracle just use the following command (from the shell):

For Windows:

FOR /R "Your_Lazarus_Folder" %v IN (*.o) DO strip --strip-debug "%~fv"

For Linux:

sudo find /your_lazarus_folder -name *.o -exec strip --strip-debug {} \;

What do you think about? ;)

Best regards... Fabio Dell'Aria. -------------------------MAIL END-------------------- On Fri, Apr 25, 2008 at 11:35 AM, drew einhorn wrote: > On Thu, Apr 24, 2008 at 11:59 AM, Mattias G?rtner > wrote: > > Zitat von drew einhorn : > > > Run lazarus via gdb, reproduce the freeze, create a backtrace and send > it. So > > this bug can be fixed. > > > > Hmm. I'm running Lazarus on Ubuntu not sure if I downloaded the .debs > from the web > or if they were automatically retrieved from a repository. > > Any way the executables are stripped and do not have any debugging info. > Do > I need to rebuild lazarus from source first? > > -- > Drew Einhorn > > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080425/a0087492/attachment.html

Reply by email

drew einhorn
to Adrian De Armas

I think the distro already did this and to debug the current issue (IDE freezes or abruptly exits), I think I need to rebuild lazarus from source and use the executables before the debugging info is stripped.

2008/4/25 Adrian De Armas :

Show quoted text 87 lines
I am just copying an email written by Fabio Dell'Aria some time ago where this issue was discused. Hope you find it usefull. Regards -------------------------MAIL BEGIN--------------------------- Hi to all, all we know how many new users do not uses lazarus because it create too BIG compiled files. We know that: 1)...the additional options are needed to can debug the project; 2)...just do a simple "strip --strip-all filename" reduce drastically the final size (an empty project go from 12.5Mb to 1.2 Mb). I think to have found a really simple solution to can continue to debug our project with a really little size increasing. Just remove all the debug-info from all the LCL object files to reduce the final compiled file from 12.5Mb to ONLY 2Mb (on Windows). We'll can continue to debug our projects but we'll CANNOT debug the LCL code. To obtain this little miracle just use the following command (from the shell): For Windows: FOR /R "Your_Lazarus_Folder" %v IN (*.o) DO strip --strip-debug "%~fv" For Linux: sudo find /your_lazarus_folder -name *.o -exec strip --strip-debug {} \; What do you think about? ;) -- Best regards... Fabio Dell'Aria. -------------------------MAIL END-------------------- On Fri, Apr 25, 2008 at 11:35 AM, drew einhorn wrote: > On Thu, Apr 24, 2008 at 11:59 AM, Mattias G?rtner > wrote: > > Zitat von drew einhorn : > > > Run lazarus via gdb, reproduce the freeze, create a backtrace and send > it. So > > this bug can be fixed. > > > > Hmm. I'm running Lazarus on Ubuntu not sure if I downloaded the .debs > from the web > or if they were automatically retrieved from a repository. > > Any way the executables are stripped and do not have any debugging info. > Do > I need to rebuild lazarus from source first? > > -- > Drew Einhorn > > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Drew Einhorn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080425/8190d67a/attachment.html

Reply by email

Mattias Gaertner
to drew einhorn: On Thu, Apr 24, 2008 at 11:59 AM, Mattias G?rtner Hmm. I'm running Lazarus on Ubuntu not…
Show quoted text 14 lines
On Thu, Apr 24, 2008 at 11:59 AM, Mattias G?rtner wrote: > Zitat von drew einhorn : > Run lazarus via gdb, reproduce the freeze, create a backtrace and > send it. So this bug can be fixed. > Hmm. I'm running Lazarus on Ubuntu not sure if I downloaded the .debs from the web or if they were automatically retrieved from a repository. Any way the executables are stripped and do not have any debugging info.

:(

Do I need to rebuild lazarus from source first?

Yes.

Mattias

Reply by email

Héctor Fiandor Rosario
to Mattias Gaertner

Dear list:

I am working with FreePascal

I have a Form with a memo component "mNomGrupos".
I have a record with strings datas in the variable "nombre".

When the Form activate I do:

mNomGrupos.Text:=PtrNombresInterno^.nombre;

and in the component I can see the data but with a CarReturn (line jump) not included in the variable and not wanted.

I have adjusted de Properties WantReturns and WantTabs to false and WordWrap to true.

I have a OK button to do nombre:=mNomGrupos.text to write the data in the
variable "nombre";

unfortunately when saving I obtain a textfile with the datas in this way

controlesca,nombre
001000000,PROCESO1
,
001001000,REQUISITO1_1,

with a line jump not wanted

I will appreciate very much your help to avoid this effect in the memo component when charge the varible.

thanks in advance,

Ing. H?ctor F. Fiandor

Reply by email