Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: process crash on dual processor Winnt4 server Pin
Mike Nordell13-Apr-02 20:59
Mike Nordell13-Apr-02 20:59 
GeneralRe: process crash on dual processor Winnt4 server Pin
James R. Twine15-Apr-02 2:54
James R. Twine15-Apr-02 2:54 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Smith12-Apr-02 7:56
Tim Smith12-Apr-02 7:56 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 8:03
Jim Crafton12-Apr-02 8:03 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Smith12-Apr-02 8:06
Tim Smith12-Apr-02 8:06 
GeneralRe: process crash on dual processor Winnt4 server Pin
James R. Twine12-Apr-02 9:26
James R. Twine12-Apr-02 9:26 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 11:01
Jim Crafton12-Apr-02 11:01 
GeneralRe: process crash on dual processor Winnt4 server Pin
James R. Twine12-Apr-02 20:38
James R. Twine12-Apr-02 20:38 
Jim Crafton wrote:
Yes - if this is bad what are my options ?

   If what is bad?  Which portion of my message are you referring to?  Options?  Well, you can send your code to me (we will do an NDA beforehand, of course), and I will help you with it for the special reduced rate of US$125/hr!  But barring that...

   If you think that memory is being stepped on (or off of the end of) or otherwise mishanded, a debug build should quickly find that problem.

   If a debug build is not an option, you may also be able to introduce code into the program to help track down where the problem is.  For example, if your threads are allocating and deallocating proper objects (as opposed to simple types like char, int, double, etc.), you can do something like adding a bool member variable to the class that is set to true in the object's constructor and false in the destructor.  If the destructor first tests to make sure that the member variable is true before setting it to false, you will be able to find a double-delete.

   Adding "buffer variables" before and after the existing member variables can be used to detect memory overwrites.  For example, make the buffer variables a set of 4 DWORDs, and place a set before and after the other member variables.  In the constructor, fill the buffer variables with a known value (like 0x2468BEEF).  In the destructor, verify that the buffer variables all still equal the same value they were initialized to.

   HTH

   Peace!

-=- James.
GeneralRe: process crash on dual processor Winnt4 server Pin
Vivek Rajan12-Apr-02 21:35
Vivek Rajan12-Apr-02 21:35 
Generalmultimap problem Pin
Alexandru Savescu12-Apr-02 6:10
Alexandru Savescu12-Apr-02 6:10 
GeneralRe: multimap problem Pin
Jim Crafton12-Apr-02 6:39
Jim Crafton12-Apr-02 6:39 
GeneralRe: multimap problem Pin
Alexandru Savescu12-Apr-02 13:16
Alexandru Savescu12-Apr-02 13:16 
GeneralI would like to know your opinion Pin
Le centriste12-Apr-02 5:41
Le centriste12-Apr-02 5:41 
Generaldird(r)iver function Pin
Kuniva12-Apr-02 5:38
Kuniva12-Apr-02 5:38 
GeneralRe: dird(r)iver function Pin
Mike Nordell13-Apr-02 21:27
Mike Nordell13-Apr-02 21:27 
GeneralSetEvent for thread Pin
meirav12-Apr-02 5:33
meirav12-Apr-02 5:33 
GeneralRe: SetEvent for thread Pin
Tim Smith12-Apr-02 8:01
Tim Smith12-Apr-02 8:01 
GeneralRe: SetEvent for thread Pin
meirav13-Apr-02 2:50
meirav13-Apr-02 2:50 
QuestionON_WM_ERASEBKGND() never gets called? Pin
dazinith12-Apr-02 5:18
dazinith12-Apr-02 5:18 
AnswerRe: ON_WM_ERASEBKGND() never gets called? Pin
lucy12-Apr-02 5:23
lucy12-Apr-02 5:23 
GeneralRe: ON_WM_ERASEBKGND() never gets called? Pin
dazinith12-Apr-02 5:52
dazinith12-Apr-02 5:52 
GeneralRe: ON_WM_ERASEBKGND() never gets called? Pin
lucy12-Apr-02 6:41
lucy12-Apr-02 6:41 
AnswerRe: ON_WM_ERASEBKGND() never gets called? Pin
Shog912-Apr-02 5:58
sitebuilderShog912-Apr-02 5:58 
GeneralRe: ON_WM_ERASEBKGND() never gets called? Pin
dazinith12-Apr-02 5:57
dazinith12-Apr-02 5:57 
QuestionTabs and List Control Box?? Pin
Aoife12-Apr-02 4:54
Aoife12-Apr-02 4:54 

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.