Page 1 of 1

rebar sample crashes

Posted: Sat Mar 14, 2009 11:04 am
by Detlef Hoefner
Hi All,

i wanted to study the class tPanel and tried to build the FWH sample 'rebars.exe'.
But the exe file crashes at start withe the following log:

Code: Select all

   Error description: Error BASE/1004  Class: 'NIL' has no exported method: NCOUNT
   Args:
     [   1] = U   

Stack Calls
===========
   Called from:  => NCOUNT(0)
   Called from: .\source\classes\WINDOW.PRG => (b)TWINDOW:TWINDOW(0)
   Called from:  => TPANEL:SETBRUSH(0)
   Called from: .\source\classes\TPanel.PRG => TPANEL:NEW(0)
   Called from: rebars.prg => MAIN(15)
 
What could be wrong there?

Thanks and regards,
Detlef

Re: rebar sample crashes

Posted: Sat Mar 14, 2009 4:08 pm
by Antonio Linares
Detlef,

That error has been fixed in FWH 9.02 (it is listed in the published whatsnew).

You can fix it this way:

1) Class TPanel line 53:

Code: Select all

   if ! Empty( ::oWnd:hWnd )
      ::Create()
      ::oWnd:AddControl( Self )
      if ::oWnd:oBrush != nil
         ::SetBrush( ::oWnd:oBrush )
      endif   
   else
      ::oWnd:DefControl( Self )
   endif
 
2) Class TFolder line 193, add this new line:

Code: Select all

   ::lTransparent = .F.