Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionshow/hide ms-word toolbar in C++ Builder ??? Pin
sy111115-Mar-10 16:25
sy111115-Mar-10 16:25 
QuestionHow to get base class name of derived class Pin
sito4215-Mar-10 14:55
sito4215-Mar-10 14:55 
AnswerRe: How to get base class name of derived class Pin
Avi Berger15-Mar-10 15:49
Avi Berger15-Mar-10 15:49 
GeneralRe: How to get base class name of derived class Pin
sito4215-Mar-10 17:04
sito4215-Mar-10 17:04 
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 
I'm at my wit's end trying to track down a crash problem that only one person is seeing, but he sees it on BOTH his computers. I can't reproduce it, even after installing the same OS he's running (XP SP3), and neither can any of my other beta testers.

I'm using XCrashReport to produce minidumps that he can send me when it crashes. It usually crashes on this line in InitInstance, which checks if there is a recently used file to load:

if (m_pRecentFileList->m_nSize > 0 && !m_pRecentFileList->m_arrNames[0].IsEmpty()) 


I have gone through the code in InitInstance line by line and I don't see any problems. Every global variable is initialized. Return codes are checked for every function call. I changed all my strcpy's to strncpy to make sure there aren't any overflows.

Weirder yet, when I compile the program - exact same code, line-for-line - in VC++ 6 rather than Visual Studio 2008 - he doesn't get the crash. SAME CODE!! The only difference is that with Visual Studio 2008 I link MFC in statically because I'm running Windows 7 (64-bit) and he doesn't have the DLLs on XP.

I installed XP SP3 on a computer and did not get the crash. Two other testers have XP SP3 and do not experience the crash. I asked him to use msconfig to disable Startup programs. He did, and it still crashed. I asked him to use msconfig to reboot into diagnostic mode. He did, and it still crashed. Doesn't that suggest it's my code and not a conflict with something on his system? But if it's such a bad bug, then why doesn't even one other person see it?

I don't know what to do at this point. I can't find it if I can't reproduce it. And not only can I not reproduce it, no one else who has run the beta can reproduce it. I'm tempted to ignore the problem on his system and move on, but what if I release the program and it starts crashing on 10% of systems?

How do I find this bug???

Any help would be greatly - hugely - appreciated. I've been working on this for a week, and I'm out of ideas.
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 
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 

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.