Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-08

Form has no components and have to be forcibly killed

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Samps

Lazarus from SVN, rev. 46030, compiled with FPC 2.6.2 on Linux 64-GTK2

Simple project with just a button on a form:

procedure TForm1.Button1Click(Sender: TObject);
begin
  close;
end;

Expected behaviour when hitting F9 would be a form with a button that's capable of making the form disappear.

What I get is: A blank form, no button. This form can be killed by clicking on the X in its system menu, after which I am returned to the GUI.

Compiled execuatbles made with Ctrl+F9 and run from disk work as expected.

I am unsure when this anomaly was introduced, as I have been away for quite a few SVN revisions.

cheers
Samps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140812/f686433c/attachment.html>

Reply by email

Mattias Gaertner
to Samps
Show quoted text 5 lines
[...] Expected behaviour when hitting F9 would be a form with a button that's capable of making the form disappear. What I get is: A blank form, no button.

Maybe the lfm is not loaded.
Check your directive {$R *.lfm}.
Try building clean.

Mattias

Reply by email

samps okholm
to Mattias Gaertner

On Tue, Aug 12, 2014 at 7:51 PM, Mattias Gaertner <

Show quoted text 18 lines
wrote: On Tue, 12 Aug 2014 14:37:41 +0930 Samps wrote: >[...] > Expected behaviour when hitting F9 would be a form with a button that's > capable of making the form disappear. > > What I get is: A blank form, no button. Maybe the lfm is not loaded. Check your directive {$R *.lfm}. Try building clean. Mattias

I actually thought I was building 'clean'...

This is the script I use to get the latest SVN version, compile it and run it:

#!/bin/bash
cd /home/samps && svn update lazarus
echo " "
echo "Check-out complete. Hit [Enter] to compile or Ctrl+C to cancel" read contscr
cd lazarus && make clean all && ./lazbuild --build-ide= echo " "
echo "Compilation complete Hit [Enter] to launch Lazarus or Ctrl+C to cancel"
read contscr
cd ~/lazarus
./lazarus

Samps

Show quoted text 6 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140812/e975ad37/attachment.html>

Reply by email

Mattias Gaertner
to samps okholm
Show quoted text 20 lines
On Tue, Aug 12, 2014 at 7:51 PM, Mattias Gaertner < > wrote: > On Tue, 12 Aug 2014 14:37:41 +0930 > Samps wrote: > > >[...] > > Expected behaviour when hitting F9 would be a form with a button that's > > capable of making the form disappear. > > > > What I get is: A blank form, no button. > > Maybe the lfm is not loaded. > Check your directive {$R *.lfm}. > Try building clean. > > Mattias > > I actually thought I was building 'clean'...

I meant your project. Maybe you have a wrong ppu or lfm file in your output directory.

Mattias

Reply by email

Václav Valíček
to Mattias Gaertner

I'm not sure, but IMO it's something connected with debugger... In my lazarus (linux, x64, gtk2) it have sometimes same behavior.... When I run project (new, empty, just button) by F9 (time by time) it shows just empty form. Running executable from bash (same, without recompilation) makes no problem... It appears for simple in lets say 10% of F9 hits...

V?clav Val??ek

Dne 12.8.2014 v 12:46 Mattias Gaertner napsal(a):

Show quoted text 32 lines
On Tue, 12 Aug 2014 20:09:29 +0930 samps okholm wrote: > On Tue, Aug 12, 2014 at 7:51 PM, Mattias Gaertner < >> wrote: >> On Tue, 12 Aug 2014 14:37:41 +0930 >> Samps wrote: >> >>> [...] >>> Expected behaviour when hitting F9 would be a form with a button that's >>> capable of making the form disappear. >>> >>> What I get is: A blank form, no button. >> Maybe the lfm is not loaded. >> Check your directive {$R *.lfm}. >> Try building clean. >> >> Mattias >> >> > I actually thought I was building 'clean'... I meant your project. Maybe you have a wrong ppu or lfm file in your output directory. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email