Click here to Skip to main content
15,924,038 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to return the result of a function in a thread? Pin
S. Senthil Kumar7-Oct-05 20:50
S. Senthil Kumar7-Oct-05 20:50 
QuestionThe TcpClient is so slowly to create. Pin
rushing7-Oct-05 15:21
rushing7-Oct-05 15:21 
Questionc# 2.0 exam Pin
fmardani7-Oct-05 10:25
fmardani7-Oct-05 10:25 
AnswerRe: c# 2.0 exam Pin
enjoycrack7-Oct-05 10:37
enjoycrack7-Oct-05 10:37 
QuestionStatic Method Variables Pin
tsramkumar7-Oct-05 9:27
tsramkumar7-Oct-05 9:27 
AnswerRe: Static Method Variables Pin
Daniel Grunwald7-Oct-05 9:43
Daniel Grunwald7-Oct-05 9:43 
GeneralRe: Static Method Variables Pin
tsramkumar7-Oct-05 9:44
tsramkumar7-Oct-05 9:44 
AnswerRe: Static Method Variables Pin
S. Senthil Kumar7-Oct-05 20:56
S. Senthil Kumar7-Oct-05 20:56 
tsramkumar wrote:
y one instance of this method is created for this class


Not really. There are no instances for methods, static or otherwise. When your application loads up, these methods (the compiled code, actually) are loaded into memory (a special section called .text) and that's it.

That memory is totally different from memory used by local variables. Local variables are created on the stack and each invocation of the function creates them, so yeah, you are safe as long as the variables you refer to are local variables.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Static Method Variables Pin
tsramkumar8-Oct-05 17:46
tsramkumar8-Oct-05 17:46 
AnswerRe: Static Method Variables Pin
Tom Larsen8-Oct-05 9:19
Tom Larsen8-Oct-05 9:19 
QuestionInternal Rate of Return code (IRR) Pin
zaboboa7-Oct-05 9:07
zaboboa7-Oct-05 9:07 
AnswerRe: Internal Rate of Return code (IRR) Pin
leppie7-Oct-05 11:21
leppie7-Oct-05 11:21 
GeneralRe: Internal Rate of Return code (IRR) Pin
zaboboa11-Oct-05 3:01
zaboboa11-Oct-05 3:01 
QuestionDataGridView + DoubleClick + Close = Exception? Pin
Anonymous7-Oct-05 8:00
Anonymous7-Oct-05 8:00 
AnswerRe: DataGridView + DoubleClick + Close = Exception? Pin
XRaheemX7-Oct-05 8:18
XRaheemX7-Oct-05 8:18 
GeneralRe: DataGridView + DoubleClick + Close = Exception? Pin
Anonymous7-Oct-05 8:19
Anonymous7-Oct-05 8:19 
GeneralRe: DataGridView + DoubleClick + Close = Exception? Pin
XRaheemX7-Oct-05 8:24
XRaheemX7-Oct-05 8:24 
GeneralRe: DataGridView + DoubleClick + Close = Exception? Pin
Anonymous7-Oct-05 9:09
Anonymous7-Oct-05 9:09 
GeneralRe: DataGridView + DoubleClick + Close = Exception? Pin
Anonymous11-Oct-05 5:26
Anonymous11-Oct-05 5:26 
QuestionDialog opening behavior on a dual monitor system Pin
Dan Neely7-Oct-05 7:40
Dan Neely7-Oct-05 7:40 
AnswerRe: Dialog opening behavior on a dual monitor system Pin
XRaheemX7-Oct-05 7:44
XRaheemX7-Oct-05 7:44 
GeneralRe: Dialog opening behavior on a dual monitor system Pin
Dan Neely7-Oct-05 8:00
Dan Neely7-Oct-05 8:00 
GeneralRe: Dialog opening behavior on a dual monitor system Pin
XRaheemX7-Oct-05 8:05
XRaheemX7-Oct-05 8:05 
GeneralRe: Dialog opening behavior on a dual monitor system Pin
Dan Neely7-Oct-05 8:44
Dan Neely7-Oct-05 8:44 
GeneralRe: Dialog opening behavior on a dual monitor system Pin
XRaheemX7-Oct-05 8:45
XRaheemX7-Oct-05 8:45 

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.