Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
GeneralSecond Time Slow Code Pin
obelisk2928-Jan-04 16:59
obelisk2928-Jan-04 16:59 
GeneralRe: Second Time Slow Code Pin
Le centriste28-Jan-04 18:19
Le centriste28-Jan-04 18:19 
GeneralRe: Second Time Slow Code Pin
obelisk2929-Jan-04 4:44
obelisk2929-Jan-04 4:44 
GeneralRe: Second Time Slow Code Pin
Colin Angus Mackay29-Jan-04 14:48
Colin Angus Mackay29-Jan-04 14:48 
GeneralDataAdapters Pin
MrJJKoolJ28-Jan-04 13:54
MrJJKoolJ28-Jan-04 13:54 
GeneralRe: DataAdapters Pin
Christian Graus28-Jan-04 15:47
protectorChristian Graus28-Jan-04 15:47 
GeneralRe: DataAdapters Pin
MrJJKoolJ28-Jan-04 16:22
MrJJKoolJ28-Jan-04 16:22 
GeneralRe: DataAdapters Pin
Christian Graus28-Jan-04 16:27
protectorChristian Graus28-Jan-04 16:27 
MrJJKoolJ wrote:
So I call the class in my other class to do a function call and once that
function call is done so is the life of the class, correct?


If the class instance is created with a call to 'new' inside that function, yes.

MrJJKoolJ wrote:
Use said to make it static in global in the class then it will persist for the life of the App.

If it's a static variable in any scope then there will only ever be one instance of the class. If it remains the same instance, I'm not sure. On second thoughts, it may not solve anything at all. What needs to happen is simply that the instance of the class is created when your app starts and to be in a scope where it's not destroyed. In a desktop app, that would be the point where the main constructor is called, in an ASP.NET app, application start would be the way to go.


Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralControls using the form designer Pin
James Simpson28-Jan-04 12:12
James Simpson28-Jan-04 12:12 
GeneralRe: Controls using the form designer Pin
James Simpson28-Jan-04 12:28
James Simpson28-Jan-04 12:28 
Generalthreding Pin
nadeen ali28-Jan-04 10:56
nadeen ali28-Jan-04 10:56 
GeneralRe: threding Pin
Heath Stewart28-Jan-04 11:32
protectorHeath Stewart28-Jan-04 11:32 
GeneralProtecting a CD or DVD from copy Pin
antoine@orchus-tech28-Jan-04 10:05
antoine@orchus-tech28-Jan-04 10:05 
GeneralRe: Protecting a CD or DVD from copy Pin
Heath Stewart28-Jan-04 11:24
protectorHeath Stewart28-Jan-04 11:24 
GeneralRe: Protecting a CD or DVD from copy Pin
Kentamanos28-Jan-04 11:28
Kentamanos28-Jan-04 11:28 
QuestionHow to record keyboard Pin
jacal9928-Jan-04 9:25
jacal9928-Jan-04 9:25 
AnswerRe: How to record keyboard Pin
Mazdak28-Jan-04 9:43
Mazdak28-Jan-04 9:43 
GeneralRe: How to record keyboard Pin
jacal9928-Jan-04 9:54
jacal9928-Jan-04 9:54 
GeneralTextBox Capture property is automatically set to false Pin
Manobal28-Jan-04 8:27
Manobal28-Jan-04 8:27 
GeneralRe: TextBox Capture property is automatically set to false Pin
Heath Stewart28-Jan-04 11:34
protectorHeath Stewart28-Jan-04 11:34 
GeneralRe: TextBox Capture property is automatically set to false Pin
Manobal28-Jan-04 12:18
Manobal28-Jan-04 12:18 
GeneralRe: TextBox Capture property is automatically set to false Pin
Heath Stewart28-Jan-04 12:21
protectorHeath Stewart28-Jan-04 12:21 
Generalon which port the applacition is running Pin
obaidullah28-Jan-04 8:00
obaidullah28-Jan-04 8:00 
GeneralRe: on which port the applacition is running Pin
Heath Stewart28-Jan-04 11:43
protectorHeath Stewart28-Jan-04 11:43 
GeneralFrontPage Web Connection Pin
Adam Hable28-Jan-04 7:27
Adam Hable28-Jan-04 7:27 

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.