Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Window Position Pin
pasztorpisti18-Aug-13 23:47
pasztorpisti18-Aug-13 23:47 
QuestionSometimes it can not draw out graph Pin
xieeevil18-Aug-13 17:04
xieeevil18-Aug-13 17:04 
AnswerRe: Sometimes it can not draw out graph Pin
Richard MacCutchan18-Aug-13 20:38
mveRichard MacCutchan18-Aug-13 20:38 
GeneralRe: Sometimes it can not draw out graph Pin
Rajesh R Subramanian18-Aug-13 21:57
professionalRajesh R Subramanian18-Aug-13 21:57 
GeneralRe: Sometimes it can not draw out graph Pin
Richard MacCutchan18-Aug-13 22:09
mveRichard MacCutchan18-Aug-13 22:09 
GeneralRe: Sometimes it can not draw out graph Pin
Vaclav_21-Aug-13 4:30
Vaclav_21-Aug-13 4:30 
GeneralRe: Sometimes it can not draw out graph Pin
Richard MacCutchan21-Aug-13 5:09
mveRichard MacCutchan21-Aug-13 5:09 
QuestionWaitForSingleObject Crash Pin
ForNow18-Aug-13 14:09
ForNow18-Aug-13 14:09 
Hi,

I am getting an exception on a WaitForSingleObject

Below is the code the Security events parameter of the CreateEvent is NULL I am Wondering if that might be the issue

  Event_Handle = ::CreateEvent(NULL, FALSE, FALSE, NULL);
		 
int i;
UINT start_port;

     // Sockevent.SetEvent();

        for (i = 0, start_port = 11007; i < 4; start_port++, i++)
   {


  threadptr[i] = NULL; 
  threadptr[i] = new SockCLeintThread(start_port);
  threadptr[i]->m_pActiveWnd =  m_pMainWnd;
  threadptr[i]->m_pMainWnd =   m_pMainWnd;

		 

			 
         if (threadptr[i] == NULL)
  	            m_pMainWnd->MessageBox((LPCTSTR)"SockClientThreadFail",NULL,MB_ICONERROR);

		   threadptr[i]->CreateThread(CREATE_SUSPENDED,0,NULL);  
   
                     threadptr[i]->flags.is_connected = 0;
             
                     threadptr[i]->ipaddr = (LPCTSTR)"192.168.1.4";					
  
 		   threadptr[i]->flags.busy = 0;
 
 		   SetThreadName(threadptr[i]->m_nThreadID,thread[i]);
 					
             	      	
 		   threadptr[i]->ResumeThread();

	DWORD return_value = ::WaitForSingleObject(Event_Handle,INFINITE);   // wait for connection

AnswerRe: WaitForSingleObject Crash Pin
Stephen Hewitt18-Aug-13 19:53
Stephen Hewitt18-Aug-13 19:53 
AnswerRe: WaitForSingleObject Crash Pin
Erudite_Eric18-Aug-13 20:07
Erudite_Eric18-Aug-13 20:07 
GeneralRe: WaitForSingleObject Crash Pin
ForNow19-Aug-13 4:45
ForNow19-Aug-13 4:45 
GeneralRe: WaitForSingleObject Crash Pin
Jochen Arndt19-Aug-13 5:14
professionalJochen Arndt19-Aug-13 5:14 
GeneralRe: WaitForSingleObject Crash Pin
ForNow19-Aug-13 5:20
ForNow19-Aug-13 5:20 
GeneralRe: WaitForSingleObject Crash Pin
Stephen Hewitt19-Aug-13 20:32
Stephen Hewitt19-Aug-13 20:32 
AnswerRe: WaitForSingleObject Crash Pin
Richard MacCutchan18-Aug-13 20:35
mveRichard MacCutchan18-Aug-13 20:35 
QuestionWin32 Menu bitmaps Pin
Jonathan Davies17-Aug-13 10:43
Jonathan Davies17-Aug-13 10:43 
GeneralRe: Win32 Menu bitmaps Pin
Richard MacCutchan18-Aug-13 1:25
mveRichard MacCutchan18-Aug-13 1:25 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 5:20
Jonathan Davies18-Aug-13 5:20 
AnswerRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 4:36
pasztorpisti18-Aug-13 4:36 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 5:05
Jonathan Davies18-Aug-13 5:05 
GeneralRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 5:27
pasztorpisti18-Aug-13 5:27 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 5:40
Jonathan Davies18-Aug-13 5:40 
GeneralRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 5:43
pasztorpisti18-Aug-13 5:43 
QuestionUDP sockets - not getting FD_READ after some time of activity on a socket Pin
csrss17-Aug-13 6:28
csrss17-Aug-13 6:28 
SuggestionRe: UDP sockets - not getting FD_READ after some time of activity on a socket Pin
pasztorpisti17-Aug-13 7:01
pasztorpisti17-Aug-13 7:01 

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.