... the program (probably in FWH code) winmain() is being called and the main window object is expected to be returned, not nil as yours is returning. Traditionally, we use function Main() as the starting program function. Try changing your winMain() to Main(). Regards, James