Click here to Skip to main content
15,917,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get base class name of derived class Pin
Avi Berger15-Mar-10 17:45
Avi Berger15-Mar-10 17:45 
GeneralRe: How to get base class name of derived class Pin
sito4215-Mar-10 20:24
sito4215-Mar-10 20:24 
AnswerRe: How to get base class name of derived class Pin
Adam Roderick J15-Mar-10 18:07
Adam Roderick J15-Mar-10 18:07 
Questionpersistent crash on tester's computers that I can't reproduce Pin
permutations15-Mar-10 11:13
permutations15-Mar-10 11:13 
AnswerRe: persistent crash on tester's computers that I can't reproduce Pin
LouisLewis15-Mar-10 11:21
LouisLewis15-Mar-10 11:21 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations15-Mar-10 11:34
permutations15-Mar-10 11:34 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
LouisLewis15-Mar-10 11:43
LouisLewis15-Mar-10 11:43 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations15-Mar-10 12:07
permutations15-Mar-10 12:07 
I already know he does not have this installed - and most of my customers for this program won't either. That's why I linked to MFC statically.

But after you mentioned this issue, I googled it and found that linking statically can cause crashes:

http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/b6badcd6-297d-4c73-a589-02507eb79548[^]

This has drawbacks.
- The CRT code is including more than once. Increasing the memory footprint of your application.
- Sharing the MFC in a DLL reduces the overall consumption of memory in the system
- MFC Extension DLL's are no longer supported.
- Allocating memory in one module (DLL,EXE) and freeing memory in another will cause a crash.
- Information like the locale are used in each module and are not shared. setlocale in the exe will not affect the locale in the DLL (this is good and bad depending on the design of the modules)
- There I heard rumors that there is a discussion to stop any support of statically linked version of CRT, MFC and ATL.


I do have two modules - an EXE and a DLL. I can't think of a case where I allocate memory in one and release it in the other, but I'm not 100% certain and maybe there are other hazards.

I asked my tester if he'd install the redistribution package. Maybe that's why the VC++ 6 compilation isn't crashing - that's dynamically linked rather than statically. If dynamic linking for VS2008 doesn't crash, then I'll continue development on VC++ 6 and stop worrying about it. I'm just very nervous about ignoring this without knowing why it's happening. In my experience, that always comes back to bite me in the butt.
AnswerRe: persistent crash on tester's computers that I can't reproduce Pin
Avi Berger15-Mar-10 15:13
Avi Berger15-Mar-10 15:13 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations15-Mar-10 17:01
permutations15-Mar-10 17:01 
AnswerRe: persistent crash on tester's computers that I can't reproduce Pin
Luc Pattyn15-Mar-10 16:02
sitebuilderLuc Pattyn15-Mar-10 16:02 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations15-Mar-10 17:26
permutations15-Mar-10 17:26 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
Luc Pattyn15-Mar-10 17:30
sitebuilderLuc Pattyn15-Mar-10 17:30 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations15-Mar-10 17:37
permutations15-Mar-10 17:37 
AnswerRe: persistent crash on tester's computers that I can't reproduce Pin
Adam Roderick J15-Mar-10 20:25
Adam Roderick J15-Mar-10 20:25 
AnswerRe: persistent crash on tester's computers that I can't reproduce Pin
Roger Allen16-Mar-10 5:01
Roger Allen16-Mar-10 5:01 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations16-Mar-10 5:13
permutations16-Mar-10 5:13 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
Roger Allen16-Mar-10 6:03
Roger Allen16-Mar-10 6:03 
AnswerRe: persistent crash on tester's computers that I can't reproduce Pin
Rolf Kristensen16-Mar-10 14:03
Rolf Kristensen16-Mar-10 14:03 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations16-Mar-10 14:16
permutations16-Mar-10 14:16 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
Rolf Kristensen16-Mar-10 14:21
Rolf Kristensen16-Mar-10 14:21 
GeneralRe: persistent crash on tester's computers that I can't reproduce [modified] Pin
permutations17-Mar-10 3:31
permutations17-Mar-10 3:31 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations17-Mar-10 12:07
permutations17-Mar-10 12:07 
GeneralRe: persistent crash on tester's computers that I can't reproduce Pin
permutations18-Mar-10 10:09
permutations18-Mar-10 10:09 
QuestionSystem Tray Icon Pin
MrMcIntyre15-Mar-10 9:40
MrMcIntyre15-Mar-10 9:40 

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.