Click here to Skip to main content
15,881,828 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionmemcpy, not understanding something Pin
bkelly1311-Mar-13 14:11
bkelly1311-Mar-13 14:11 
AnswerRe: memcpy, not understanding something Pin
H.Brydon11-Mar-13 14:41
professionalH.Brydon11-Mar-13 14:41 
GeneralRe: memcpy, not understanding something Pin
bkelly1311-Mar-13 14:53
bkelly1311-Mar-13 14:53 
AnswerRe: memcpy, not understanding something Pin
Richard MacCutchan11-Mar-13 22:35
mveRichard MacCutchan11-Mar-13 22:35 
GeneralRe: memcpy, not understanding something Pin
Dale Burr28-Apr-13 22:01
Dale Burr28-Apr-13 22:01 
Questionmember char array is bad pointer Pin
bkelly139-Mar-13 16:41
bkelly139-Mar-13 16:41 
AnswerRe: member char array is bad pointer Pin
Richard MacCutchan9-Mar-13 22:40
mveRichard MacCutchan9-Mar-13 22:40 
GeneralUnexpected result Pin
bkelly1310-Mar-13 6:09
bkelly1310-Mar-13 6:09 
Following your advice I found some completely unexpected results. Skipping some steps here is the situation. From code in the dialog box the TCP client class is created as follows:

C#
try
{
   mp_C_TCP_Client = new C_TCP_Client( mp_C_Log_Writer,
      C_TCP_DEFAULT_SOCKET_PORT,
      C_TCP_DEFAULT_IP_ADDRESS  );
   last_error = GetLastError();

} catch( ... ) {...} 


Before stepping over the new statement, the port number is 49000 and the IP address is 192.168.2.2. Further down is this fragment:

C#
if( mp_C_TCP_Client != NULL )
{
   mp_C_TCP_Client->Set_Log_Sequence_Match(      m_log_sequence_miss_match );


In the debugger the variable m_log_sequence_miss_match shows up as false, expected.

After stepping over the new statement, which does not catch any exception, the debugger no longer displays any value for that variable. It does not show a value for last_error = GetLastError().

When a break point is put in the constructor the arguments, correct before the new statement, are not correct within the constructor.

I presume there is something wrong with the new operation, but the debugger continues to step through the code in the constructor of the just created object. The values of the variable are clearly incorrect, but the debugger keeps on stepping.

BTW: here is a critical declaration:
C_TCP_Client *mp_C_TCP_Client;

I have been working on this code for a while and construction of the object has been fine. As usual, I do not recall making any changes that would affect the object's construction.

I do not know how to interpret these symptoms.
Thanks for your time

GeneralRe: member char array is bad pointer Pin
bkelly1310-Mar-13 7:29
bkelly1310-Mar-13 7:29 
GeneralRe: member char array is bad pointer Pin
Richard MacCutchan10-Mar-13 8:04
mveRichard MacCutchan10-Mar-13 8:04 
Generalresolved, with many curses directed at myself Pin
bkelly1310-Mar-13 7:38
bkelly1310-Mar-13 7:38 
GeneralRe: resolved, with many curses directed at myself Pin
Richard MacCutchan10-Mar-13 8:05
mveRichard MacCutchan10-Mar-13 8:05 
GeneralRe: resolved, with many curses directed at myself Pin
Albert Holguin10-Mar-13 14:27
professionalAlbert Holguin10-Mar-13 14:27 
GeneralRe: resolved, with many curses directed at myself Pin
bkelly1310-Mar-13 15:44
bkelly1310-Mar-13 15:44 
GeneralRe: resolved, with many curses directed at myself Pin
Albert Holguin10-Mar-13 15:49
professionalAlbert Holguin10-Mar-13 15:49 
Generalsomething new to me Pin
bkelly1310-Mar-13 16:14
bkelly1310-Mar-13 16:14 
GeneralRe: something new to me Pin
Albert Holguin11-Mar-13 7:53
professionalAlbert Holguin11-Mar-13 7:53 
Questionrookie need help with STL Pin
spawn200420-Feb-13 7:40
spawn200420-Feb-13 7:40 
AnswerRe: rookie need help with STL Pin
Jonathan Davies21-Feb-13 1:05
Jonathan Davies21-Feb-13 1:05 
AnswerRe: rookie need help with STL Pin
Rahul from Poona23-Feb-13 22:26
Rahul from Poona23-Feb-13 22:26 
Questionlocals not valid in debugger Pin
bkelly1313-Feb-13 3:13
bkelly1313-Feb-13 3:13 
AnswerRe: locals not valid in debugger Pin
Richard MacCutchan13-Feb-13 3:18
mveRichard MacCutchan13-Feb-13 3:18 
GeneralRe: locals not valid in debugger Pin
bkelly1313-Feb-13 3:51
bkelly1313-Feb-13 3:51 
AnswerRe: locals not valid in debugger Pin
Albert Holguin13-Feb-13 4:42
professionalAlbert Holguin13-Feb-13 4:42 
GeneralRe: locals not valid in debugger Pin
Richard MacCutchan13-Feb-13 5:36
mveRichard MacCutchan13-Feb-13 5:36 

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.