Sign in Join

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

Mailing lists / lazarus / 2008-07

Help!!! Runtime Exception: No widgetset object

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Peter Williams

Hi All,

I managed to successfully compile (Build) my Lazarus app without any error, warnings or hints. However, when I run it I get a runtime exception error:

Project Frog Retro Remake Game raised exception class 'Exception' with message:
No widgetset object. Plz check if the unit "interfaces" was added to the programs uses clause.

[OK] { button }

File "frog.lpr" ----------------------------------
program frog;
{$MODE Delphi}

uses
Forms,
MainUnit in 'MainUnit.pas' {MainForm},
uFixedWidthFonts in 'uFixedWidthFonts.pas',
FrameUnit in 'FrameUnit.pas' {TabFrame: TFrame},
PagesDlgUnit1 in 'PagesDlgUnit1.pas' {PagesDlg},
PlayAgainUnit in 'PlayAgainUnit.pas' {PlayAgainForm},

  IniFiles in 'IniFiles.pas', screen_strings;
{$R frog1.res}
begin
  Application.Initialize;
  Application.Title:='Frog Retro Remake Game';
  Application.CreateForm(TMainForm, MainForm);
  Application.Run;
end.
end of File "frog.lpr"--------------------------------

Fond Regards and Best Wishes
PEW

Fond Regards, Peter Eric (aka 'pew') WILLIAMS My free website is: http://pewtas.googlepages.com (or) http://tinyurl.com/yuyejs (please visit my free website and let me know what you think about it.) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080801/399c4505/attachment.html

Reply by email

Mattias Gaertner
to Peter Williams
Show quoted text 10 lines
Hi All, I managed to successfully compile (Build) my Lazarus app without any error, warnings or hints. However, when I run it I get a runtime exception error: Project Frog Retro Remake Game raised exception class 'Exception' with message: No widgetset object. Plz check if the unit "interfaces" was added to the programs uses clause.

What part of the message do you not understand?

Show quoted text 25 lines
[OK] { button } File "frog.lpr" ---------------------------------- program frog; {$MODE Delphi} uses Forms, MainUnit in 'MainUnit.pas' {MainForm}, uFixedWidthFonts in 'uFixedWidthFonts.pas', FrameUnit in 'FrameUnit.pas' {TabFrame: TFrame}, PagesDlgUnit1 in 'PagesDlgUnit1.pas' {PagesDlg}, PlayAgainUnit in 'PlayAgainUnit.pas' {PlayAgainForm}, IniFiles in 'IniFiles.pas', screen_strings; {$R frog1.res} begin Application.Initialize; Application.Title:='Frog Retro Remake Game'; Application.CreateForm(TMainForm, MainForm); Application.Run; end. end of File "frog.lpr"--------------------------------

Mattias

Reply by email

Peter Williams
to Mattias Gaertner

Hi Mattias & All,

2008/8/1 Mattias Gaertner

Show quoted text 16 lines
On Fri, 1 Aug 2008 00:52:28 +1000 "Peter Williams" wrote: > Hi All, > > I managed to successfully compile (Build) my Lazarus app without any > error, warnings or hints. However, when I run it I get a runtime > exception error: > > Project Frog Retro Remake Game raised exception class 'Exception' with > message: > No widgetset object. Plz check if the unit "interfaces" was added to > the programs uses clause. What part of the message do you not understand?

Okay... I've been to bed and had some sleep... so now I'm thinking a little clearer. *SMILE*

When I first saw that message I thought that I needed to add "{$ Interfaces}" to my code. However, I now realize that I needed to add "Interfaces" to my "frog.lpr" uses clause.

I can now compile and run my unit... However, it still needs debugging.

For those interested, it is basically a TForm with a TPaintBox and I have a unit which reads a M$ Windowz bitmap (e.g. a .BMP file) of a bitmap font. The unit can paint the bitmap font to the TPaintBox with any colour text or background, and even in reverse video.

It's designed to mimic the fonts use on old Commodore PET computers (circa
1977) which had a mono green screen etc etc. Thats why its called "Frog Retro Remake Game" e.g. it's a "Retro" game.

I'll probably post a few more messages about how I'm going debugging it. *SMILE*

Best Regards,
PEW
from Hobart, 'Down Under'

Show quoted text 34 lines
> [OK] { button } > > File "frog.lpr" ---------------------------------- > program frog; > > {$MODE Delphi} > > uses > Forms, > MainUnit in 'MainUnit.pas' {MainForm}, > uFixedWidthFonts in 'uFixedWidthFonts.pas', > FrameUnit in 'FrameUnit.pas' {TabFrame: TFrame}, > PagesDlgUnit1 in 'PagesDlgUnit1.pas' {PagesDlg}, > PlayAgainUnit in 'PlayAgainUnit.pas' {PlayAgainForm}, > IniFiles in 'IniFiles.pas', screen_strings; > > {$R frog1.res} > > begin > Application.Initialize; > Application.Title:='Frog Retro Remake Game'; > Application.CreateForm(TMainForm, MainForm); > Application.Run; > end. > end of File "frog.lpr"-------------------------------- Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Fond Regards, Peter Eric (aka 'pew') WILLIAMS My free website is: http://pewtas.googlepages.com (or) http://tinyurl.com/yuyejs (please visit my free website and let me know what you think about it.) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20080801/1aed0c4d/attachment-0003.html>

Reply by email