Click here to Skip to main content
15,890,690 members
Home / Discussions / C#
   

C#

 
AnswerRe: using Form does not release memory Pin
Dave Kreskowiak7-Jul-17 2:29
mveDave Kreskowiak7-Jul-17 2:29 
GeneralRe: using Form does not release memory Pin
Richard Andrew x647-Jul-17 7:28
professionalRichard Andrew x647-Jul-17 7:28 
GeneralRe: using Form does not release memory Pin
Dave Kreskowiak7-Jul-17 7:34
mveDave Kreskowiak7-Jul-17 7:34 
GeneralRe: using Form does not release memory Pin
Montgomery-Burns10-Jul-17 20:23
Montgomery-Burns10-Jul-17 20:23 
QuestionRegex: change groups value Pin
Member 102846646-Jul-17 21:51
Member 102846646-Jul-17 21:51 
AnswerRe: Regex: change groups value Pin
Richard Deeming7-Jul-17 0:42
mveRichard Deeming7-Jul-17 0:42 
QuestionNeed Help Desperately! Development server trying to find local server path Pin
BigLitz6-Jul-17 3:57
BigLitz6-Jul-17 3:57 
AnswerRe: Need Help Desperately! Development server trying to find local server path Pin
OriginalGriff6-Jul-17 5:32
mveOriginalGriff6-Jul-17 5:32 
Look at the error message:
Quote:
Object reference not set to an instance of an object.
It's not complaining about a path, it's complaining about an null reference.

This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself.

Let me just explain what the error means: You have tried to use a variable, property, or a method return value but it contains null - which means that there is no instance of a class in the variable.
It's a bit like a pocket: you have a pocket in your shirt, which you use to hold a pen. If you reach into the pocket and find there isn't a pen there, you can't sign your name on a piece of paper - and you will get very funny looks if you try! The empty pocket is giving you a null value (no pen here!) so you can't do anything that you would normally do once you retrieved your pen. Why is it empty? That's the question - it may be that you forgot to pick up your pen when you left the house this morning, or possibly you left the pen in the pocket of yesterdays shirt when you took it off last night.

We can't tell, because we weren't there, and even more importantly, we can't even see your shirt, much less what is in the pocket!

Back to computers, and you have done the same thing, somehow - and we can't see your code, much less run it and find out what contains null when it shouldn't.

Look at your stack trace, and it's in your Invoice.ASPX file on line 1284 - in VS, you can just type CTRL+G, enter 1284 ENTER and it'll take you right to the line.
Put a breakpoint at the beginning of the method containing the error line, and run your program from the start again. This time, VS will stop before the error, and let you examine what is going on by stepping through the code looking at your values.

But we can't do that - we don't have your code, we don't know how to use it if we did have it, we don't have your data. So try it - and see how much information you can find out!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Need Help Desperately! Development server trying to find local server path Pin
BigLitz6-Jul-17 5:59
BigLitz6-Jul-17 5:59 
GeneralRe: Need Help Desperately! Development server trying to find local server path Pin
OriginalGriff6-Jul-17 6:05
mveOriginalGriff6-Jul-17 6:05 
GeneralRe: Need Help Desperately! Development server trying to find local server path Pin
BigLitz6-Jul-17 8:12
BigLitz6-Jul-17 8:12 
GeneralRe: Need Help Desperately! Development server trying to find local server path Pin
OriginalGriff6-Jul-17 8:18
mveOriginalGriff6-Jul-17 8:18 
QuestionFacebook SDK not geting mail Id Undifined Pin
waghniteen5-Jul-17 23:22
professionalwaghniteen5-Jul-17 23:22 
AnswerRe: Facebook SDK not geting mail Id Undifined Pin
Pete O'Hanlon6-Jul-17 1:22
mvePete O'Hanlon6-Jul-17 1:22 
QuestionCrystal Report, Generate same report , multiple times with different parameters as one pdf Pin
beker_usa5-Jul-17 8:27
beker_usa5-Jul-17 8:27 
QuestionText file search, combobox and Datagridview C# Help Pin
Member 132944085-Jul-17 2:15
Member 132944085-Jul-17 2:15 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Ralf Meier5-Jul-17 2:30
mveRalf Meier5-Jul-17 2:30 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Member 132944085-Jul-17 3:03
Member 132944085-Jul-17 3:03 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Ralf Meier5-Jul-17 7:23
mveRalf Meier5-Jul-17 7:23 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Member 1329440813-Jul-17 0:00
Member 1329440813-Jul-17 0:00 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Ralf Meier13-Jul-17 0:24
mveRalf Meier13-Jul-17 0:24 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Member 1329440813-Jul-17 21:35
Member 1329440813-Jul-17 21:35 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Ralf Meier13-Jul-17 21:52
mveRalf Meier13-Jul-17 21:52 
GeneralRe: Text file search, combobox and Datagridview C# Help Pin
Member 1329440813-Jul-17 22:20
Member 1329440813-Jul-17 22:20 
AnswerRe: Text file search, combobox and Datagridview C# Help Pin
Ralf Meier13-Jul-17 22:39
mveRalf Meier13-Jul-17 22:39 

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.