473,385 Members | 1,329 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,385 software developers and data experts.

Sleeping NotifyIcon Thread locks up explorer.exe

Hi,

Create a windows form and run the following code from a button:
notifyIcon1.Visible = true;
System.Threading.Thread.Sleep(15000);

Click the button.
Try to access your windows explorer via the [WindowsKey]-E shortcut. This
will not work, at this point the taskbar will freeze to.
After the sleep time of, in this case, 15 seconds, the requested windows
explorer will pop up.

Anyone has a workaround or explanation for this behaviour ?

Best regards;
Nov 17 '05 #1
2 2064
Why would you ever want to block the UI thread?

Ollie Riches

"Nico De Greef" <unknown> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
Hi,

Create a windows form and run the following code from a button:
notifyIcon1.Visible = true;
System.Threading.Thread.Sleep(15000);

Click the button.
Try to access your windows explorer via the [WindowsKey]-E shortcut. This
will not work, at this point the taskbar will freeze to.
After the sleep time of, in this case, 15 seconds, the requested windows
explorer will pop up.

Anyone has a workaround or explanation for this behaviour ?

Best regards;

Nov 17 '05 #2
I don't, it's just an example.
The code is used in a console application: Change the notify icon and sleep
for 15 seconds.

"Ollie Riches" <ol**********@phoneanalyser.net> wrote in message
news:ex**************@TK2MSFTNGP12.phx.gbl...
Why would you ever want to block the UI thread?

Ollie Riches

"Nico De Greef" <unknown> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
Hi,

Create a windows form and run the following code from a button:
notifyIcon1.Visible = true;
System.Threading.Thread.Sleep(15000);

Click the button.
Try to access your windows explorer via the [WindowsKey]-E shortcut. This
will not work, at this point the taskbar will freeze to.
After the sleep time of, in this case, 15 seconds, the requested windows
explorer will pop up.

Anyone has a workaround or explanation for this behaviour ?

Best regards;


Nov 17 '05 #3

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

Similar topics

1
by: Chris Melnick | last post by:
I am trying to write an application that runs in the system tray, so I am using a NotifyIcon not associated with a Form. My "main" class has an instance of the NotifyIcon, and its ContextMenu, as...
6
by: ujjc001 | last post by:
Hello all. I have many connections that are sleeping. I can right click, kill, up to 2 at a time. It takes about 20 seconds to kill it. Is that normal? I tried to make a stored procedure to...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
0
by: Ole Hanson | last post by:
Hi What's the best way of activating a sleeping process on my local machine? I have an application (.exe) minimized to a notifyicon in the tasktray. Now - if the user clicks the exe-file again...
2
by: Amjad | last post by:
Hi, I'm using the NotifyIcon to process some text files in the background periodically. I want to display one icon in the task bar when the program is in stand by mode, and I want to display...
17
by: Benny Raymond | last post by:
I have a thread that sleeps for 5 minutes once it's finished running a method and then it repeats itself if it's supposed to (bool = true). Prior to 2.0 I was able to resume the thread after...
8
by: Rob | last post by:
Hello, I've got an issue where a process in a third party application has a dll which while exiting sort of freezes and runs away with processor cycles. i've written a block of code so that I...
14
by: OlafMeding | last post by:
Below are 2 files. The first is a Python program that isolates the problem within less than 1 hour (often just a few minutes). The second is a C++ program that shows that the Win32 Sleep()...
0
by: nospam | last post by:
I have an application that is made up of a single module for my global variables and then multiple classes. There is no form. I am using a notifyicon as my notification(Basically different...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.