Click here to Skip to main content
15,117,779 members
Home / Discussions / C#
   

C#

 
Question(xaml, wpf) ScrollViewer Binding confusion (beginner) (ANSWERED) Pin
Maximilien6-Oct-21 10:50
MemberMaximilien6-Oct-21 10:50 
SuggestionRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Richard MacCutchan6-Oct-21 22:30
mveRichard MacCutchan6-Oct-21 22:30 
GeneralRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Maximilien7-Oct-21 4:49
MemberMaximilien7-Oct-21 4:49 
AnswerRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Richard Deeming6-Oct-21 22:45
mveRichard Deeming6-Oct-21 22:45 
GeneralRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Maximilien8-Oct-21 4:03
MemberMaximilien8-Oct-21 4:03 
QuestionCan't catch NullReferenceException while explicitly defined for that Pin
Exoskeletor2-Oct-21 0:03
MemberExoskeletor2-Oct-21 0:03 
AnswerRe: Can't catch NullReferenceException while explicitly defined for that Pin
Pete O'Hanlon2-Oct-21 0:38
mvePete O'Hanlon2-Oct-21 0:38 
AnswerRe: Can't catch NullReferenceException while explicitly defined for that Pin
OriginalGriff2-Oct-21 1:33
mveOriginalGriff2-Oct-21 1:33 
As Pete has said, the error isn't in the code you show, nor is the method that throws the error directly called in any of that code.

Run your program in the debugger and when it fails, it will show you the line it found the problem on. You can then start looking at the various parts of it to see what value is null and start looking back through your code to find out why. So put a breakpoint at the beginning of the method containing the error line, and run your program from the start again. This time, the debugger 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!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!


modified 2-Oct-21 8:14am.

JokeRe: Can't catch NullReferenceException while explicitly defined for that Pin
Pete O'Hanlon2-Oct-21 2:32
mvePete O'Hanlon2-Oct-21 2:32 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
OriginalGriff2-Oct-21 3:14
mveOriginalGriff2-Oct-21 3:14 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
Exoskeletor2-Oct-21 4:01
MemberExoskeletor2-Oct-21 4:01 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
Pete O'Hanlon2-Oct-21 4:51
mvePete O'Hanlon2-Oct-21 4:51 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
OriginalGriff2-Oct-21 4:55
mveOriginalGriff2-Oct-21 4:55 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
Exoskeletor2-Oct-21 4:58
MemberExoskeletor2-Oct-21 4:58 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
Exoskeletor2-Oct-21 3:58
MemberExoskeletor2-Oct-21 3:58 
AnswerRe: Can't catch NullReferenceException while explicitly defined for that Pin
Pete O'Hanlon3-Oct-21 21:22
mvePete O'Hanlon3-Oct-21 21:22 
GeneralRe: Can't catch NullReferenceException while explicitly defined for that Pin
Exoskeletor4-Oct-21 1:21
MemberExoskeletor4-Oct-21 1:21 
Questionhow read file from Open with in C# Pin
Member 1522978130-Sep-21 7:24
MemberMember 1522978130-Sep-21 7:24 
AnswerRe: how read file from Open with in C# Pin
Dave Kreskowiak30-Sep-21 9:08
mveDave Kreskowiak30-Sep-21 9:08 
AnswerRe: how read file from Open with in C# Pin
Luc Pattyn30-Sep-21 9:30
sitebuilderLuc Pattyn30-Sep-21 9:30 
QuestionQuestion About Async Pin
Kevin Marois29-Sep-21 11:21
professionalKevin Marois29-Sep-21 11:21 
AnswerRe: Question About Async Pin
Pete O'Hanlon29-Sep-21 21:22
mvePete O'Hanlon29-Sep-21 21:22 
GeneralRe: Question About Async Pin
Kevin Marois30-Sep-21 5:24
professionalKevin Marois30-Sep-21 5:24 
GeneralRe: Question About Async Pin
Richard Deeming30-Sep-21 5:41
mveRichard Deeming30-Sep-21 5:41 
GeneralRe: Question About Async Pin
Kevin Marois30-Sep-21 5:48
professionalKevin Marois30-Sep-21 5:48 

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.