Click here to Skip to main content
15,881,172 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Could not evaluate expression Pin
Eddy Vluggen6-Feb-13 5:02
professionalEddy Vluggen6-Feb-13 5:02 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 5:30
MichCl6-Feb-13 5:30 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 5:40
mveDave Kreskowiak6-Feb-13 5:40 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 7:30
MichCl6-Feb-13 7:30 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon6-Feb-13 5:56
mvePete O'Hanlon6-Feb-13 5:56 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 7:52
MichCl6-Feb-13 7:52 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 12:49
mveDave Kreskowiak6-Feb-13 12:49 
GeneralRe: Could not evaluate expression Pin
MichCl7-Feb-13 2:34
MichCl7-Feb-13 2:34 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon7-Feb-13 2:48
mvePete O'Hanlon7-Feb-13 2:48 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak7-Feb-13 7:35
mveDave Kreskowiak7-Feb-13 7:35 
GeneralRe: Could not evaluate expression Pin
MichCl7-Feb-13 2:32
MichCl7-Feb-13 2:32 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon7-Feb-13 2:34
mvePete O'Hanlon7-Feb-13 2:34 
GeneralRe: Could not evaluate expression Pin
MichCl7-Feb-13 2:37
MichCl7-Feb-13 2:37 
GeneralRe: Could not evaluate expression Pin
MichCl1-May-13 2:19
MichCl1-May-13 2:19 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon1-May-13 3:09
mvePete O'Hanlon1-May-13 3:09 
AnswerRe: Could not evaluate expression Pin
MichCl6-Feb-13 4:34
MichCl6-Feb-13 4:34 

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.