Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Mapping Pin
l a u r e n22-Feb-01 9:22
l a u r e n22-Feb-01 9:22 
GeneralMixing DEBUG and RELEASE DLLs. Pin
Chris Meech22-Feb-01 5:55
Chris Meech22-Feb-01 5:55 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
l a u r e n22-Feb-01 6:13
l a u r e n22-Feb-01 6:13 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Chris Meech22-Feb-01 6:33
Chris Meech22-Feb-01 6:33 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Erik Funkenbusch22-Feb-01 12:29
Erik Funkenbusch22-Feb-01 12:29 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Chris Meech23-Feb-01 7:01
Chris Meech23-Feb-01 7:01 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
26-Feb-01 8:14
suss26-Feb-01 8:14 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Erik Funkenbusch26-Feb-01 12:31
Erik Funkenbusch26-Feb-01 12:31 
I disagree. It's quite easy to call the wrong malloc or free. For instance, if you are in debug, and you link to a release DLL. If that DLL allocates memory and returns it to your debug application, and your debug application frees that memory itself, you get major problems.

Another problem, especially with MFC, is that the size of objects can change between debug and release, thus if you allocate an object in release, but use it debug, it's going to assume a different memory layout. You might be using something like Stingray's ObjectiveToolkit, that implements it's own MFC derived classes in a DLL, for instance. In debug, the objects include dump information and additional functions. This can cause page faults or other nasty problems.


GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
27-Feb-01 5:47
suss27-Feb-01 5:47 
GeneralSearching a custom Database Pin
jerry0davis22-Feb-01 5:48
jerry0davis22-Feb-01 5:48 
GeneralRe: Searching a custom Database Pin
l a u r e n22-Feb-01 5:57
l a u r e n22-Feb-01 5:57 
Generaldelete and delete [] what is the difference Pin
22-Feb-01 5:35
suss22-Feb-01 5:35 
GeneralRe: delete and delete [] what is the difference Pin
Michael Dunn22-Feb-01 6:39
sitebuilderMichael Dunn22-Feb-01 6:39 
GeneralRe: delete and delete [] what is the difference Pin
Etienne Danvoye22-Feb-01 7:19
Etienne Danvoye22-Feb-01 7:19 
GeneralRe: delete and delete [] what is the difference Pin
Erik Funkenbusch22-Feb-01 12:47
Erik Funkenbusch22-Feb-01 12:47 
GeneralRe: delete and delete [] what is the difference Pin
Ryan Park23-Feb-01 14:56
Ryan Park23-Feb-01 14:56 
Generalbad arrays .. Pin
Travis D. Mathison22-Feb-01 4:06
Travis D. Mathison22-Feb-01 4:06 
GeneralRe: bad arrays .. Pin
Chris Losinger22-Feb-01 4:49
professionalChris Losinger22-Feb-01 4:49 
GeneralRe: bad arrays .. Pin
l a u r e n22-Feb-01 6:03
l a u r e n22-Feb-01 6:03 
GeneralRe: bad arrays .. Pin
Julien22-Feb-01 15:24
Julien22-Feb-01 15:24 
GeneralRe: bad arrays .. Pin
Travis D. Mathison22-Feb-01 16:27
Travis D. Mathison22-Feb-01 16:27 
QuestionDatabase programming?? Pin
22-Feb-01 3:37
suss22-Feb-01 3:37 
GeneralListBox problem ... Pin
Hadi Rezaee22-Feb-01 0:56
Hadi Rezaee22-Feb-01 0:56 
GeneralListCtrl Scrolling Pin
banrio21-Feb-01 23:55
banrio21-Feb-01 23:55 
GeneralResource ID for dynamically created component Pin
nicola21-Feb-01 22:42
nicola21-Feb-01 22:42 

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.