Click here to Skip to main content
14,302,135 members

C / C++ / MFC

 
GeneralRe: Calculating average in a high priority thread Pin
Jochen Arndt15-May-15 0:53
mveJochen Arndt15-May-15 0:53 
QuestionException in code C Pin
Member 1169244814-May-15 21:33
memberMember 1169244814-May-15 21:33 
SuggestionRe: Exception in code C Pin
Richard MacCutchan14-May-15 22:35
protectorRichard MacCutchan14-May-15 22:35 
GeneralRe: Exception in code C Pin
Member 1169244814-May-15 22:59
memberMember 1169244814-May-15 22:59 
GeneralRe: Exception in code C Pin
Richard MacCutchan15-May-15 2:53
protectorRichard MacCutchan15-May-15 2:53 
SuggestionRe: Exception in code C Pin
David Crow15-May-15 2:13
memberDavid Crow15-May-15 2:13 
GeneralRe: Exception in code C Pin
Philippe Mori16-May-15 2:45
memberPhilippe Mori16-May-15 2:45 
AnswerRe: Exception in code C Pin
Philippe Mori16-May-15 2:41
memberPhilippe Mori16-May-15 2:41 
element = malloc(sizeof(Liste));
should be
element = malloc(sizeof(Cellule));

You are allocating 4 bytes (on 32 bit platform) instead of approximatively 60 bytes.

The following line is also incorrect:
en_cours=en_cours->succ;
Since you are Inside a function, the pointer is passed by value and a change inside the function has no effect outside of it. You need to have a pointer to a pointer to be able to update the pointer at the caller location.

You don't initialized new list to NULL so first insertion might fails because the pointer is garbage.
Philippe Mori

QuestionCopy Text from dialog box Pin
Thakur JAI SINGH13-May-15 23:31
memberThakur JAI SINGH13-May-15 23:31 
AnswerRe: Copy Text from dialog box Pin
Richard MacCutchan14-May-15 1:22
protectorRichard MacCutchan14-May-15 1:22 
QuestionRe: Copy Text from dialog box Pin
David Crow14-May-15 4:04
memberDavid Crow14-May-15 4:04 
AnswerRe: Copy Text from dialog box Pin
Thakur JAI SINGH18-May-15 0:48
memberThakur JAI SINGH18-May-15 0:48 
QuestionRe: Copy Text from dialog box Pin
David Crow18-May-15 2:21
memberDavid Crow18-May-15 2:21 
QuestionMFC release and Debug build Pin
bhushan050812-May-15 0:42
memberbhushan050812-May-15 0:42 
GeneralRe: MFC release and Debug build Pin
Richard MacCutchan12-May-15 4:57
protectorRichard MacCutchan12-May-15 4:57 
AnswerRe: MFC release and Debug build Pin
Maximilien12-May-15 7:52
memberMaximilien12-May-15 7:52 
GeneralRe: MFC release and Debug build Pin
Albert Holguin12-May-15 10:26
professionalAlbert Holguin12-May-15 10:26 
GeneralRe: MFC release and Debug build Pin
Maximilien13-May-15 3:13
memberMaximilien13-May-15 3:13 
AnswerRe: MFC release and Debug build Pin
Albert Holguin12-May-15 10:30
professionalAlbert Holguin12-May-15 10:30 
QuestionC++ code to manage 3 keypads connected to one PC? Pin
Member 1167707911-May-15 10:50
memberMember 1167707911-May-15 10:50 
AnswerRe: C++ code to manage 3 keypads connected to one PC? Pin
Sascha Lefèvre11-May-15 11:45
professionalSascha Lefèvre11-May-15 11:45 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Member 1167707912-May-15 2:51
memberMember 1167707912-May-15 2:51 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Sascha Lefèvre12-May-15 3:34
professionalSascha Lefèvre12-May-15 3:34 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Member 1167707912-May-15 4:01
memberMember 1167707912-May-15 4:01 
GeneralRe: C++ code to manage 3 keypads connected to one PC? Pin
Sascha Lefèvre12-May-15 7:27
professionalSascha Lefèvre12-May-15 7:27 

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.