Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# debug windows Pin
Jibesh7-Feb-13 13:34
professionalJibesh7-Feb-13 13:34 
AnswerRe: C# debug windows Pin
Eddy Vluggen8-Feb-13 0:31
professionalEddy Vluggen8-Feb-13 0:31 
QuestionXelement headers and schema definition quandry Pin
DJ 27-Feb-13 4:34
DJ 27-Feb-13 4:34 
AnswerRe: Xelement headers and schema definition quandry Pin
Matt T Heffron7-Feb-13 8:00
professionalMatt T Heffron7-Feb-13 8:00 
QuestionReading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? Pin
devvvy6-Feb-13 22:57
devvvy6-Feb-13 22:57 
AnswerRe: Reading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? Pin
Richard Deeming7-Feb-13 1:21
mveRichard Deeming7-Feb-13 1:21 
GeneralRe: Reading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? Pin
devvvy7-Feb-13 14:22
devvvy7-Feb-13 14:22 
AnswerRe: Reading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? Pin
DaveyM697-Feb-13 2:42
professionalDaveyM697-Feb-13 2:42 
AnswerRe: Reading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? Pin
PIEBALDconsult7-Feb-13 3:50
mvePIEBALDconsult7-Feb-13 3:50 
GeneralRe: Reading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? Pin
devvvy7-Feb-13 22:00
devvvy7-Feb-13 22:00 
GeneralRe: Reading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? Pin
PIEBALDconsult8-Feb-13 3:48
mvePIEBALDconsult8-Feb-13 3:48 
Questiondata source for a chart Pin
sina rafati nia6-Feb-13 21:26
sina rafati nia6-Feb-13 21:26 
AnswerRe: data source for a chart Pin
Abhinav S6-Feb-13 23:25
Abhinav S6-Feb-13 23:25 
QuestionXelement headers and schema definition help Pin
DJ 26-Feb-13 12:19
DJ 26-Feb-13 12:19 
AnswerRe: Xelement headers and schema definition help Pin
Jibesh6-Feb-13 12:34
professionalJibesh6-Feb-13 12:34 
AnswerRe: Xelement headers and schema definition help Pin
Richard Deeming7-Feb-13 1:33
mveRichard Deeming7-Feb-13 1:33 
QuestionHow to put videos, with alpha channel, on the image Pin
okutan16-Feb-13 7:02
okutan16-Feb-13 7:02 
QuestionCould not evaluate expression Pin
MichCl6-Feb-13 3:16
MichCl6-Feb-13 3:16 
AnswerRe: Could not evaluate expression Pin
Pete O'Hanlon6-Feb-13 4:00
mvePete O'Hanlon6-Feb-13 4:00 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 4:11
mveDave Kreskowiak6-Feb-13 4:11 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 4:12
MichCl6-Feb-13 4:12 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon6-Feb-13 4:18
mvePete O'Hanlon6-Feb-13 4:18 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 4:41
MichCl6-Feb-13 4:41 
AnswerRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 4:10
mveDave Kreskowiak6-Feb-13 4:10 
Your using terminology that doesn't mean what you think it does, so your post is a bit confusing. For example, "This is where I obtain my class definition". "class definition" is the actual Class myClassName block, not creating an instance of a class, which is normally refered to as an "Object".

If these snippets are not edited to remove what you think is irrelevent code to this problem, it's amazing this code ever worked at all.

Your GetCR method (terrible name by the way), shows that it should be returning either an object of type iCR or one that implements a possible iCR interface. There isn't enough codce snippet to be sure either way. But the method has no return statement in it, so it's always returning null.

Also, what is the value of type that you're passing in?? Is it really CRType.CR5?? If you're wrong, the method will, again, return null.

Oh! When asking questions about your own code, a copy'n'paste or the error message as well as the stack trace would be very helpful.


As of right now, it's impossible to know for sure what your problem is as there is insufficient detail. So, put a breakpoint on the line that throws the error and run your app. When the code stops, hit F11 to step into the next line of code and watch the execution and explore the contents of variables to see if the code is really doing what you think it should be doing. Chances are really good it'll show YOU that you're making incorrect assumptions about the execution of your own code.

Instead of guessing at what the problem might be, you better prove to yourself that it is indeed the problem by stepping through the code as outlined above. Oh, and learn to read the stack trace! These are critical skills you must have in order to write code.

GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 4:20
MichCl6-Feb-13 4:20 

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.