473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Tray icon in VC7 creashes in idle mode

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

Nov 16 '05 #1
5 1338
>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
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 16 '05 #2
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
"David Lowndes" <da****@mvps.org> wrote in message
news:7p********************************@4ax.com...
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
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq


Nov 16 '05 #3
>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
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 16 '05 #4
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.

Nov 16 '05 #5
>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
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Zeljko | last post by:
Hi, I have a form with a tray icon. However, when I minimize the form, it stays visible - not in the task bar (I have showintaskbar property set to false), but in a form of a rectangle sitting...
7
by: Danielb | last post by:
I want my application to run most of the time as just an notify icon visible in the system tray, with some dialogs windows that open if the user selects an option from the context menu on the tray...
4
by: utkarsh | last post by:
Hi, I want to develop a Window Service in C# that should be capable of sisplaying the a icon in the window tray. Based on some logic in service, icon should be changed to some other...
5
by: Bry | last post by:
Sorry for the repost, but this has been driving me mad for the past few days. There must be a simple solution. There are many other posts about this problem upon an application exit, but my...
8
by: george d lake | last post by:
Hi, I have an app that runs in the system tray. When I exit the app (from a button on a form) the app ends but the icon stays in the tray. Any ideas? here is the code I use to end the app ...
3
by: Stanley | last post by:
Hi all the helpful people out there! I want to dectect system tray so that when an icon is added to the tray, it will alert me! Just like the Printer icon appear with someone prints! Thanks in...
8
by: Avi G | last post by:
Hi, i've created an application and i want it to be minimized to the sys tray, how i do it? if you can direct me step by step even with create a small application and put it in the sys tray ...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
1
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, how can i remove/disable the tray icon for the started Express Edition from the system tray. Te icon directs me to the express editons website after clicking on it. I dont want these tray...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.