Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Screen Saver Enabling/Disabling Pin
B D Richardson23-Mar-05 1:39
B D Richardson23-Mar-05 1:39 
GeneralRe: Screen Saver Enabling/Disabling Pin
Heath Stewart23-Mar-05 12:43
protectorHeath Stewart23-Mar-05 12:43 
GeneralWorking with DNS class Pin
vad_kr22-Mar-05 3:39
vad_kr22-Mar-05 3:39 
GeneralRe: Working with DNS class Pin
leppie22-Mar-05 4:13
leppie22-Mar-05 4:13 
GeneralRe: Working with DNS class Pin
stinGfasT22-Mar-05 9:06
stinGfasT22-Mar-05 9:06 
GeneralRe: Working with DNS class Pin
Anonymous22-Mar-05 9:25
Anonymous22-Mar-05 9:25 
GeneralSearching DataSets with multiple strings Pin
Joshua Lunsford22-Mar-05 3:27
Joshua Lunsford22-Mar-05 3:27 
GeneralSystem.NullReferenceException occurred in Unknown Module Pin
AO-Action22-Mar-05 1:36
AO-Action22-Mar-05 1:36 
Hi every body... I'v searched the comments, I did find pieces of information here and there but it's not even near the bull's-eye, so I decided to post a new thread hopping for someone to help me getting out of this problem Smile | :)

the main/parent form is an MDI form and the child is a normal form. The problem accurres after the user selects the child from parent's mainmenu, during the process of loding the child form I get this message
http://mars.walagata.com/w/action/DotNet/unhand.jpg[^]
"An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module. Additional information: Object reference is not set to an instance of an object."

and after I clicked the continue, the child form runs without any prob. butif I clicked the Break this messagebox shows up
http://mars.walagata.com/w/action/DotNet/there-is.jpg[^]

this is part of the code related to the problem (I think)
the parent part... calling the child
AccountEdit editAccount = new AccountEdit();<br />
editAccount.MdiParent = this;<br />
editAccount.Show();


I removed the "MdiParent = ..." and its the same, changed the Show() to ShowDialog() and still the same

the chiled part..
I DIDN'T CODE ANY THING, I just draged and droped controls and rearrange them on the form. The one thing I remember is that this problem started to showup after I add any list control and this time I added ListView control.
Here is a link to the code (I don't want to make this message long) :
http://mars.walagata.com/w/action/DotNet/code.txt[^]

after reading some posts that said that this only accurres in the VS.net 2003 environment, I decided to ignore this exception http://mars.walagata.com/w/action/DotNet/exception.jpg[^]
some other posts said that uninstalling and reinstalling the framework will solve the prob but I don't believe so

It is related to referencing null value only after the Show(), so any ideas?

and another question, why after some time I can't type '{' in vs.net?
GeneralRe: System.NullReferenceException occurred in Unknown Module Pin
Robert Rohde22-Mar-05 2:05
Robert Rohde22-Mar-05 2:05 
GeneralRe: System.NullReferenceException occurred in Unknown Module Pin
AO-Action22-Mar-05 2:31
AO-Action22-Mar-05 2:31 
QuestionHow to get text on screen Pin
levgiang22-Mar-05 0:39
levgiang22-Mar-05 0:39 
AnswerRe: How to get text on screen Pin
leppie22-Mar-05 1:07
leppie22-Mar-05 1:07 
AnswerRe: How to get text on screen Pin
Dave Kreskowiak22-Mar-05 4:48
mveDave Kreskowiak22-Mar-05 4:48 
Generallist view goes blank Pin
maheshfour21-Mar-05 23:12
maheshfour21-Mar-05 23:12 
GeneralRe: list view goes blank Pin
Dave Kreskowiak22-Mar-05 4:45
mveDave Kreskowiak22-Mar-05 4:45 
Generaltabs in tree view Pin
Anonymous21-Mar-05 23:05
Anonymous21-Mar-05 23:05 
GeneralRe: tabs in tree view Pin
Dave Kreskowiak22-Mar-05 4:39
mveDave Kreskowiak22-Mar-05 4:39 
Generalfile system protection Pin
computer_eng21-Mar-05 22:52
computer_eng21-Mar-05 22:52 
GeneralRe: file system protection Pin
James Poulose21-Mar-05 23:37
James Poulose21-Mar-05 23:37 
GeneralRe: file system protection Pin
Anonymous22-Mar-05 22:01
Anonymous22-Mar-05 22:01 
GeneralRe: file system protection Pin
Dave Kreskowiak22-Mar-05 4:37
mveDave Kreskowiak22-Mar-05 4:37 
GeneralRe: file system protection Pin
Anonymous22-Mar-05 22:47
Anonymous22-Mar-05 22:47 
GeneralRe: file system protection Pin
Dave Kreskowiak23-Mar-05 0:43
mveDave Kreskowiak23-Mar-05 0:43 
GeneralFit together two controls Pin
jetli_bos21-Mar-05 20:48
sussjetli_bos21-Mar-05 20:48 
GeneralRe: Fit together two controls Pin
Colin Angus Mackay21-Mar-05 21:08
Colin Angus Mackay21-Mar-05 21:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.