473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to initialized variables

Hi,

This is a silly question.
When I'm debugging, I store textboxes values into global or module
variables. (C#)
But when I just start debugging, in the watch window I can see the previous
values of the variables, that I set the previous time I was debugging.
I now I can force dispose in the end, but at the beginning, how is this
handled?

Please advise,

Tks

--
Leo
Jul 21 '05 #1
1 1167
This is probably before any breakpoints are hit? And it would be because,
this is what the debugger does - it does not re-evaluate that until a
breakpoint is hit - otherwise debugging would be much much much slower, as
the debugger would have to re-evaluate every watch expression after every
line of code - even if the breakpoint is 10K lines later.

"leotricaspio" <le**********@online.nospam> wrote in message
news:C1**********************************@microsof t.com...
Hi,

This is a silly question.
When I'm debugging, I store textboxes values into global or module
variables. (C#)
But when I just start debugging, in the watch window I can see the previous values of the variables, that I set the previous time I was debugging.
I now I can force dispose in the end, but at the beginning, how is this
handled?

Please advise,

Tks

--
Leo

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: nikolai.onken | last post by:
Hello, I got following problem trying to inherit a variable from another class class Core { public $obj; function initialize($obj) {
2
by: SOAP | last post by:
how to check whether int is initialized or not in runtime? thank you -- ~ ªÑ²¼»ù®æ¦³¤É¦³¶^, ¶R½æ­n¯à©Ó¾á­·ÀI ~ ~ Samba, more than a low cost File and Printer server ~
4
by: Steven T. Hatton | last post by:
I mistakenly set this to the comp.std.c++ a few days back. I don't believe it passed the moderator's veto - and I did not expect or desire anything different. But the question remains: ISO/IEC...
2
by: peter | last post by:
I have been unsuccessful turning register_globals off. I've tried several ideas. I'm thinking it may not be possible with my hosting company. If I initialize all variables, using $_POST, does...
3
by: lauch2 | last post by:
Can anyone talk me is there existed a "default" value for a un-initialized int variable in a release build in VC6 and VC7.1. (I know there is a compilation warning) For Example: main(){ int a;...
7
by: Rahul | last post by:
I have initialized some session variables in Global.asa for our web application. But these session variables are returning null values; it is was working fine before; Recently we have rebuild our...
2
by: gallasr | last post by:
Hello, three years I made upgrade to newest PHP on my local PC and links stopped to work. This is the only site I use PHP so I`m just casual user of this language. Worked before, not working...
10
by: raylopez99 | last post by:
Beware this newbie trap: private bool myFunction (Myenum X) { bool local_bool; //this will not compile; you need to do this first: bool local_bool = true; switch (X) { case 1:
50
by: arunajob | last post by:
Hi all, If I have a piece of code something like this void main(void) { char * p1="abcdefghijklmn"; ............................................. }
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.