Click here to Skip to main content
       

C#

 
GeneralRe: Reading Excel (xls+Xlsx) without Excel Interop library or OleDB/Jet? PinmemberPIEBALDconsult8-Feb-13 3:48 
Questiondata source for a chart Pinmembersina rafati nia6-Feb-13 21:26 
AnswerRe: data source for a chart PinmvpAbhinav S6-Feb-13 23:25 
QuestionXelement headers and schema definition help PinmemberDJ 26-Feb-13 12:19 
AnswerRe: Xelement headers and schema definition help Pinmemberjibesh6-Feb-13 12:34 
AnswerRe: Xelement headers and schema definition help PinmemberRichard Deeming7-Feb-13 1:33 
QuestionHow to put videos, with alpha channel, on the image Pinmemberokutan16-Feb-13 7:02 
QuestionCould not evaluate expression PinmemberMichCl6-Feb-13 3:16 
AnswerRe: Could not evaluate expression PinprotectorPete O'Hanlon6-Feb-13 4:00 
GeneralRe: Could not evaluate expression PinmvpDave Kreskowiak6-Feb-13 4:11 
GeneralRe: Could not evaluate expression PinmemberMichCl6-Feb-13 4:12 
GeneralRe: Could not evaluate expression PinprotectorPete O'Hanlon6-Feb-13 4:18 
GeneralRe: Could not evaluate expression PinmemberMichCl6-Feb-13 4:41 
AnswerRe: Could not evaluate expression PinmvpDave 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 PinmemberMichCl6-Feb-13 4:20 
GeneralRe: Could not evaluate expression PinmvpEddy Vluggen6-Feb-13 5:02 
GeneralRe: Could not evaluate expression PinmemberMichCl6-Feb-13 5:30 
GeneralRe: Could not evaluate expression PinmvpDave Kreskowiak6-Feb-13 5:40 
GeneralRe: Could not evaluate expression PinmemberMichCl6-Feb-13 7:30 
GeneralRe: Could not evaluate expression PinprotectorPete O'Hanlon6-Feb-13 5:56 
GeneralRe: Could not evaluate expression PinmemberMichCl6-Feb-13 7:52 
GeneralRe: Could not evaluate expression PinmvpDave Kreskowiak6-Feb-13 12:49 
GeneralRe: Could not evaluate expression PinmemberMichCl7-Feb-13 2:34 
GeneralRe: Could not evaluate expression PinprotectorPete O'Hanlon7-Feb-13 2:48 
GeneralRe: Could not evaluate expression PinmvpDave Kreskowiak7-Feb-13 7:35 
GeneralRe: Could not evaluate expression PinmemberMichCl7-Feb-13 2:32 
GeneralRe: Could not evaluate expression PinprotectorPete O'Hanlon7-Feb-13 2:34 
GeneralRe: Could not evaluate expression PinmemberMichCl7-Feb-13 2:37 
GeneralRe: Could not evaluate expression PinmemberMichCl1-May-13 2:19 
GeneralRe: Could not evaluate expression PinprotectorPete O'Hanlon1-May-13 3:09 
AnswerRe: Could not evaluate expression PinmemberMichCl6-Feb-13 4:34 
AnswerRe: Could not evaluate expression Pinmemberjibesh6-Feb-13 6:26 
GeneralRe: Could not evaluate expression PinmemberMichCl6-Feb-13 7:41 
GeneralRe: Could not evaluate expression PinmemberMichCl6-Feb-13 8:03 
GeneralRe: Could not evaluate expression PinmemberGerry Schmitz6-Feb-13 18:51 
GeneralRe: Could not evaluate expression PinmemberMichCl7-Feb-13 2:24 
GeneralRe: Could not evaluate expression PinmemberMichCl7-Feb-13 2:40 
QuestionA C# code to start a webcam PinmemberStanee Wa Faith5-Feb-13 22:59 
AnswerRe: A C# code to start a webcam PinmentorWayne Gaylard5-Feb-13 23:17 
AnswerRe: A C# code to start a webcam PinmemberGuyThiebaut6-Feb-13 2:03 
QuestionDynamic Width Height Winform [modified] PinmemberASPnoob5-Feb-13 10:16 
AnswerRe: Dynamic Width Height Winform PinmvpDave Kreskowiak5-Feb-13 14:04 
AnswerRe: Dynamic Width Height Winform PinmemberMycroft Holmes5-Feb-13 22:17 
QuestionMake Design Appear as it Would in a Browser [modified] PinmemberASPnoob5-Feb-13 5:24 
AnswerRe: Make Design Appear as it Would in a Browser PinmentorKeith Barrow5-Feb-13 5:57 
GeneralRe: Make Design Appear as it Would in a Browser PinmemberASPnoob5-Feb-13 6:22 
QuestionMySql is not listed in data source part! Pinmembersina rafati nia4-Feb-13 22:28 
AnswerRe: MySql is not listed in data source part! PinmvpEddy Vluggen5-Feb-13 0:47 
GeneralRe: MySql is not listed in data source part! Pinmembersina rafati nia5-Feb-13 22:49 
GeneralRe: MySql is not listed in data source part! PinmvpDave Kreskowiak6-Feb-13 1:48 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 27 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid