Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why segmentation fault ! Pin
Aescleal29-Jun-10 8:02
Aescleal29-Jun-10 8:02 
GeneralRe: why segmentation fault ! Pin
David Crow29-Jun-10 9:10
David Crow29-Jun-10 9:10 
GeneralRe: why segmentation fault ! Pin
Aescleal29-Jun-10 9:21
Aescleal29-Jun-10 9:21 
AnswerRe: why segmentation fault ! Pin
Fareed Rizkalla29-Jun-10 7:33
Fareed Rizkalla29-Jun-10 7:33 
AnswerRe: why segmentation fault ! Pin
Hristo-Bojilov29-Jun-10 7:42
Hristo-Bojilov29-Jun-10 7:42 
GeneralRe: why segmentation fault ! Pin
wbgxx29-Jun-10 7:46
wbgxx29-Jun-10 7:46 
GeneralRe: why segmentation fault ! Pin
Aescleal29-Jun-10 8:53
Aescleal29-Jun-10 8:53 
AnswerRe: why segmentation fault ! Pin
Niklas L29-Jun-10 8:37
Niklas L29-Jun-10 8:37 
There is another access violation waiting to happen in your swap function. None of the arguments in a call to strcpy can be null. You need to check for a1 != NULL && a2 != NULL.

Also, watch out for the buffer overruns you might encounter if a1 is longer than 19 characters, or the allocated buffers of a2 and a1 are of different sizes.

QuestionSysListView32 help needed Pin
iceeeeman29-Jun-10 7:02
iceeeeman29-Jun-10 7:02 
QuestionRe: SysListView32 help needed Pin
David Crow29-Jun-10 7:16
David Crow29-Jun-10 7:16 
AnswerRe: SysListView32 help needed Pin
iceeeeman29-Jun-10 7:28
iceeeeman29-Jun-10 7:28 
GeneralRe: SysListView32 help needed Pin
Luc Pattyn29-Jun-10 7:50
sitebuilderLuc Pattyn29-Jun-10 7:50 
GeneralRe: SysListView32 help needed Pin
iceeeeman29-Jun-10 7:57
iceeeeman29-Jun-10 7:57 
QuestionRe: SysListView32 help needed Pin
David Crow29-Jun-10 8:02
David Crow29-Jun-10 8:02 
AnswerRe: SysListView32 help needed Pin
iceeeeman29-Jun-10 8:06
iceeeeman29-Jun-10 8:06 
AnswerRe: SysListView32 help needed Pin
Luc Pattyn29-Jun-10 8:12
sitebuilderLuc Pattyn29-Jun-10 8:12 
AnswerRe: SysListView32 help needed Pin
David Crow29-Jun-10 8:18
David Crow29-Jun-10 8:18 
AnswerRe: SysListView32 help needed Pin
iceeeeman29-Jun-10 8:09
iceeeeman29-Jun-10 8:09 
AnswerRe: SysListView32 help needed Pin
iceeeeman29-Jun-10 20:16
iceeeeman29-Jun-10 20:16 
GeneralRe: SysListView32 help needed Pin
David Crow30-Jun-10 3:08
David Crow30-Jun-10 3:08 
GeneralRe: SysListView32 help needed Pin
iceeeeman30-Jun-10 3:49
iceeeeman30-Jun-10 3:49 
QuestionHow i can Save Cimage file+ shapes & text on it? Pin
humais29-Jun-10 5:51
humais29-Jun-10 5:51 
AnswerRe: How i can Save Cimage file+ shapes & text on it? Pin
Alan Balkany29-Jun-10 8:13
Alan Balkany29-Jun-10 8:13 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
humais29-Jun-10 8:30
humais29-Jun-10 8:30 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
Alan Balkany29-Jun-10 8:38
Alan Balkany29-Jun-10 8:38 

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.