Tray icon in VC7 creashes in idle mode

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
 
D

David Lowndes

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
 
A

Anup Nair

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
 
D

David Lowndes

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
 
A

Anup Nair

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.
 
D

David Lowndes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top