Sign in Join

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

Mailing lists / lazarus / 2002-09

Exeception on loading Lazarus

8 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Javier
to Unknown author: Vincent Can you or Javier please describe exactly how to reproduce this error. Maybe than…

El jue, 26-09-2002 a las 07:37, escribi�:

Can you or Javier please describe exactly how to reproduce this error. Maybe than I found out whatis going wrong.

It seems to be all right now. The problem should have been produced by an incorrect reading of old xml's on my .lazarus directory. I solved the problem just by removing ~/.lazarus.

It would be nice to advertise in the FAQ about this issue. Remember, only happens when trying to execute a new Lazarus build using old configuration (but not too much old elsewhere, it fails just after your patch).

If you want to reproduce this error, try:

- Remove ~/.lazarus.
- Compile and run an old version of Lazarus.
- Compile and run a new version from a different directory at which it is compiled. (For example, do "cd ~" and next
"/usr/src/lazarus/lazarus").

Bye.

Reply by email

Andrew Johnson
I have looked into it, but I can't reproduce this error, so I am not sure it is caused by my patch.

hmm. it may not be, but it didn't show up on my system till I had your patch.

Show quoted text 7 lines
I removed the build tools setting from ~/.lazarus/miscellaneousoptions.xml and the compiler options setting from the lpi-file but still no error. The only way I could get an error is by removing both ~/.lazarus/environmentoptions.xml and ~/.lazarus.dci and starting up in a different directory.

Exactly.. This IS the error. Are you sure there is not another xml file or setting being modified by your code than what you removed?

I also have noticed that at times there are empty lines in the xml files. I don't know when this ocures, but it might have something to do with it.

it might but I am not familiar with the XML code, as I understand it, thats another of Mattias' contributions, based on the orignal FPC version, and I haven't realy used it much.

I will look into it and see if I can't figure it out though.

Andrew

_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com

Reply by email

Vincent Snijders
to Andrew Johnson: On 25 Sep 2002 17:23:21 +0000 looks like your right.. the last update to cvs aka…
Show quoted text 27 lines
-----Oorspronkelijk bericht----- Van: Andrew Johnson Javier wrote: >I mean, for example, having everything under /usr/src/lazarus, and trying >to load it from my home directory. >Elsewhere doing: > >cd /usr/src/lazarus >./lazarus > >does work. Some days ago it worked from ANY directory looks like your right.. the last update to cvs aka Vincent's Cross Compiling Patch looks to have caused this when his new TargetOS value isn't set. To fix, open compiler options and select linux and apply, and open "build lazarus options" and type linux in the TargetoS fields.. after doing these it works.. This needs a real fix though, so if you read this Vincent, want try and fix it? Andrew

I have looked into it, but I can't reproduce this error, so I am not sure it is caused by my patch. I removed the build tools setting from ~/.lazarus/miscellaneousoptions.xml and the compiler options setting from the lpi-file but still no error.

The only way I could get an error is by removing both ~/.lazarus/environmentoptions.xml and ~/.lazarus.dci and starting up in a different directory.

I don't know what to do.

I also have noticed that at times there are empty lines in the xml files. I don't know when this ocures, but it might have something to do with it.

Vincent.

Reply by email

Unknown author
to Andrew Johnson: On Wed, 25 Sep 2002 20:21:07 +0200 hmm. it may not be, but it didn't show up on my system…

See comments inline,
Vincent

Show quoted text 18 lines
-----Original Message----- From: Andrew Johnson Sent: woensdag 25 september 2002 22:53 To: Subject: RE: [lazarus] Exeception on loading Lazarus On Wed, 25 Sep 2002 20:21:07 +0200 "Vincent Snijders" wrote: >I have looked into it, but I can't reproduce this error, so I am not sure >it is caused by my patch. hmm. it may not be, but it didn't show up on my system till I had your patch.

Can you or Javier please describe exactly how to reproduce this error. Maybe than I found out whatis going wrong.

Show quoted text 13 lines
>I removed the build tools setting from >~/.lazarus/miscellaneousoptions.xml and the compiler options setting from >the lpi-file but still no error. >The only way I could get an error is by removing both >~/.lazarus/environmentoptions.xml and ~/.lazarus.dci and starting up in a >different directory. Exactly.. This IS the error. Are you sure there is not another xml file or setting being modified by your code than what you removed?

