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

C / C++ / MFC

 
Generalprocess crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 6:47
Jim Crafton12-Apr-02 6:47 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Deveaux12-Apr-02 7:03
Tim Deveaux12-Apr-02 7:03 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 7:17
Jim Crafton12-Apr-02 7:17 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Deveaux12-Apr-02 7:21
Tim Deveaux12-Apr-02 7:21 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 7:58
Jim Crafton12-Apr-02 7:58 
GeneralRe: process crash on dual processor Winnt4 server Pin
Tim Smith12-Apr-02 8:03
Tim Smith12-Apr-02 8:03 
GeneralRe: process crash on dual processor Winnt4 server Pin
Jim Crafton12-Apr-02 8:05
Jim Crafton12-Apr-02 8:05 
GeneralRe: process crash on dual processor Winnt4 server Pin
James R. Twine12-Apr-02 7:43
James R. Twine12-Apr-02 7:43 
Jim Crafton wrote:
I kind of figured this would be the case...sigh...

   Eek! | :eek: Incorrect software development strikes again! Smile | :)

   FWIW, tracking things like this down are really not that hard.  It was already said that you should look at shared memory locations (shared variables), but you then should extend that search to code in and around Critical Sections, and code near InterlockedIncrement(...) and InterlockedDecrement(...).

   IME, those locations are the best place to find mistakes (or misunderstandings).

Jim Crafton also wrote:
maybe we'll just say that our software only runs on single processor machines[...]

   A very dirty thing you can do is to launch the app with a little helper application that uses CreateProcess(...) to launch your application with the CREATE_SUSPENDED flag, and you can then use the SetProcessAffinityMask(...) function to force the thing to run on one CPU.  Note that this is not a fix, nor is it The Right Thing to do, but it should work...!

   Peace!

-=- James.
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 
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 

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.