Recent

Author Topic: Strange Error  (Read 1953 times)

liewald

  • Full Member
  • ***
  • Posts: 135
Strange Error
« on: April 01, 2014, 01:14:04 pm »
I wasn't quite sure what section to put this in!

Setup (Lazarus 1.2.0 rexported FPC 2.6.2 x86_64-linux-gtk 2)

just upgraded and I'm trying to  create an oncreate event on a form and I'm getting an error where a new unit is created containing

program main;

uses unit0001;

begin
  p1;
end.

and  the following is error generated in messages

/usr/share/fpcsrc/2.6.2/tests/webtbs/tw17907/main/main.pas(1,1) Error: source is not unit


Any Ideas anyone ?




liewald

  • Full Member
  • ***
  • Posts: 135
Re: Strange Error
« Reply #1 on: April 01, 2014, 01:23:23 pm »
Changed form unitname and it works now

but there's something strange lurking in there folks!!!

eny

  • Hero Member
  • *****
  • Posts: 1609
Re: Strange Error
« Reply #2 on: April 01, 2014, 05:07:11 pm »
but there's something strange lurking in there folks!!!
A problem description that lacks the source files to investigate problem.
Strange indeed!
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

liewald

  • Full Member
  • ***
  • Posts: 135
Re: Strange Error
« Reply #3 on: April 04, 2014, 11:09:55 am »
there were not really any source files I just renamed the default form to main and saved it blank!

 

TinyPortal © 2005-2018