As far as I know the only files changed by the patch are the miscellaneousoptions.xml for the lazarus build option and the lpi-file for the compiler options.

The are I got is probably not related but I shall look tonight if I can fix it. I don't think it this one is the error Javier got.

Show quoted text 16 lines
>I also have noticed that at times there are empty lines in the xml files. I >don't know when this ocures, but it might have something to do with it. it might but I am not familiar with the XML code, as I understand it, thats another of Mattias' contributions, based on the orignal FPC version, and I haven't realy used it much. I will look into it and see if I can't figure it out though. Andrew

Disclaimer:
Aan de inhoud van dit e-mailbericht kunnen geen rechten worden ontleend. De informatie verzonden in dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Het Centraal Bureau voor de Statistiek staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mailbericht noch voor tijdige ontvangst daarvan.

No rights may be derived from the contents of this e-mail message. The information in this e-mail message is intended only for the addressee. Statistics Netherlands cannot vouch for the correctness and completeness of the contents of e-mail messages, nor for the timely receipt thereof.

Reply by email

Andrew Johnson
Show quoted text 8 lines
I mean, for example, having everything under /usr/src/lazarus, and trying to load it from my home directory. Elsewhere doing: cd /usr/src/lazarus ./lazarus does work. Some days ago it worked from ANY directory

looks like your right.. the last update to cvs aka Vincent's Cross Compiling Patch looks to have caused this when his new TargetOS value isn't set. To fix, open compiler options and select linux and apply, and open "build lazarus options" and type linux in the TargetoS fields.. after doing these it works..

This needs a real fix though, so if you read this Vincent, want try and fix it?

Andrew

_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply by email

Javier
to Javier: When I try to load Lazarus from a directory which is not the source one, I obtain the…

El mi�, 25-09-2002 a las 17:11, Javier escribi�:

When I try to load Lazarus from a directory which is not the source one, I obtain the following exception:

I mean, for example, having everything under /usr/src/lazarus, and trying to load it from my home directory.
Elsewhere doing:

cd /usr/src/lazarus
./lazarus

does work. Some days ago it worked from ANY directory.

Bye.

Reply by email

Javier

When I try to load Lazarus from a directory which is not the source one, I obtain the following exception:

Note: codetools config file not found - using defaults [TMainIDE.Destroy] A
[TMainIDE.Destroy] B -> inherited Destroy...
[TMainIDE.Destroy] END
An unhandled exception occurred at 0x08355971 :
Access violation
0x08355971 main, line 84 of graphics.pp
0x332C302C main, line 294 of gtkint.ppgtkproc.inc An unhandled exception occurred at 0x0822EBCA :
Access violation
0x0822EBCA

forms.pp - finalization section
[TgtkObject.Destroy] WARNING: There are 2 unreleased DCs, a detailed dump follows:
[TgtkObject.Destroy] DCs: 083A7A64 083AD184
[TgtkObject.Destroy] WARNING: There are 19 unreleased GDIObjects, a detailed dump follows:
[TgtkObject.Destroy] GDIOs: 083AD2B4 083A7914 083A7D34 083A7C84 083A7B94 083A7B24 083A7AD4
[TgtkObject.Destroy] gdiBitmap: 1
[TgtkObject.Destroy] gdiBrush: 10
[TgtkObject.Destroy] gdiFont: 3
[TgtkObject.Destroy] gdiPen: 5

Bye.

Reply by email

Marc Weustink
to Andrew Johnson: On Wed, 25 Sep 2002 20:21:07 +0200 hmm. it may not be, but it didn't show up on my system…
Andrew Johnson wrote 18 lines
On Wed, 25 Sep 2002 20:21:07 +0200 "Vincent Snijders" wrote: >I have looked into it, but I can't reproduce this error, so I am not sure >it is caused by my patch. hmm. it may not be, but it didn't show up on my system till I had your patch. >I removed the build tools setting from >~/.lazarus/miscellaneousoptions.xml and the compiler options setting from >the lpi-file but still no error. >The only way I could get an error is by removing both >~/.lazarus/environmentoptions.xml and ~/.lazarus.dci and starting up in a >different directory. Exactly.. This IS the error. Are you sure there is not another xml file or setting being modified by your code than what you removed?

I've reread the patches of Vincent, and from them I can't see what's giong wrong. At first sight it looks OK.

Marc

Reply by email