Recent

Author Topic: Lazarus Project gives problem on other machines.  (Read 14777 times)

The_Marlboro_Man

  • New Member
  • *
  • Posts: 33
Lazarus Project gives problem on other machines.
« Reply #15 on: November 21, 2007, 08:55:56 am »
Tibor, I have been thinking about the 64 bit thing and, well, I am not sure that AMD specifics would go well with Intel processors, wouldn´t they?. I think I will have to wait until a 64 bit Ubuntu for Intel or just go the 32 bit way... That´s regarding Ubuntu itself.

I could try the 64 bit version of Lazarus but first will have to figure out a way of using the Red Hat Packages in Ubuntu and, of course, how to install it... No problem here on uninstalling Lazarus and installing it again :).

As for the classroom environment, I didn´t thought of that possibility but, of course, I didn´t know about it either ;). I will take a look at the website you point out and see if the teachers here agree with the method. Thanks a lot :).

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Lazarus Project gives problem on other machines.
« Reply #16 on: November 21, 2007, 11:05:47 am »
About 32/64 bit OS, you can perfectly run an 32bit OS on a 64bit CPU (just look all windows PCs shipped the last few years, all 64 CPU and 32bit OS). Also running 32bit apps on a 64bit linux doesn't have to be a problem if your distro supports it (I'm running a virtual fc8-64 and it installs all libs for 32and64bit, so I can compile and run a 32bit or a 64bit lazarus).

The reason I asked is that using 64bit lazarus/fpc there might be some issues, since it is less tested.

About running:
when no debugger is specified, you run a "special" kind of debugger: it only executes the process. Maybe there goes something wrong. This is also less tested, since mostly you will run your app in a debugger.
Can you try to set a debugger and see if it still crashes ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

The_Marlboro_Man

  • New Member
  • *
  • Posts: 33
Lazarus Project gives problem on other machines.
« Reply #17 on: November 21, 2007, 12:19:43 pm »
Okay then, I am running the 32 bit version of Lazarus (I guess, I just did "Synaptic" and installed Lazarus so it would take care itself of its dependencies) on a 64 bit computer but it shouldn´t have problems like that, so I´ll leave the 32 bit thing running.

As for the debugger, of course, where I could get one?. If I can figure out how to set it up I will try it... I am sure something goes wrong with that but there must be something else as I have experienced a couple of random crashes... At first I thought it could be "Compiz-fusion" installed on my computer but if I set it to run regular "metacity" I still have crashes...

Oh, one more thing, I think I always get the thing to compile and run in an empty project, I mean, when I open Lazarus it always starts an empty form... I can run that. I think I can add some things to it but at some point it just crashes. Maybe that can help to point at the problem?.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Lazarus Project gives problem on other machines.
« Reply #18 on: November 21, 2007, 05:23:52 pm »
Random crashes sounds like bad ram, bad hardware (check if your cooling fan on the nothbridge is still running) or bad drivers.

You can set the debugger in debugger options, choose gdb. and select the path where it resides. (usually /usr/bin)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

The_Marlboro_Man

  • New Member
  • *
  • Posts: 33
Lazarus Project gives problem on other machines.
« Reply #19 on: November 21, 2007, 06:08:28 pm »
Back again :). I set the location of the GDB debugger in Lazarus and now we have an improvement: when hitting F9 it doesn't crash but doesn't do anything... Lazarus announces "debugging" on its title but no application is launched. Also, I just started a new project to test this problem and I wanted to talk a bit about it:

When getting home I tried to replicate a small Delphi project into Lazarus... I created the components, pasted the code and got the error. Later I just did it all again and got no errors with the program (!!!). Still, when I get the error and look into the "Task Manager" I see that there are "project1" applications running along with a "lazarustart" process. ¿Bad FPC?...

I am a bit lost about this. I will try and start rebuilding the project all over again and see if I still have problems.

Edit: I happen to have copies of the files of both projects, the working and non working one... I have compared the .pas files and they don't seem different BUT the lpr files indeed ARE different: the non working one lacks the lines "{ add your units here },  Unit1;" and "Application.CreateForm(TFormulario, Formulario);"... I reckon this may explain why I don't get the application to run but... Why the crash?. I'll try and investigate further into this :).

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Lazarus Project gives problem on other machines.
« Reply #20 on: November 22, 2007, 10:56:09 am »
this line:
Code: [Select]
Application.CreateForm(TFormulario, Formulario); creates your form. Without form the application will run, but won't show anything
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

The_Marlboro_Man

  • New Member
  • *
  • Posts: 33
Lazarus Project gives problem on other machines.
« Reply #21 on: November 22, 2007, 11:21:49 am »
Hehe, I suspected that ;). I guess that I never actually understood the nature of the "Project" and "File" menus... Yesterday, after thinking a bit about it, I enjoyed a really productive session of programming wih Lazarus :D!.

I still can´t explain why Lazarus crashes if no form is created and why I experience some random crashes (for example, sometimes, when I select any property from an object it will just crash) but that´s nothing I can´t deal with by using a large amount of "Save all" :).

Thanks again, Marc.

 

TinyPortal © 2005-2018