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