Re: Page Members not initialized

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Sorry but you will have to rephrase...
I can not make sence out of folowing statements that almost contradict each
other

1.
"When start the project in debug mode I can see that all
members and fields of the page like Master and so on are all nothing"

2.
Now the weird thing: When I make a breakpoint (in my case in preinit)
all instances of the page are created fine and the page is loaded :/


In case #1 how do you see all members and fields if you did not set
breakpoint? Page object initializes only when called (via browser) and
disposed immediatelly once HTML is rendered.
Hence you need to break somewere between those 2 events to see all members
and fields.

So pretty much behavior is expected given you can explain what you mean by
"I can see that all members and fields of the page ..." in #1...


George.


<kreissl@xxxxxxxxx> wrote in message
news:52a09f00-711f-492a-9f4a-cd8276954984@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

i am really confused. I am working on a ASP.NET project. Language VB,
Framework 3.5. I want to describe the behavior:

Calling a page (including datagrid and a userctrl) I get zero pointer
exceptions. When start the project in debug mode I can see that all
members and fields of the page like Master and so on are all nothing,
including that ones that cannot be zero / nothing!

Now the weird thing: When I make a breakpoint (in my case in preinit)
all instances of the page are created fine and the page is loaded :/

Does anybody has heard of that problem? And I tried long to figure it
out, but the strange thing is that I did not work on that part of the
project. It was like from one day to the other day that that error
appeared. And its the same in release version. Also the designer shows
the page without errors and the partial designer class looks fine
too.

thanks for all hints,

Holger



.



Relevant Pages

  • Re: Conditional breakpoint problems
    ... > set it on one of it's members. ... > generic conditional breakpoint. ... For example debuggers like dbx allow you ...
    (microsoft.public.vsnet.debugging)
  • Re: Conditional breakpoint problems
    ... OK, it seems that you cannot set a data breakpoint on a class, you must set it on one of it's members. ... I find this puzzling as one of the cannonical examples of conditional breakpoints for debuggers in general is a C-style string check like: ...
    (microsoft.public.vsnet.debugging)