FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Run time error: tSocket
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Run time error: tSocket
Posted: Wed Sep 25, 2013 05:01 PM
Some of my clients have recently reported that, when the system has an error and shuts down, when trying to start the program again, the get the message:

You must create a main window in order to use a tsocket object.

There are two problems with this error:
1) My Main function creates a main window from which everything else derives
2) None of my coding calls tSocket !

The problem started occurring with the 13.07 release. Because tSocket is not called by anything in my program, it must be called by a FWH or Harbour routine.

Any thoughts on how to fix this ?

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Run time error: tSocket
Posted: Wed Sep 25, 2013 05:59 PM
Tim,

Please add this function to your main PRG:

Code (fw): Select all Collapse
function TSocket()

   local error 

   error += 1  // any error here so we can see the calls stack from the FiveWin error system
 
return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion