471,120 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

messagebox, showdialog and threads error

3
Hi,

I'm having a weird problem.
I use a thread to generate a lot of data in c#, and at the end of the thread I sould have a messagebox that show. If I execute the code two time, everything work great, but if I execute it a third time, the messagebox doesn't appeir.

I check in the debug and the line is executed but nothing is show.

Then I try to change the messagebox to a custom form with a showdialog. The two first time, everything work fine, exept that showdialog is executed like a simple show. But the third time, the debug stop at the line where I create the form (frmTest t = new frmTest();) and make a infinit loop at t.showDialog(); without never giving error...

I try a lot of stuff like abord the thread at the last line of the thread, or use a delegate, and nothing work...

By the way, sorry for my english.
Jul 10 '08 #1
0 1020

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Harry_Crow | last post: by
8 posts views Thread by Saso Zagoranski | last post: by
2 posts views Thread by Cantekin Guneser | last post: by
2 posts views Thread by Du Dang | last post: by
1 post views Thread by NanoWizard | last post: by
2 posts views Thread by Visual Systems AB \(Martin Arvidsson\) | last post: by
2 posts views Thread by Nuno Magalhaes | last post: by
14 posts views Thread by shark | last post: by

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.