Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Declare Pointer to Structure Global? Pin
fambi_mail22-Mar-06 8:22
fambi_mail22-Mar-06 8:22 
QuestionPOSTing binary data with HTTPS through wininet... Pin
dandy7222-Mar-06 8:22
dandy7222-Mar-06 8:22 
AnswerRe: POSTing binary data with HTTPS through wininet... Pin
MF22-Mar-06 16:12
MF22-Mar-06 16:12 
GeneralRe: POSTing binary data with HTTPS through wininet... Pin
dandy7223-Mar-06 2:43
dandy7223-Mar-06 2:43 
GeneralRe: POSTing binary data with HTTPS through wininet... Pin
dandy7223-Mar-06 4:16
dandy7223-Mar-06 4:16 
QuestionControling MS Communications Control? Pin
pavanbabut22-Mar-06 6:12
pavanbabut22-Mar-06 6:12 
QuestionOverlapped RS232 crash problem Pin
Battikaa22-Mar-06 5:49
Battikaa22-Mar-06 5:49 
AnswerRe: Overlapped RS232 crash problem Pin
Battikaa25-Apr-06 5:56
Battikaa25-Apr-06 5:56 
I have finaly (after blood sweating) found the problem. There was a Handler overflow, that's why my program crashed.

The problems was with the CreateEvent(NULL, TRUE, FALSE, NULL) for the overlapped structure.

Each time I was calling the receiving function I wasa allocating a handler for the Overlapped hevent:

OVERLAPPED osReader = {0};
osReader.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);

Each time I created an event for the ovrelapped.hevent structure the handle was allocated but not deallocated. Don't ask me why. I was correctly using the CloseHandle function to the handle but it didn't work (maybe I have an additional bug in my code).

So my (ugly) solution is that I allocate the handle osReader as a member variable of my Serial class, create it in only once in the constructor and now it seems to work.
Questionplease help me Pin
dSolariuM22-Mar-06 5:26
dSolariuM22-Mar-06 5:26 
AnswerRe: please help me Pin
Dominik Reichl22-Mar-06 6:58
Dominik Reichl22-Mar-06 6:58 
QuestionNotification when a shared file is closed by other program Pin
bgsommerfeld22-Mar-06 4:58
bgsommerfeld22-Mar-06 4:58 
AnswerRe: Notification when a shared file is closed by other program Pin
Chris Meech22-Mar-06 7:05
Chris Meech22-Mar-06 7:05 
Questionvc.net(1.1) Pin
pankajgarg1222-Mar-06 4:06
pankajgarg1222-Mar-06 4:06 
AnswerRe: vc.net(1.1) Pin
toxcct22-Mar-06 4:09
toxcct22-Mar-06 4:09 
AnswerRe: vc.net(1.1) Pin
Dominik Reichl22-Mar-06 7:01
Dominik Reichl22-Mar-06 7:01 
Questionstructs in c++ Pin
pplshero5422-Mar-06 3:57
pplshero5422-Mar-06 3:57 
AnswerRe: structs in c++ Pin
toxcct22-Mar-06 4:07
toxcct22-Mar-06 4:07 
AnswerRe: structs in c++ Pin
Michael Dunn22-Mar-06 5:33
sitebuilderMichael Dunn22-Mar-06 5:33 
Questionwhat should be the salary of an exp vc++ sw developer Pin
vmmk22-Mar-06 3:22
vmmk22-Mar-06 3:22 
AnswerRe: what should be the salary of an exp vc++ sw developer Pin
toxcct22-Mar-06 4:11
toxcct22-Mar-06 4:11 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
Waldermort22-Mar-06 4:16
Waldermort22-Mar-06 4:16 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
toxcct22-Mar-06 4:19
toxcct22-Mar-06 4:19 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
Abebe22-Mar-06 4:21
Abebe22-Mar-06 4:21 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
V.22-Mar-06 4:40
professionalV.22-Mar-06 4:40 
GeneralRe: what should be the salary of an exp vc++ sw developer Pin
toxcct22-Mar-06 4:41
toxcct22-Mar-06 4:41 

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.