Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
GeneralRe: IPC Communication Pin
Heath Stewart16-Oct-03 9:17
protectorHeath Stewart16-Oct-03 9:17 
GeneralRe: IPC Communication Pin
vikramlinux16-Oct-03 17:47
vikramlinux16-Oct-03 17:47 
GeneralRe: IPC Communication Pin
Heath Stewart17-Oct-03 3:11
protectorHeath Stewart17-Oct-03 3:11 
GeneralRequesting a Web page. Pin
fadee15-Oct-03 18:14
fadee15-Oct-03 18:14 
GeneralRe: Requesting a Web page. Pin
Heath Stewart16-Oct-03 9:16
protectorHeath Stewart16-Oct-03 9:16 
Generalinstallating .NET CLR Pin
Norman Fung15-Oct-03 16:46
Norman Fung15-Oct-03 16:46 
GeneralRe: installating .NET CLR Pin
eggie515-Oct-03 17:17
eggie515-Oct-03 17:17 
GeneralThe Great Threading Conundrum Pin
eggie515-Oct-03 14:59
eggie515-Oct-03 14:59 
I have this hellish class, "logging.cs" with an equally hellish method deep inside it's bowels, "populate.cs".

public void populate()
{
              logForm.Show();


}


Now I as it has came to pass, this method is running on a thread.

Now, as the method, and/or class ends, the thread apparently is killed by garbage collection.

So, as you can see the method would run and the form "logForm" will 'show' but for only as long as it takes for the computer to finish the method, and consecuently kill the thread, which closes my form.

This here, is my problem.

Now, here is my question.... How can I keep the thread running, or at least the form???

Is this annoying?


/\ |_ E X E GG
GeneralRe: The Great Threading Conundrum Pin
Wjousts15-Oct-03 15:33
Wjousts15-Oct-03 15:33 
GeneralRe: The Great Threading Conundrum Pin
eggie515-Oct-03 15:49
eggie515-Oct-03 15:49 
GeneralRe: The Great Threading Conundrum Pin
Wjousts16-Oct-03 5:03
Wjousts16-Oct-03 5:03 
Generalapi Pin
jphuphilly15-Oct-03 13:41
jphuphilly15-Oct-03 13:41 
GeneralRe: api Pin
Daniel M. Edwards15-Oct-03 13:57
Daniel M. Edwards15-Oct-03 13:57 
GeneralRe: api Pin
J. Dunlap15-Oct-03 14:10
J. Dunlap15-Oct-03 14:10 
GeneralRe: api Pin
Carlos H. Perez15-Oct-03 15:14
Carlos H. Perez15-Oct-03 15:14 
GeneralRe: api Pin
Christian Graus16-Oct-03 10:07
protectorChristian Graus16-Oct-03 10:07 
Generallistview Pin
jphuphilly15-Oct-03 13:39
jphuphilly15-Oct-03 13:39 
GeneralRe: listview Pin
Heath Stewart16-Oct-03 9:23
protectorHeath Stewart16-Oct-03 9:23 
Generalc++ vs C# Pin
totig15-Oct-03 11:30
totig15-Oct-03 11:30 
GeneralRe: c++ vs C# Pin
Christian Graus15-Oct-03 13:48
protectorChristian Graus15-Oct-03 13:48 
GeneralRe: c++ vs C# Pin
leppie16-Oct-03 8:24
leppie16-Oct-03 8:24 
GeneralRe: c++ vs C# Pin
Christian Graus16-Oct-03 10:04
protectorChristian Graus16-Oct-03 10:04 
GeneralRe: c++ vs C# Pin
Eric Gunnerson (msft)16-Oct-03 10:33
Eric Gunnerson (msft)16-Oct-03 10:33 
Generalenums suck! Pin
Alvaro Mendez15-Oct-03 9:17
Alvaro Mendez15-Oct-03 9:17 
GeneralRe: enums suck! Pin
Richard Lowe15-Oct-03 10:36
Richard Lowe15-Oct-03 10:36 

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.