Recent

Author Topic: IDE launches wrong form  (Read 21028 times)

wes12

  • New Member
  • *
  • Posts: 21
IDE launches wrong form
« Reply #15 on: April 13, 2005, 04:03:44 pm »
Quote from: "Vincent"
Does this still occurs with the current CVS version (or the snapshot at http://www.ca.freepascal.org/Lazarus)?

I can't get the snapshot  (the address in the quote above has been corrected) - the download gives me a 114K exe file that says its been corrupted. I haven't got a CVS running yet.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
IDE launches wrong form
« Reply #16 on: April 13, 2005, 05:04:59 pm »
Thanks for the notification. It is fixed now.

Anonymous

  • Guest
IDE launches wrong form
« Reply #17 on: April 13, 2005, 07:45:13 pm »
Right now I downloaed and compiled the newest sources, but the same bug.

After I modified "{ $I Unit1.Lrs }" to  "{$I Unit1.Lrs}" it worked.
But I have still in a new project this directive "{ $I Unit1.Lrs }". Can you please fix it.

I think it's just a smal fix.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
IDE launches wrong form
« Reply #18 on: April 13, 2005, 08:42:18 pm »
It would be a small fix, if I could reproduce it.

I downloaded the 20050403 installer for windows and installed.

I created a new project and it had the lines:
initialization
  {$I unit1.lrs}

So, can you give exact steps to reproduce this error? Then I can give it a try.

BobD

  • New Member
  • *
  • Posts: 22
IDE launches wrong form
« Reply #19 on: April 14, 2005, 12:17:47 am »
When I start a new project I get:
initialization
  {$I unit1.lrs}

So, I guess this bug does not affect my situation.  I'm using Laz 0.9.4 beta on Linux.

Getting rid of duplicate unit1.pas files seems to correct the problem so far but it seems
odd that I'd have to do that.  Does Laz remember all the dirs that it has saved projects in?
Or, maybe just the last one?

Bob

wes12

  • New Member
  • *
  • Posts: 21
IDE launches wrong form
« Reply #20 on: April 14, 2005, 09:58:07 am »
Quote from: "Vincent"
It would be a small fix, if I could reproduce it.
.. So, can you give exact steps to reproduce this error? Then I can give it a try.

Vincent - The exact steps don't seem to produce the same result on your system.  I'm only clicking Project/New Project or File/New, and then choosing Application. But when I checked again, this problem doesn't seem to occur on Win98SE, only Win2KPro. Perhaps from Guest comments above it also occurs on XP? I'll try to find a cause for the bug on my W2K system.
Quote from: "BobD"
So, I guess this bug does not affect my situation. I'm using Laz 0.9.4 beta on Linux.

Bob - At one point I reached a similar situation to yours when trying to save a project with this bug. I think that your problem is caused by something that Lazarus lets you do when it shouldn't, rather than a outright bug.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
IDE launches wrong form
« Reply #21 on: April 14, 2005, 10:38:33 am »
In the early days it depended on how you configured your Codetools options - space
this was fixed last year, maybe it got reintroduced
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

wes12

  • New Member
  • *
  • Posts: 21
IDE launches wrong form
« Reply #22 on: April 14, 2005, 10:58:18 am »
Marc - Thanks for the tip. Looks like the bug slipped back in!

My system generates:
  { $ I Unit1.Lrs}

I checked my Codetools options/Space.
In space before I only had number checked. When I unchecked it, I got:
  {$ I Unit1.Lrs}
which was better, but not correct.

In space after, when I  unchecked number, I got:
  {$I Unit1.Lrs}

Bug indentified!!

waituntilthis

  • New Member
  • *
  • Posts: 24
Re: IDE launches wrong form
« Reply #23 on: September 30, 2019, 08:56:05 am »
the compiler is not the issue here, I still work with the 1.9.8 version
Look under project -> project options   which form is auto created as first. That form will show

thanks marc! I was searching for this answer since i'm also new but I couldn't find anything about it, so you've been a great help!

 

TinyPortal © 2005-2018