Recent

Author Topic: Why does Lazarus not work?  (Read 7638 times)

BertH

  • New Member
  • *
  • Posts: 28
Why does Lazarus not work?
« on: July 02, 2010, 04:50:56 pm »
I am new to Lazarus with some experience in  Turbo Delphi. I tried to learn from Lazarus so I copied one of the examples, Addressbook, to another directory under Lazarus so I could play around without damaging the original. Surprise the copied addressbook could not be compiled while the original compiled OK. Starting a new project simple like Hello World in the new directory worked OK.
What are the prerequisites to copy a project?

I have been reading in the Wiki documentation but could not find an answer.

Are there other sources for documentation?

Thanks for your help.
Bert

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12296
  • Debugger - SynEdit - and more
    • wiki
Re: Why does Lazarus not work?
« Reply #1 on: July 02, 2010, 05:08:59 pm »
What error message did you get?

BertH

  • New Member
  • *
  • Posts: 28
Re: Why does Lazarus not work?
« Reply #2 on: July 03, 2010, 09:58:42 am »
It looks like the compilation is finished ok. Then the Lazarus logo appears, and is locked on the screen, and the error is "unknown". The Lazarus program is not responding anymore. Sorry for the Dutch language used. I am using Vista 32. Hope the attached screenshot helps to understand what happens.

Bert

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Why does Lazarus not work?
« Reply #3 on: July 03, 2010, 10:04:37 am »
You'll have to post a copy of the project you're working on for us to test on our machines. In the meantime, have no fear
LAZARUS WORKS!  :D
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

BertH

  • New Member
  • *
  • Posts: 28
Re: Why does Lazarus not work?
« Reply #4 on: July 03, 2010, 10:11:41 am »
I copied all files from the c:\Lazarus\Examples\addressbook directory to a new directory c:\lararus\lasarus projects. Then gave the run command and there it stopped with the resulst as given.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4709
  • I like bugs.
Re: Why does Lazarus not work?
« Reply #5 on: July 03, 2010, 11:12:32 am »
and is locked on the screen, and the error is "unknown".

No, the screen is not locked. There is a modal dialog waiting for your response. Did you even try to click the buttons? Why not?

"Break" moves you to the problematic source line.
"Doorgaan" continues the program execution.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Laksen

  • Hero Member
  • *****
  • Posts: 802
    • J-Software
Re: Why does Lazarus not work?
« Reply #6 on: July 03, 2010, 12:50:24 pm »
I could not reproduce it.

Please give some more information. Lazarus version? What path did you put the address-book example in?

BertH

  • New Member
  • *
  • Posts: 28
Re: Why does Lazarus not work?
« Reply #7 on: July 03, 2010, 01:10:28 pm »
Quote
No, the screen is not locked. There is a modal dialog waiting for your response. Did you even try to click the buttons? Why not?

I tried both buttons, I have to move the window from behind the Lasarus logo, which cannot be moved or removed.
When I click "Break" an assembler window appears. If that points to the problematic source line it is chinese to me.
I have to restart my PC to get rid of the non responding Lasarus windows and the logo.
I'll uninstall Lazarus and re-install it again. I'll let you know what the result is.

Bert

BertH

  • New Member
  • *
  • Posts: 28
Re: Why does Lazarus not work?
« Reply #8 on: July 03, 2010, 01:51:25 pm »
Here I am again. I re-installed Lazarus and copied the Addressbook file from examples to my \lazarus\projectA directory.
I discovered that the Tab "Project" and used that to open my copied addressbook. After Run it worked! I used to go to the TAB "File" to point to the Addressbook.lpi file to open de application. When I used that again it also worked ok. So it is no proof that that was the reason why it did not work before. Anyway I wil now start to play with Lazarus and learn to use it.

Thank you all for your help and suggestions.

Part of my original question was also if there were other, that the Wiki, sources for learning to work with Lazarus. Is lazarus so identical to Delphi that i can still use the "About Dephi" programming site for instructions?

Thanks
Bert

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4709
  • I like bugs.
Re: Why does Lazarus not work?
« Reply #9 on: July 04, 2010, 09:50:29 am »
Quote from: BertH
I tried both buttons, I have to move the window from behind the Lasarus logo, which cannot be moved or removed.
When I click "Break" an assembler window appears. If that points to the problematic source line it is chinese to me.

I don't why Lazarus logo is still there. It should go away when the IDE starts.
You get the assembly window because the program has no debug info, or (more likely) because there is no debugger defined. See:
  Environment -> Options -> Debugger
It should be GDB. Try debugging some prog. There should be blue dots at the editor left edge indicating you have debug info there.

Quote
I discovered that the Tab "Project" and used that to open my copied addressbook. After Run it worked!

Yes. Project -> Open Project... is the right place. Reinstalling was not really needed.


Quote
Part of my original question was also if there were other, that the Wiki, sources for learning to work with Lazarus. Is lazarus so identical to Delphi that i can still use the "About Dephi" programming site for instructions?

Yes, the Delphi sites and documentation can be used especially when learning. Studying example programs is a good way, too.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

BertH

  • New Member
  • *
  • Posts: 28
Re: Why does Lazarus not work?
« Reply #10 on: July 04, 2010, 11:47:17 am »
Thank you for for your answer. I'll have to spend some time to learn and experience where Delphi and Lazarus differ. This forum is very educational also.

Bert

 

TinyPortal © 2005-2018