Click here to Skip to main content
15,878,430 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Checksum Generators With Advanced Functions Pin
Member 132872331-Jul-17 1:28
Member 132872331-Jul-17 1:28 
AnswerRe: Checksum Generators With Advanced Functions Pin
jschell2-Jul-17 7:25
jschell2-Jul-17 7:25 
QuestionException Handling MFC detail information Pin
ForNow28-Jun-17 4:40
ForNow28-Jun-17 4:40 
AnswerRe: Exception Handling MFC detail information Pin
Randor 28-Jun-17 5:11
professional Randor 28-Jun-17 5:11 
GeneralRe: Exception Handling MFC detail information Pin
ForNow28-Jun-17 15:45
ForNow28-Jun-17 15:45 
AnswerRe: Exception Handling MFC detail information Pin
Victor Nijegorodov29-Jun-17 8:33
Victor Nijegorodov29-Jun-17 8:33 
GeneralRe: Exception Handling MFC detail information Pin
ForNow29-Jun-17 10:13
ForNow29-Jun-17 10:13 
GeneralRe: Exception Handling MFC detail information Pin
Victor Nijegorodov29-Jun-17 10:26
Victor Nijegorodov29-Jun-17 10:26 
ForNow wrote:
The code is invoked from a postmessage I.E
C++
::PostMessage(thisocket->callwnd,thisocket->msg,(WPARAM) nRead,(LPARAM)sockbuffer.GetBuffer(0));

I guess that in a time the message is handled in your main thread the variable sockbuffer might go out of scope. The result - the memory exception.
Is this message is posted from the other (socket) thread?
Anyway, check out this great J.Newcomer essay: WorkerThreads
GeneralRe: Exception Handling MFC detail information Pin
ForNow29-Jun-17 10:49
ForNow29-Jun-17 10:49 
GeneralRe: Exception Handling MFC detail information Pin
Randor 29-Jun-17 10:52
professional Randor 29-Jun-17 10:52 
GeneralRe: Exception Handling MFC detail information Pin
ForNow29-Jun-17 15:51
ForNow29-Jun-17 15:51 
QuestionRe: Exception Handling MFC detail information Pin
David Crow29-Jun-17 17:37
David Crow29-Jun-17 17:37 
AnswerRe: Exception Handling MFC detail information Pin
ForNow30-Jun-17 2:17
ForNow30-Jun-17 2:17 
GeneralRe: Exception Handling MFC detail information Pin
Bram van Kampen30-Jun-17 13:14
Bram van Kampen30-Jun-17 13:14 
AnswerRe: Exception Handling MFC detail information Pin
Bram van Kampen30-Jun-17 12:51
Bram van Kampen30-Jun-17 12:51 
QuestionUDP Sockets and Windows 10 Pin
Rick York27-Jun-17 13:27
mveRick York27-Jun-17 13:27 
AnswerRe: UDP Sockets and Windows 10 Pin
Afzaal Ahmad Zeeshan27-Jun-17 13:44
professionalAfzaal Ahmad Zeeshan27-Jun-17 13:44 
GeneralRe: UDP Sockets and Windows 10 Pin
Rick York27-Jun-17 16:49
mveRick York27-Jun-17 16:49 
GeneralRe: UDP Sockets and Windows 10 Pin
Randor 27-Jun-17 20:27
professional Randor 27-Jun-17 20:27 
GeneralRe: UDP Sockets and Windows 10 Pin
leon de boer27-Jun-17 21:15
leon de boer27-Jun-17 21:15 
AnswerRe: UDP Sockets and Windows 10 Pin
Randor 27-Jun-17 20:37
professional Randor 27-Jun-17 20:37 
GeneralRe: UDP Sockets and Windows 10 Pin
Rick York28-Jun-17 6:59
mveRick York28-Jun-17 6:59 
GeneralRe: UDP Sockets and Windows 10 Pin
Randor 28-Jun-17 7:53
professional Randor 28-Jun-17 7:53 
AnswerRe: UDP Sockets and Windows 10 Pin
jeron128-Jun-17 5:04
jeron128-Jun-17 5:04 
GeneralRe: UDP Sockets and Windows 10 Pin
Rick York28-Jun-17 6:57
mveRick York28-Jun-17 6:57 

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.