Click here to Skip to main content
15,923,051 members
Home / Discussions / C#
   

C#

 
GeneralRe: Add Reference Pin
Not Active2-Dec-02 2:50
mentorNot Active2-Dec-02 2:50 
GeneralRe: Add Reference Pin
Kannan Kalyanaraman2-Dec-02 2:58
Kannan Kalyanaraman2-Dec-02 2:58 
GeneralRe: Add Reference Pin
grv5752-Dec-02 14:01
grv5752-Dec-02 14:01 
GeneralPersisting Property of userdefined Collection type. Pin
zorifila2-Dec-02 0:51
zorifila2-Dec-02 0:51 
GeneralRe: Persisting Property of userdefined Collection type. Pin
xicoloko2-Dec-02 4:26
xicoloko2-Dec-02 4:26 
GeneralImage into MS-Access Database Pin
shokisingh1-Dec-02 23:18
shokisingh1-Dec-02 23:18 
GeneralRe: Image into MS-Access Database Pin
Mazdak2-Dec-02 0:40
Mazdak2-Dec-02 0:40 
GeneralCreating a new process Pin
suresh_sathya1-Dec-02 20:55
suresh_sathya1-Dec-02 20:55 
GeneralRe: Creating a new process Pin
James T. Johnson1-Dec-02 21:17
James T. Johnson1-Dec-02 21:17 
QuestionAnyone get CreateControl() to work? Pin
Jeff J1-Dec-02 18:19
Jeff J1-Dec-02 18:19 
GeneralImage edit Pin
Smitha Nishant30-Nov-02 23:54
protectorSmitha Nishant30-Nov-02 23:54 
GeneralRe: Image edit Pin
Christian Graus1-Dec-02 16:22
protectorChristian Graus1-Dec-02 16:22 
GeneralRe: Image edit Pin
Smitha Nishant2-Dec-02 18:01
protectorSmitha Nishant2-Dec-02 18:01 
Questionsscanf equivalent in C#? Pin
roybrew30-Nov-02 16:18
roybrew30-Nov-02 16:18 
AnswerRe: sscanf equivalent in C#? Pin
David Stone30-Nov-02 18:22
sitebuilderDavid Stone30-Nov-02 18:22 
AnswerRe: sscanf equivalent in C#? Pin
Nick Parker30-Nov-02 18:37
protectorNick Parker30-Nov-02 18:37 
GeneralRe: sscanf equivalent in C#? Pin
David Stone30-Nov-02 19:13
sitebuilderDavid Stone30-Nov-02 19:13 
GeneralRe: sscanf equivalent in C#? Pin
roybrew1-Dec-02 5:24
roybrew1-Dec-02 5:24 
GeneralRe: sscanf equivalent in C#? Pin
Shaun Wilde2-Dec-02 4:24
Shaun Wilde2-Dec-02 4:24 
GeneralNet Send Pin
Bugoy29-Nov-02 19:03
Bugoy29-Nov-02 19:03 
GeneralRe: Net Send Pin
Tomtomm29-Nov-02 23:39
Tomtomm29-Nov-02 23:39 
GeneralAbout threads and forms... Pin
GriffonRL29-Nov-02 6:16
GriffonRL29-Nov-02 6:16 
Hello,

I wrote a program who is not UI dependent. I have all my program logic in a class and I raise some events for any potential frontend.
I can then create a console application or a Windows form application using the same program logic.
The frontend just run a thread using the run() function of my main class (UI independent) which do all the job.
This main class also creates internally several threads performing various tasks in parallel. Since all this threads are just pure computation I have no problems.
But I recently wanted to create forms in some of these internal threads running in parallel and I have been unsuccessful for far Frown | :(
What happens is that forms get created but are not responsive at all and the internal threads get stuck. How can I create these forms and make them run independently in each thread ?

Here is schema:

Frontend (Console or Form, main thread)
|
|
Main class (running in a thread)
| | | | |
| | | | |
Child threads (computation)
x x x x x <-- child threads can not work with forms
x x x x x <-- how to call functions in those forms ?
Child threads forms

Any idea ?


R. LOPES
Just programmer.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.