Tray icon in VC7 creashes in idle mode

  • Thread starter Thread starter Anup Nair
  • Start date Start date
A

Anup Nair

Hi All,

I am building a system tray icon App in unmanaged vc++ 7.0,
But the tray icon crashes every time the machine goes into the idle mode.
I am using TaskbarCreated Registered Message for the tray icon and have set
the window handler to the tray structure as a top-level hidden window.
But all these methods are of no help.

Is there any other option I am missing.

Thanks in advance.
AN
 
But the tray icon crashes every time the machine goes into the idle mode.

Can you elaborate - where does your application crash? What do you
mean by "idle mode"?

Dave
 
Hi Dave,

By Idle Mode, I mean that when ever the screensaver starts or the machine
goes into the power saving mode, at such times I get the message saying that
"TrayIcon.exe could not read memory reference at 0x0000000000"

Thanks,
AN
 
By Idle Mode, I mean that when ever the screensaver starts or the machine
goes into the power saving mode, at such times I get the message saying that
"TrayIcon.exe could not read memory reference at 0x0000000000"

.... so if you run your code under the debugger, what is it doing at
that point?

Dave
 
Hi Dave,
... so if you run your code under the debugger, what is it doing at
that point?
That is the problem, the application runs without any problem on my machine
(never crashes), but crashes on other machines in my office.
All these machines have the two required dlls : mfc70.dll & msvcr70.dll in
the same folder as the application, and apart from this all the machines
have the dot net framework 1.0. running on them. I cannot run the debugger
on these machines to check the error.

Am I still missing something.
 
I cannot run the debugger
on these machines to check the error.

In that case you're unlikely to be able to find the error :)

Can't you even run the remote debugger (msvcmon) on them?

Dave
 
Back
Top