Re: Variable Scope Reference
What does the IL show you?
In one case you have a variable that is created on the stack and may well be retained in either the processor registers, or the cache, without having any real impact outside of the routine, while in the other case you have a variable created on the heap, which may have a read/write to system RAM for every iteration.
Re: Variable Scope Reference
How do you look at the IL from VB Express(2008)? I have never done that.
Re: Variable Scope Reference
Neither have I, since I don't use Express.
Might as well do a search to see if ILDASM is included on your computer. I would expect that it is there, but I never remember where it is located. I add it to the Tools menu with Tools|External Tools..., but I think that just lets you browse for tools, so you need to know where ILDASM is located, first.
Re: Variable Scope Reference
Found it under 2003 SDK. I tried opening .exe's and it gave me an error "Failed to open meta data". Sounds like a title for a song 'I lost my meta data'