CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 8/28/2007 9:43:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
PMichaud
Asp.Net User
Bizarre: null reference throws an exception then becomes populated during break8/28/2007 9:43:33 PM

0/0

I have a variable that by all rights should be populated, upon which I call a method. When I do this, a null reference exception is thrown, so I go to the code, use intellisense to confirm that, yes, the variable is null. I look at the function I called: nothing out of the ordinary, so I go back to the line where the ex was thrown. At that point the variable which was null (causing the error in the first place), now is populated with the correct object that I was expecting to be there. The program is not moving -- it has hit a break, and I have not let it move forward, yet the variable changes values.

 I've been able to reproduce the situation consistently here, so I really don't get what's gonig on -- how can a null object get an instance while the program is at a break?

dt008
Asp.Net User
Re: Bizarre: null reference throws an exception then becomes populated during break8/28/2007 10:56:17 PM

0/0

Another thread, maybe? Maybe this object is marked as disposed somewhere, and at that time (that the object is null) the garbage collector executes?


Plese, do not forget to click "Mark as Answer" on the post that helped you. Thanx!

My blog: Scenes From A Developer Memory
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Cyrus' Blather : Nullable types in C# (part 2) Nullable::Value throws an exception if Nullable::HasValue is false. ..... Since one valid state for Nullable is null, then there is no sense in expressing ...
Michael Nascimento Santos's Blog: J2SE Archives Then the output becomes: public java.lang.String BizarreBean$B1. .... catch ( Exception e) { //do something and... throw new BusinessException(e); } ...
SimplyGold | Templates, Themes, Tutorials Bizarre. I thought I had unrepairably screwed my operating system until I found ... ExecuteNonQuery() == 0) throw new Exception("Failed to insert monkey"); ...
Thomas Hawtin's Weblog The parameters of the method are populated by the arguments right of the colon ... catch (final Exception exc) { ... throw exc; // Must be of type caught. ...
ObjectiveView and numeric types), false (bool), or null (reference. types). row = new int[42]; ...... throw the original exception (this ensure you don’t lose ...
FutureTask and I declare this variable Integer x = null; then when I make this call test(x) ... throw new Exception("dummy"); } catch(Exception e) { ...
I may have joined the wrong side One answer is to store any exceptions into some custom exception that contains an exception collection, then throw the resulting beastie at the end of the ...
TheMSsForum.com >> Framework >> IIS Management - The Microsoft ... If invocation list of a becomes empty, a becomes null. Removal by equality allows ..... If you tried to use the cab it will throw an exception of any type. ...
JOS Statistics - Recent Comments What I meant is that we elect our leaders, and then we become hostage to their ...... Tue 10 Sep | David Blume | Null reference = 'Evil, pure and simple. ...
marklio - Technical If you cast a null string reference to object, does it retain its ..... to only those statements that I expected might throw the exception for locking. ...




Search This Site:










login not work after transfering app to another development machine

different access levels

dpapi machine store - hardware swap outs

invalid postback or callback argument error - please help me

simple security question

classic asp security vs. asp.net 2.0 - general information

implementing roleprovider - problems with isuserinrole when username is current user

permissions

bug in my.user.name?

bad data with decryption

change the email address

membership providers

rember last login

how to hide the credentials from the connection string

why still 'unauthorizedaccessexception' even i have all avaible accounts selected?

formsauthentication() nightmare!!!

login control.

maintaining directory structure on web server

subdirectory level authentication

problem getting my providers up and running...

finding out what user is using asp.net

adding e-mail verification to the createuserwizard

redirect user to a page with 'http basic authentication'

help me with role authentication and web.config, plz!!!!!!!!!

programatically changing "access rules" for role-based authorization

aspnetaccessprovider for visual studio 2005

error impersonation in web.config

checking security of file with httpwebrequest.getresponse problem.

forms or windows authentication

how to achieve forms authentication in asp.net using c#

  Privacy | Contact Us
All Times Are GMT