why is a second thread being created ?

My code is generating a second thread to execute an initializing display screen.

I get a "cross-threaded" error.

This is a single threaded program.

I have made no additions regarding threading. Why could this occur ?
pillmillAsked:
Who is Participating?
 
AkisCCommented:
Use try/catch and see what line causes the error!
0
 
RedKelvinCommented:
Hi, could you please provide the actual error....thanks
0
 
RedKelvinCommented:
take a look at this too
http://channel9.msdn.com/ShowPost.aspx?PostID=140373

are you using a timer?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Fernando SotoRetiredCommented:
It would help to see the section of code that throws the error, can you post it?
0
 
mastooCommented:
Using a timer other than the Forms timer will create other threads, and garbage collection runs in its own thread so if you did anything fancy in a finalize method you would run into problems.
0
 
RedKelvinCommented:
Since the author has not responded, it is impossible to assist accurately
0
 
Fernando SotoRetiredCommented:
Can't help someone who does not respond to our posts.
0
 
Fernando SotoRetiredCommented:
Sounds goo to me. ;=)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.