Click to See Complete Forum and Search --> : How to open a new form on its own thread


thewebhostingdi
07-06-2009, 09:20 PM
I am developing one multithreaded application. I am successfully running my functions on their own thread(created 24 threads already). I am attempting to give its own thread to one function that is rendering a new window in it. I am receiving an error here, due to the single thread architecture.

Is there any way for a form to be had its own thread? Thanks,

dna7433
07-08-2009, 10:49 PM
Is this an ASP.NET application your describing?

What exactly do you hope to achieve with all those threads? Are you doing lots of I/O (accessing databases, web services, or the file system), or are you just running code to render the form?

thewebhostingdi
07-10-2009, 12:37 PM
I am trying to open a window on its own thread. It is Windows Application that I am referring to.

Actually, I need to do that. Because, I have one heavy function that does several tasks

- Capturing screen snap
- uploading it to ftp
- logs the time of that action and other several tasks

I need to open a small windows once this process has been completed. As this function is running on its own thread. This will open a window on a same thread. But it is not allowed due to STA thing. :(