Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: critical error Pin
John R. Shaw12-Mar-05 14:17
John R. Shaw12-Mar-05 14:17 
GeneralRe: critical error Pin
mpapeo13-Mar-05 11:16
mpapeo13-Mar-05 11:16 
GeneralRe: critical error Pin
John R. Shaw15-Mar-05 10:23
John R. Shaw15-Mar-05 10:23 
QuestionHow to check wheter a specified path is a dir? Pin
Member 1219625211-Mar-05 12:32
Member 1219625211-Mar-05 12:32 
AnswerRe: How to check wheter a specified path is a dir? Pin
PJ Arends11-Mar-05 12:41
professionalPJ Arends11-Mar-05 12:41 
AnswerRe: How to check wheter a specified path is a dir? Pin
Ravi Bhavnani11-Mar-05 14:42
professionalRavi Bhavnani11-Mar-05 14:42 
AnswerRe: How to check wheter a specified path is a dir? Pin
Michael Dunn11-Mar-05 15:15
sitebuilderMichael Dunn11-Mar-05 15:15 
GeneralGetting rights for OpenSCManager Pin
bepperso11-Mar-05 11:02
bepperso11-Mar-05 11:02 
Generaldisplay a html page which is in memory Pin
includeh1011-Mar-05 10:31
includeh1011-Mar-05 10:31 
GeneralRe: display a html page which is in memory Pin
Ravi Bhavnani11-Mar-05 10:55
professionalRavi Bhavnani11-Mar-05 10:55 
Generalmemory allocation in dll Pin
NMiceli11-Mar-05 8:59
NMiceli11-Mar-05 8:59 
GeneralRe: memory allocation in dll Pin
Chris Losinger11-Mar-05 9:43
professionalChris Losinger11-Mar-05 9:43 
GeneralRe: memory allocation in dll Pin
NMiceli11-Mar-05 10:30
NMiceli11-Mar-05 10:30 
GeneralRe: memory allocation in dll Pin
cmk11-Mar-05 15:56
cmk11-Mar-05 15:56 
GeneralRe: memory allocation in dll Pin
Anonymous11-Mar-05 16:10
Anonymous11-Mar-05 16:10 
GeneralRe: memory allocation in dll Pin
cmk11-Mar-05 17:13
cmk11-Mar-05 17:13 
QuestionIs there a easy to move focus among controls using arrow key? Pin
transoft11-Mar-05 7:51
transoft11-Mar-05 7:51 
AnswerRe: Is there a easy to move focus among controls using arrow key? Pin
Michael Dunn11-Mar-05 9:23
sitebuilderMichael Dunn11-Mar-05 9:23 
GeneralRe: Is there a easy to move focus among controls using arrow key? Pin
transoft11-Mar-05 10:21
transoft11-Mar-05 10:21 
GeneralRe: Is there a easy to move focus among controls using arrow key? Pin
Branislav11-Mar-05 19:37
Branislav11-Mar-05 19:37 
GeneralNeed help on writing a library book keeping software Pin
Member 179669511-Mar-05 7:49
Member 179669511-Mar-05 7:49 
GeneralRe: Need help on writing a library book keeping software Pin
Zero_divide_111-Mar-05 20:35
Zero_divide_111-Mar-05 20:35 
GeneralCSocket crashes program inside thread Pin
MisterHim11-Mar-05 7:36
MisterHim11-Mar-05 7:36 
GeneralRe: CSocket crashes program inside thread Pin
Ravi Bhavnani11-Mar-05 10:57
professionalRavi Bhavnani11-Mar-05 10:57 
GeneralRe: CSocket crashes program inside thread Pin
MisterHim11-Mar-05 17:11
MisterHim11-Mar-05 17:11 
That article deals with passing a socket to a thread.

What I'm trying to do is create the socket inside the thread.

I can detect that the thread is being run, but the moment
I call Create, it crashes the program.

I get the following stack :

CMapPtrToPtr::GetValueAt(void * 0x00000744) line 179 + 3 bytes
CAsyncSocket::LookupHandle(unsigned int 0x00000744, int 0x00000000) line 385 + 15 bytes
CAsyncSocket::AttachHandle(unsigned int 0x00000744, CAsyncSocket * 0x00de7cf0 {CSocket}, int 0x00000000) line 407 + 13 bytes
CAsyncSocket::Socket(int 0x00000001, long 0x0000003f, int 0x00000000, int 0x00000002) line 557
CAsyncSocket::Create(unsigned int 0x00000000, int 0x00000001, long 0x0000003f, const char * 0x00000000) line 105 + 20 bytes
CSocket::Create(unsigned int 0x00000000, int 0x00000001, const char * 0x00000000) line 45 + 29 bytes
CMyThread::MyMessageHandler(unsigned int 0x00000401, long 0x00aa1180) line 570 + 17 bytes
CWinThread::DispatchThreadMessageEx(tagMSG * 0x00aa10c4 {msg=0x00000401 wp=0x00000401 lp=0x00aa1180}) line 652
CWinThread::PreTranslateMessage(tagMSG * 0x00aa10c4 {msg=0x00000401 wp=0x00000401 lp=0x00aa1180}) line 660 + 20 bytes
CWinThread::PumpMessage() line 841 + 30 bytes
CWinThread::Run() line 480 + 11 bytes
_AfxThreadEntry(void * 0x0011deec) line 125 + 11 bytes
_threadstartex(void * 0x00aa2f80) line 212 + 13 bytes
KERNEL32! 7

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.