By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,458 Members | 1,435 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,458 IT Pros & Developers. It's quick & easy.

Threads freezes other application

P: n/a
I have a C# application that runs fine on any computer (XP,
2000, 98). I have just installed on a PC that also has a
POS which runs in kiosk mode. The problem is that when my
application start running the POS stop responding (or at
least stop repainting screens). My application is a console
application which starts 2 different threads. I debugged
my application and found out that on thread #1 the line of
code affecting the POS is a Thread.Sleep(x); on thread #2
the line is a Monitor.Wait(x).

If I remove those lines from code the POS works fine, but
my application will not work as intended.

I'm suspicious of the [STAThread] attribute on the Main

I will appreciate any kind of help.

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.