Click here to Skip to main content
14,361,948 members

ATL / WTL / STL

 
GeneralRe: reasons Pin
Richard MacCutchan6-Jul-14 5:44
protectorRichard MacCutchan6-Jul-14 5:44 
GeneralRe: reasons Pin
bkelly137-Jul-14 15:03
memberbkelly137-Jul-14 15:03 
GeneralRe: reasons Pin
Richard MacCutchan7-Jul-14 23:04
protectorRichard MacCutchan7-Jul-14 23:04 
Questionfriend declaration causes undeclared identifier Pin
bkelly1330-Jun-14 6:55
memberbkelly1330-Jun-14 6:55 
AnswerRe: friend declaration causes undeclared identifier Pin
Subrat 470826612-Sep-14 16:20
memberSubrat 470826612-Sep-14 16:20 
Questiondestructor not being called (Resolved) Pin
bkelly1326-Jun-14 17:17
memberbkelly1326-Jun-14 17:17 
AnswerRe: destructor not being called Pin
Orjan Westin26-Jun-14 23:26
professionalOrjan Westin26-Jun-14 23:26 
GeneralRe: destructor not being called Pin
bkelly1327-Jun-14 14:06
memberbkelly1327-Jun-14 14:06 
Here is the procedure that is started as the new thread. It instantiates a class then runs the main method of that class.
unsigned int __stdcall  Start_Server_As_Thread( void * p_void_pointer )
{
    C_Server_Thread    *mp_C_Server_Thread = NULL;
    WCHAR m_log_file_text[ MAX_LOG_STRING_LENGTH ];


      mp_C_Server_Thread =  new C_Server_Thread( p_void_pointer );

        // Call the main method of the class.  When this method returns,
        // the thread exits.
      mp_C_Server_Thread->Main_Thread_Loop();

      delete mp_C_Server_Thread;
      mp_C_Server_Thread = NULL;

        // We are all done.  End this thread.
    _endthreadex( 0 );

    return 0;
}


That class is declared as follows
class C_Server_Thread
{...}


The class it creates is declared:

class C_TCP_API_Server
{...}


Class C_Server_Thread manages all the overhead and communications between the main app and the thread. It instantiates C_TCP_API_Server, which does all the low level work of establishing a TCP/IP link with the client and sending the data.

Does that provide any useful information?

Edit: I continue to work this and am not certain where the problem is, but am becoming more certain that PEBKAC (Problem Exists Between Keyboard And Chair). It is looking more and more like a logic error in how I end this thing. Class C_Server_Thread could be in any of several states when it gets the event to exit. (Not connected to client, connected to client, sending data, etc) I need to work over the logic of what should be done for each state to ensure an orderly shutdown, not to mention complete shutdown.
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com



modified 27-Jun-14 21:26pm.

Questionarray of static text controls Pin
bkelly1322-Jun-14 10:35
memberbkelly1322-Jun-14 10:35 
AnswerRe: array of static text controls Pin
Albert Holguin26-Jun-14 11:48
professionalAlbert Holguin26-Jun-14 11:48 
Questionneed help selecting a string type Pin
bkelly1313-Jun-14 5:27
memberbkelly1313-Jun-14 5:27 
AnswerRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 8:13
protectorRichard MacCutchan13-Jun-14 8:13 
GeneralRe: need help selecting a string type Pin
bkelly1313-Jun-14 8:39
memberbkelly1313-Jun-14 8:39 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 22:31
protectorRichard MacCutchan13-Jun-14 22:31 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 10:47
memberbkelly1314-Jun-14 10:47 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 11:05
protectorRichard MacCutchan14-Jun-14 11:05 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 16:53
memberbkelly1314-Jun-14 16:53 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 22:08
protectorRichard MacCutchan14-Jun-14 22:08 
Generalgoing heavy Pin
bkelly1316-Jun-14 14:49
memberbkelly1316-Jun-14 14:49 
GeneralRe: going heavy Pin
Richard MacCutchan16-Jun-14 22:24
protectorRichard MacCutchan16-Jun-14 22:24 
GeneralRe: need help selecting a string type Pin
Theo Buys6-Aug-15 6:31
memberTheo Buys6-Aug-15 6:31 
QuestionEnd a socket listen() operation Pin
bkelly133-Jun-14 9:26
memberbkelly133-Jun-14 9:26 
AnswerRe: End a socket listen() operation Pin
Albert Holguin5-Jun-14 10:41
professionalAlbert Holguin5-Jun-14 10:41 
GeneralRe: End a socket listen() operation Pin
bkelly1313-Jun-14 5:17
memberbkelly1313-Jun-14 5:17 
Questiondetect event in MFC dialog Pin
bkelly1331-May-14 12:51
memberbkelly1331-May-14 12:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.