Click here to Skip to main content
16,012,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBook? Pin
Tom Archer24-Jul-03 12:25
Tom Archer24-Jul-03 12:25 
AnswerRe: Book? Pin
Beer2624-Jul-03 15:52
Beer2624-Jul-03 15:52 
GeneralAccess violation only in release build with debug info Pin
s_k24-Jul-03 10:54
s_k24-Jul-03 10:54 
GeneralRe: Access violation only in release build with debug info Pin
AlexO24-Jul-03 11:37
AlexO24-Jul-03 11:37 
GeneralRe: Access violation only in release build with debug info Pin
s_k24-Jul-03 11:44
s_k24-Jul-03 11:44 
GeneralRe: Access violation only in release build with debug info Pin
AlexO25-Jul-03 3:47
AlexO25-Jul-03 3:47 
GeneralRe: Access violation only in release build with debug info Pin
s_k25-Jul-03 3:52
s_k25-Jul-03 3:52 
GeneralRe: Access violation only in release build with debug info Pin
AlexO25-Jul-03 4:04
AlexO25-Jul-03 4:04 
no, I did not mean address. Imagine that inside that function you have soemthing like


int SomeFunction(DWORD* dwSize, char* actualBuffer)
{
if(*dwSize > 0)
{
char* pCopy = new char[*dwSize];
::memcpy(pCopy, actualBuffer, *dwSize);//this is where error will manifest itself if you forgot to initialize dwSize, in release dwSize could be anything, in debug it would probably be zero so we never come here
...
}
...

}

P.S. Real scenario is usually more complex but idea is the same
GeneralRe: Access violation only in release build with debug info Pin
s_k25-Jul-03 4:07
s_k25-Jul-03 4:07 
GeneralRe: Access violation only in release build with debug info Pin
Neville Franks24-Jul-03 11:47
Neville Franks24-Jul-03 11:47 
GeneralRe: Access violation only in release build with debug info Pin
s_k24-Jul-03 11:51
s_k24-Jul-03 11:51 
GeneralRe: Access violation only in release build with debug info Pin
Neville Franks24-Jul-03 12:11
Neville Franks24-Jul-03 12:11 
GeneralRe: Access violation only in release build with debug info Pin
Anthony_Yio24-Jul-03 16:38
Anthony_Yio24-Jul-03 16:38 
QuestionWhy does my Dialog app exit when enter key is pressed? Pin
Terry O'Nolley24-Jul-03 10:50
Terry O'Nolley24-Jul-03 10:50 
AnswerRe: Why does my Dialog app exit when enter key is pressed? Pin
John M. Drescher24-Jul-03 10:52
John M. Drescher24-Jul-03 10:52 
GeneralRe: Why does my Dialog app exit when enter key is pressed? Pin
Terry O'Nolley24-Jul-03 11:02
Terry O'Nolley24-Jul-03 11:02 
GeneralRe: Why does my Dialog app exit when enter key is pressed? Pin
Toni7824-Jul-03 12:28
Toni7824-Jul-03 12:28 
AnswerRe: Why does my Dialog app exit when enter key is pressed? Pin
Michael Dunn24-Jul-03 12:35
sitebuilderMichael Dunn24-Jul-03 12:35 
GeneralDisplaying images on a CDialog Pin
Tom Archer24-Jul-03 10:42
Tom Archer24-Jul-03 10:42 
GeneralRe: Displaying images on a CDialog Pin
Terry O'Nolley24-Jul-03 10:58
Terry O'Nolley24-Jul-03 10:58 
GeneralRe: Displaying images on a CDialog Pin
Tom Archer24-Jul-03 11:03
Tom Archer24-Jul-03 11:03 
GeneralRe: Displaying images on a CDialog Pin
Beer2624-Jul-03 11:06
Beer2624-Jul-03 11:06 
GeneralRe: Displaying images on a CDialog Pin
Beer2624-Jul-03 11:12
Beer2624-Jul-03 11:12 
GeneralRe: Displaying images on a CDialog Pin
Tom Archer24-Jul-03 15:00
Tom Archer24-Jul-03 15:00 
GeneralRe: Displaying images on a CDialog Pin
Michael Dunn24-Jul-03 12:39
sitebuilderMichael Dunn24-Jul-03 12:39 

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.