need help to debug fancontrol
Posted: Sun Apr 22, 2007 1:58 am
I run fancontrol as a regular program.
Once in a while the program dies and the fan is stuck in
whatever speed it was set. Very dangerous if that value
is zero.
So, I thought I'd give it a shot at debugging but I'm not a C++
developer. I recompiled fancontrol with Visual Studio in debug
mode and then waited. After two weeks, it finally died and I got
some debug data to work with.
Here is the stack:
> fancontrol.exe!FANCONTROL::Trace(const char * text=0x0012fcd8) Line 237 + 0x14 bytes C++
fancontrol.exe!FANCONTROL::SetFan(const char * source=0x004a0e70, int fanctrl=1, int final=0) Line 325 C++
fancontrol.exe!FANCONTROL::SmartControl() Line 260 + 0x13 bytes C++
fancontrol.exe!FANCONTROL::HandleData() Line 195 C++
fancontrol.exe!FANCONTROL::DlgProc(HWND__ * hwnd=0x0001070e, unsigned long msg=1031, unsigned int mp1=1, long mp2=0) Line 405 C++
fancontrol.exe!FANCONTROL::BaseDlgProc(HWND__ * hwnd=0x0001070e, unsigned long msg=1031, unsigned int mp1=1, long mp2=0) Line 250 + 0x18 byt
the value of this in SetFan method is 0x0012f814
but the value of this in Trace method (Called by SetFan) is 0x000a0d29(Appears to be the cause of the segmentation fault)
Maybe I'm mistaken but should the value of this be the same?
I'm going to try look at it some more but any advice would be great.
Thanks
Once in a while the program dies and the fan is stuck in
whatever speed it was set. Very dangerous if that value
is zero.
So, I thought I'd give it a shot at debugging but I'm not a C++
developer. I recompiled fancontrol with Visual Studio in debug
mode and then waited. After two weeks, it finally died and I got
some debug data to work with.
Here is the stack:
> fancontrol.exe!FANCONTROL::Trace(const char * text=0x0012fcd8) Line 237 + 0x14 bytes C++
fancontrol.exe!FANCONTROL::SetFan(const char * source=0x004a0e70, int fanctrl=1, int final=0) Line 325 C++
fancontrol.exe!FANCONTROL::SmartControl() Line 260 + 0x13 bytes C++
fancontrol.exe!FANCONTROL::HandleData() Line 195 C++
fancontrol.exe!FANCONTROL::DlgProc(HWND__ * hwnd=0x0001070e, unsigned long msg=1031, unsigned int mp1=1, long mp2=0) Line 405 C++
fancontrol.exe!FANCONTROL::BaseDlgProc(HWND__ * hwnd=0x0001070e, unsigned long msg=1031, unsigned int mp1=1, long mp2=0) Line 250 + 0x18 byt
the value of this in SetFan method is 0x0012f814
but the value of this in Trace method (Called by SetFan) is 0x000a0d29(Appears to be the cause of the segmentation fault)
Maybe I'm mistaken but should the value of this be the same?
I'm going to try look at it some more but any advice would be great.
Thanks