Click here to Skip to main content
16,011,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Open Dialog problem Pin
Plons26-Sep-04 5:29
Plons26-Sep-04 5:29 
Generalhidding a file for good Pin
gamitech24-Sep-04 23:27
gamitech24-Sep-04 23:27 
GeneralRe: hidding a file for good Pin
Brian Delahunty25-Sep-04 0:12
Brian Delahunty25-Sep-04 0:12 
GeneralRe: hidding a file for good Pin
Moak26-Sep-04 23:15
Moak26-Sep-04 23:15 
GeneralEN_CHANGE Pin
gamitech24-Sep-04 23:06
gamitech24-Sep-04 23:06 
GeneralRe: EN_CHANGE Pin
Andrzej Markowski24-Sep-04 23:44
Andrzej Markowski24-Sep-04 23:44 
GeneralRe: EN_CHANGE Pin
Andrzej Markowski3-Oct-04 16:31
Andrzej Markowski3-Oct-04 16:31 
Generalproblem with NT service Pin
JimmyRopes24-Sep-04 23:04
professionalJimmyRopes24-Sep-04 23:04 
I have written an NT service that starts automatically when the system boots. It seems to work fine until I set the machine to go into stand-by mode after a specified period of time and eventually power down the monitor and disk drives after an additional specified time.

I have had successful test runs of 5+ hours without any apparent difficulty but when I changed the settings to the ones mentioned above I get an access violation in MSVCRT.DLL (not my dll). The information message gives me an instruction address in the MSVCRT.DLL and some target address saying that the memory could not be written.

Although the service still indicates that it is running, in the Administrative Tools ==> Services dialog, it is dead in the water, as indicated by an application progress log. Additionally I cannot attach a debugger to it. Not being able to attach a debugger to the process limits the definitive information I can gather about this point of failure.

What I suspect is happening is that the monitor powers down due to prolonged inactivity. I do not think the disks are also powered down at this point because the service is still running or if the service was suspended when the system went into stand-by mode some specified time before the monitor power down is initiated. In either case the disks would power down after the monitor because inactivity would have occured in the monitor some time before the system actually went into stand-by mode or prolonged disk inactivity. From here I am just guessing but it seems, from the name of the dll, like the service is trying to access a buffer associated with the monitor which has been freed when the monitor initiated a power down or power up sequence.

The file version of MSVCRT.DLL is 7.0.2600.2180 (xpsp_sp2_rtm.040803-2158).

My question is if anyone knows of a way to get signeled when the machine makes the transition to/from stand-by or hibernate modes, and when the monitor or disks initiate a power down or power up sequence.

If the process can be signaled then it can be put into a paused state until the machine and\or monitor and disks wake up again and should be able to continue processing.
GeneralRe: problem with NT service Pin
ThatsAlok24-Sep-04 23:26
ThatsAlok24-Sep-04 23:26 
GeneralRe: problem with NT service Pin
JimmyRopes25-Sep-04 3:38
professionalJimmyRopes25-Sep-04 3:38 
GeneralRe: problem with NT service Pin
Blake Miller27-Sep-04 12:18
Blake Miller27-Sep-04 12:18 
GeneralRe: problem with NT service Pin
JimmyRopes27-Sep-04 18:45
professionalJimmyRopes27-Sep-04 18:45 
GeneralProblem with Serial communication Pin
Jbardo24-Sep-04 22:50
Jbardo24-Sep-04 22:50 
GeneralSetting attributes to CFile Pin
ledallam24-Sep-04 20:47
ledallam24-Sep-04 20:47 
GeneralRe: Setting attributes to CFile Pin
BAIJUMAX24-Sep-04 22:50
professionalBAIJUMAX24-Sep-04 22:50 
GeneralRe: Setting attributes to CFile Pin
Andrzej Markowski24-Sep-04 22:52
Andrzej Markowski24-Sep-04 22:52 
GeneralRepainting part of a dialog Pin
Fantmx24-Sep-04 18:12
Fantmx24-Sep-04 18:12 
GeneralRe: Repainting part of a dialog Pin
ThatsAlok24-Sep-04 20:19
ThatsAlok24-Sep-04 20:19 
GeneralRe: Repainting part of a dialog Pin
Michael Dunn25-Sep-04 10:13
sitebuilderMichael Dunn25-Sep-04 10:13 
GeneralUnresolved external symbol _main error Pin
Anonymous24-Sep-04 18:09
Anonymous24-Sep-04 18:09 
Generalcombo box Pin
PrathibaDhinakaran24-Sep-04 17:26
PrathibaDhinakaran24-Sep-04 17:26 
GeneralRe: combo box Pin
Maximilien25-Sep-04 1:41
Maximilien25-Sep-04 1:41 
GeneralRe: combo box Pin
PrathibaDhinakaran11-Oct-04 16:15
PrathibaDhinakaran11-Oct-04 16:15 
GeneralFileSystemWatcher.OnChanged Pin
persian_boi24-Sep-04 16:56
persian_boi24-Sep-04 16:56 
GeneralRe: FileSystemWatcher.OnChanged Pin
Garth J Lancaster24-Sep-04 17:21
professionalGarth J Lancaster24-Sep-04 17: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.