Click here to Skip to main content
15,747,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SQL Query In ADO MFC/Visual C++ Pin
Stuart Dootson14-May-09 1:01
professionalStuart Dootson14-May-09 1:01 
QuestionRe: SQL Query In ADO MFC/Visual C++ Pin
Astitva2314-May-09 1:43
Astitva2314-May-09 1:43 
AnswerRe: SQL Query In ADO MFC/Visual C++ Pin
Stuart Dootson14-May-09 2:32
professionalStuart Dootson14-May-09 2:32 
QuestionExtended MAPI - embedding an attachment inside the message Pin
yakobom13-May-09 21:15
yakobom13-May-09 21:15 
AnswerRe: Extended MAPI - embedding an attachment inside the message Pin
Madhu Nair13-May-09 22:29
Madhu Nair13-May-09 22:29 
GeneralRe: Extended MAPI - embedding an attachment inside the message Pin
yakobom13-May-09 22:51
yakobom13-May-09 22:51 
GeneralRe: Extended MAPI - embedding an attachment inside the message Pin
Madhu Nair13-May-09 23:16
Madhu Nair13-May-09 23:16 
QuestionOperating system hangs up + watchdog application for windows Pin
eli1502197913-May-09 19:07
eli1502197913-May-09 19:07 
Hi,

Our project(client\server application) support redundancy(i.e there 2 running servers,one of them is the root and the other is the secondary,and there are multiple clients connected to each one of the servers.once the root server is down,the secondary becomes the root server and continue to serve the clients from the same location the other server stopped).
The servers uses PING messages between them to realize when a server(which can be the root server) is down(to switch to another root).
In addition,we wrote some kind of watchdog application,which is running on each server,and which is being notified by it's server(keep alive events).
In case that the watchdog didn't get such keepalive event for a predefined period of time(for example - the server is in endless loop) - the watchdog resets it's server in order to let another server to become a root server.

So far so good Big Grin | :-D

During one of our unit test,we encountered a problem which causes the operating system(Windows XP) of the root server to hangs(note that not only the server application hangs but the computer is not responding).
In such case the watchdog application is not working also,therefor - cannot reset the root server.

You probably ask yourself:
"So whats the problem?
The other server will try to PING to the other root server,and since the PING process will fail,the
other server will become the root server."

Well......you're wrong!!!!! D'Oh! | :doh:
For some reason,though the operating system hangs - it still response to PING request.

Now for the questions...

1. We're looking for an API which causes the operating system to hangs (so when we'll fiind a
solution we will be able test it.
2. Is there another way to stop PING handling while the operating system hangs?
3. Is there a built in watchdog mechanism in Windows XP that we can use(or another watchdog
application which runs in a lower level and can reset the computer in case that the operating
system hangs?

Sorry for the (very) lonk post...
With best regards,
Eli
AnswerRe: Operating system hangs up + watchdog application for windows Pin
«_Superman_»13-May-09 19:12
professional«_Superman_»13-May-09 19:12 
GeneralRe: Operating system hangs up + watchdog application for windows Pin
eli1502197913-May-09 20:23
eli1502197913-May-09 20:23 
GeneralRe: Operating system hangs up + watchdog application for windows Pin
«_Superman_»13-May-09 20:50
professional«_Superman_»13-May-09 20:50 
GeneralRe: Operating system hangs up + watchdog application for windows Pin
eli1502197913-May-09 21:00
eli1502197913-May-09 21:00 
GeneralRe: Operating system hangs up + watchdog application for windows Pin
«_Superman_»13-May-09 21:10
professional«_Superman_»13-May-09 21:10 
QuestionRe: Operating system hangs up + watchdog application for windows Pin
David Crow14-May-09 3:03
David Crow14-May-09 3:03 
Questiondirect map Pin
shefa' isied13-May-09 18:40
shefa' isied13-May-09 18:40 
AnswerRe: direct map Pin
Franck Paquier13-May-09 19:07
Franck Paquier13-May-09 19:07 
QuestionSimple Question about Tool Bars Pin
Software200713-May-09 17:09
Software200713-May-09 17:09 
AnswerRe: Simple Question about Tool Bars Pin
Chandrasekharan P13-May-09 17:20
Chandrasekharan P13-May-09 17:20 
Questionhow to call c++ .dll with object file library in vb 6 [modified] Pin
zhiyuan1613-May-09 15:03
zhiyuan1613-May-09 15:03 
AnswerRe: how to call c++ .dll with object file library in vb 6 Pin
«_Superman_»13-May-09 19:02
professional«_Superman_»13-May-09 19:02 
GeneralRe: how to call c++ .dll with object file library in vb 6 Pin
zhiyuan1613-May-09 19:59
zhiyuan1613-May-09 19:59 
GeneralRe: how to call c++ .dll with object file library in vb 6 Pin
«_Superman_»13-May-09 20:02
professional«_Superman_»13-May-09 20:02 
GeneralRe: how to call c++ .dll with object file library in vb 6 Pin
zhiyuan1613-May-09 20:20
zhiyuan1613-May-09 20:20 
GeneralRe: how to call c++ .dll with object file library in vb 6 Pin
«_Superman_»13-May-09 20:22
professional«_Superman_»13-May-09 20:22 
GeneralRe: how to call c++ .dll with object file library in vb 6 Pin
zhiyuan1613-May-09 20:29
zhiyuan1613-May-09 20:29 

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.