Sign in Join

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

Mailing lists / lazarus / 2009-07

startlazarus: EAccessViolation : Access violation

10 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Giuseppe Luigi Punzi Ruiz

I do an svn update, and then, a make clean all

Somebody knows, why I get this exception trying to run "./startlazarus --pcp=./config ?

galilea:lazarus glpunzi$ ./startlazarus --pcp=./config An unhandled exception occurred at $918CCD4B :
EAccessViolation : Access violation
$918CCD4B WM_DROPFILES
$918ED8D0 WM_DROPFILES
$918EE82D WM_DROPFILES
$000790C7 GETLANGUAGE, line 4235 of lclproc.pas
$00078FB8 LCLGETLANGUAGEIDS, line 4258 of lclproc.pas $0003F0B9 TAPPLICATION__CREATE, line 128 of forms.pp $00045EF5 _FORMS_init, line 1821 of forms.pp

FPC: 2.2.4
Lazarus rev: 20942

Giuseppe Luigi Punzi Ruiz
Blog: http://www.lordzealon.com
Twitter & Skype & GoogleTalk accounts: glpunzi

Reply by email

Tom Gregorovic
to Giuseppe Luigi Punzi Ruiz
Giuseppe Luigi Punzi Ruiz wrote 21 lines
I do an svn update, and then, a make clean all Somebody knows, why I get this exception trying to run "./startlazarus --pcp=./config ? galilea:lazarus glpunzi$ ./startlazarus --pcp=./config An unhandled exception occurred at $918CCD4B : EAccessViolation : Access violation ?$918CCD4B ?WM_DROPFILES ?$918ED8D0 ?WM_DROPFILES ?$918EE82D ?WM_DROPFILES ?$000790C7 ?GETLANGUAGE, ?line 4235 of lclproc.pas ?$00078FB8 ?LCLGETLANGUAGEIDS, ?line 4258 of lclproc.pas ?$0003F0B9 ?TAPPLICATION__CREATE, ?line 128 of forms.pp ?$00045EF5 ?_FORMS_init, ?line 1821 of forms.pp FPC: 2.2.4 Lazarus rev: 20942

It was an issue in LCLGetLanguageIDs method under Mac OS where it was not checked that bundle exists before getting languages from it. It should be fixed in the latest SVN revision.
Please, do not forget to mention the OS and widget. It could be very helpful...

Thanks,

Tom

Reply by email

Giuseppe Luigi Punzi Ruiz
to Tom Gregorovic

Hi,

Show quoted text 5 lines
It was an issue in LCLGetLanguageIDs method under Mac OS where it was not checked that bundle exists before getting languages from it. It should be fixed in the latest SVN revision. Please, do not forget to mention the OS and widget. It could be very helpful...

I updated from SVN, and trying again.

Note: I thought to post operating system and widgeset, but, I don't know what happened, thath I only thought about it, but don't write it :P

Giuseppe Luigi Punzi Ruiz
Blog: http://www.lordzealon.com
Twitter & Skype & GoogleTalk accounts: glpunzi

Reply by email

Giuseppe Luigi Punzi Ruiz
to Giuseppe Luigi Punzi Ruiz

El 25/07/2009, a las 19:08, Giuseppe Luigi Punzi Ruiz escribi?:

Show quoted text 16 lines
Hi, > It was an issue in LCLGetLanguageIDs method under Mac OS where it > was > not checked that bundle exists before getting languages from it. It > should be fixed in the latest SVN revision. > Please, do not forget to mention the OS and widget. It could be > very helpful... I updated from SVN, and trying again. Note: I thought to post operating system and widgeset, but, I don't know what happened, thath I only thought about it, but don't write it :P

Same.

svn update
make clean
make all

I'm doing something wrong?

AFAIR, I always did this to build lazarus.

System: MacOS, widgeset: I suppose default Carbon.

Cheers.

Giuseppe Luigi Punzi Ruiz
Blog: http://www.lordzealon.com
Twitter & Skype & GoogleTalk accounts: glpunzi

Reply by email

Graeme Geldenhuys
to Tom Gregorovic: On Sat, Jul 25, 2009 at 1:51 PM, Giuseppe Luigi Punzi It was an issue in…
Tom Gregorovic wrote
Please, do not forget to mention the OS and widget. It could be very helpful...

Lazarus can do all this for you. Select "Help > About Lazarus", then right click on the form and you will see a popup menu with a single option "Copy version information to clipboard". The clipboard now contains everything you need to report.

example:
Lazarus 0.9.27 rUnknown FPC 2.2.5 i386-linux-gtk 2 (beta)

Mine shows the revision as "rUnknown" because I am using the Git mirror repository. I already found a way to extract the correct SVN revision, but haven't implement it yet.

Regards,
- Graeme -

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

Reply by email

Giuseppe Luigi Punzi Ruiz
to Graeme Geldenhuys
Lazarus can do all this for you. Select "Help > About Lazarus", then right click on the form and you will see a popup menu with a single option "Copy version information to clipboard". The clipboard now contains everything you need to report.

Lazarus 0.9.27 r20962M FPC 2.2.4 i386-darwin-carbon (beta)

This version starts from Lazarus.app bundle, but not from command line: ./startlazarus --pcp=./config

Giuseppe Luigi Punzi Ruiz
Blog: http://www.lordzealon.com
Twitter & Skype & GoogleTalk accounts: glpunzi

Reply by email

Mattias Gaertner
to Giuseppe Luigi Punzi Ruiz
Show quoted text 11 lines
> Lazarus can do all this for you. Select "Help > About Lazarus", > then right click on the form and you will see a popup menu with a > single option "Copy version information to clipboard". The > clipboard now contains everything you need to report. Lazarus 0.9.27 r20962M FPC 2.2.4 i386-darwin-carbon (beta) This version starts from Lazarus.app bundle, but not from command line: ./startlazarus --pcp=./config

I fixed the crash in 20963.

Note:
startlazarus under OS X must be started with the bundle path:

./startlazarus.app/Contents/MacOS/startlazarus --pcp=./config

Otherwise OS X does not give focus to an application.

Mattias

Reply by email

Giuseppe Luigi Punzi Ruiz
to Mattias Gaertner

Hi,

El 26/07/2009, a las 11:49, Mattias Gaertner escribi?:

Show quoted text 8 lines
I fixed the crash in 20963. Note: startlazarus under OS X must be started with the bundle path: ./startlazarus.app/Contents/MacOS/startlazarus --pcp=./config Otherwise OS X does not give focus to an application.

But I don't have startlazarus.app.

with (without apply your fix):
./lazarus.app/Contents/MacOS/lazarus --pcp=./config

works...what your fix do then ? :D

Giuseppe Luigi Punzi Ruiz
Blog: http://www.lordzealon.com
Twitter & Skype & GoogleTalk accounts: glpunzi

Reply by email

Mattias Gaertner
to Giuseppe Luigi Punzi Ruiz
Show quoted text 15 lines
Hi, El 26/07/2009, a las 11:49, Mattias Gaertner escribi?: > I fixed the crash in 20963. > > Note: > startlazarus under OS X must be started with the bundle path: > > ./startlazarus.app/Contents/MacOS/startlazarus --pcp=./config > > Otherwise OS X does not give focus to an application. But I don't have startlazarus.app.

Ah. I forgot it was deleted from svn.

with (without apply your fix): ./lazarus.app/Contents/MacOS/lazarus --pcp=./config works...what your fix do then ? :D

The bug was to read some bundle properties without checking the result. For example starting lazarus without bundle
./lazarus
crashed.
(Of course starting lazarus without bundle does not make much sense).

Mattias

Reply by email