Sign in Join

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

Mailing lists / lazarus / 2015-11

How can I close a Lazarus project and open another?

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Bo Berglund

I have a Lazarus project inside the IDE, which uses LNet. Now I want to close that and open one of the LNet examples in order to see how that works.
So I did this:
- Project/Close project
- This pops up a dialog asking me to do one of a list of actions
- I select the button Open Project
- Now I get a pop-up error box saying:

Access violation.

Press OK to ignore and risk data corruption.
Press Cancel to kill the program.

At this point in the background the IDE is pointing to the following path for some by me unknown reason:
pi/development/lazarus/components/lnet/lazaruspackage

So I click Cancel and Lazarus itself suddenly disappears! When I start Lazarus the next time it again loads the old test project!

And the circle repeats on and on.

How can I start Lazarus WITHOUT loading the old non-working project so I can load an example?????

Running on a Raspberry Pi2 with Raspbian Jessie and FPC3.1.1 and Lazarus 1.5.

Bo Berglund Developer in Sweden

Reply by email

Mark Morgan Lloyd
to Bo Berglund
Bo Berglund wrote 10 lines
I have a Lazarus project inside the IDE, which uses LNet. Now I want to close that and open one of the LNet examples in order to see how that works. So I did this: - Project/Close project - This pops up a dialog asking me to do one of a list of actions - I select the button Open Project - Now I get a pop-up error box saying: Access violation.

Update to latest trunk Lazarus, report as bug if it persists.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Bo Berglund
to Bo Berglund: I have a Lazarus project inside the IDE, which uses LNet. Now I want to close that and…
Bo Berglund wrote 16 lines
- Now I get a pop-up error box saying: Access violation. Press OK to ignore and risk data corruption. Press Cancel to kill the program. At this point in the background the IDE is pointing to the following path for some by me unknown reason: pi/development/lazarus/components/lnet/lazaruspackage So I click Cancel and Lazarus itself suddenly disappears! When I start Lazarus the next time it again loads the old test project! And the circle repeats on and on.

I should have waited a while...
If I do not click Cancel but OK then I get to the "Open Project File" dialog and it is located in the path mentioned above. If I now navigate down to /lnet/examples/console/lhttp and try to open the fpget.pp file in there by changing the file type in the dropdown list to "All files", then Lazarus completely locks up!!!!

No way out is given, no buttonclick works. After a considerable wait there is a new dialog box shown:

The window "Lazarus IDE v1.5 - SSCommLNet" does
not seem to be responding. Do you want to force it to exit by sending the terminate signal?
Cancel OK

Sigh, the project it is complaining about is my test project which I REALLY want to close, but Lazarus seem not to allow that.

What could I do in order to get to another project, and why does Lazarus act so strange when I want to open a pp project file rather than an lpi file?

The LNet example is a pp file which starts out at the top as follows:

program fpget;
{$mode objfpc}
{$h+}
uses
  sysutils, strutils, lnet, lhttp, lHTTPUtil, lnetSSL, URIParser;
var
  HttpClient: TLHTTPClient;
  OutputFile: file;
  Done: boolean;

So it is clearly a program file and incidentally it compiles fine in the example directory when using make all.

I cannot wrap my head around the Lazarus way of doing thigs it seems like. But locking up like this is really strange...

Is there a start argument for Lazarus like in Delphi (-np) that forces the IDE to start with NO project loaded?
This seems to be what I need in order to get away from this endless circle where I try to close the project and Lazarus crashes and comes back up with the bad project loaded again...

Bo Berglund Developer in Sweden

Reply by email

Mark Morgan Lloyd
to Bo Berglund
Bo Berglund wrote 16 lines
On Sat, 07 Nov 2015 12:35:28 +0100, Bo Berglund wrote: > - Now I get a pop-up error box saying: > > Access violation. > > Press OK to ignore and risk data corruption. > Press Cancel to kill the program. I should have waited a while... If I do not click Cancel but OK then I get to the "Open Project File" dialog and it is located in the path mentioned above. If I now navigate down to /lnet/examples/console/lhttp and try to open the fpget.pp file in there by changing the file type in the dropdown list to "All files", then Lazarus completely locks up!!!!

In that case raise a bug that the Dire Warning message that points out that you really don't want to press OK isn't adequately intelligible <sigh>.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Michael Van Ham
to Bo Berglund: I have a Lazarus project inside the IDE, which uses LNet. Now I want to close that and…

On Sat, Nov 7, 2015, 06:35 Bo Berglund wrote:

Access violation.

Running on a Raspberry Pi2 with Raspbian Jessie and FPC3.1.1 and Lazarus 1.5.

You might experience fewer frustrations using a released version of lazarus (1.4.4) instead of the in development version (1.5). -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151107/e7f222a1/attachment.html>

Reply by email

Bo Berglund
to Michael Van Ham
Michael Van Ham wrote 9 lines
On Sat, Nov 7, 2015, 06:35 Bo Berglund wrote: Access violation. Running on a Raspberry Pi2 with Raspbian Jessie and FPC3.1.1 and Lazarus 1.5. You might experience fewer frustrations using a released version of lazarus (1.4.4) instead of the in development version (1.5).

Does Lazarus 1.4.4 work with FPC 3.1.1?

I initially installed svn trunk for both FPC and Lazarus after looking around at how to install these on Raspbian Jessie and found numerous websites saying it was not working trying to get release versions running.
So then I found one that guided me into installing FPC and Lazarus on Jessie, but this guide used svn to retrieve the bleeding edge trunk.. So it got me FPC 3.1.1 (svn something which I don't know how to see) and Lazarus 1.5 svn 50059.

If I would like to backtrack to a release version of fpc and lazarus, how would I go about getting out of the trunk versions? I do have both fpc and lazarus sources checked out via svn (in different places since fpc is installed as root whereas Lazarus is installed by user pi).

I think you are probably correct in saying I should use the release versions.... ;)

I am positively not an expert in these things on Linux having worked about 20 years with Delphi on Windows...

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Mark Morgan Lloyd: Update to latest trunk Lazarus, report as bug if it persists. Mark Morgan Lloyd markMLl…
Mark Morgan Lloyd wrote 13 lines
Bo Berglund wrote: > I have a Lazarus project inside the IDE, which uses LNet. > Now I want to close that and open one of the LNet examples in order to > see how that works. > So I did this: > - Project/Close project > - This pops up a dialog asking me to do one of a list of actions > - I select the button Open Project > - Now I get a pop-up error box saying: > > Access violation. Update to latest trunk Lazarus, report as bug if it persists.

Do you mean making a svn update command in the root of lazarus? And then rebuild it:
time make bigide

I guess I don't have to re-install lazarus again, or do I? sudo make install

Or am I going totally wrong here? I'm getting an increasing number of folder trees containing fpc and lazarus sources....

Bo Berglund Developer in Sweden

Reply by email