473,385 Members | 1,453 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,385 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 1166
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.