Click here to Skip to main content
12,454,164 members (57,168 online)
   

C#

 
QuestionHow to put videos, with alpha channel, on the image Pin
okutan16-Feb-13 7:02
memberokutan16-Feb-13 7:02 
QuestionCould not evaluate expression Pin
MichCl6-Feb-13 3:16
memberMichCl6-Feb-13 3:16 
AnswerRe: Could not evaluate expression Pin
Pete O'Hanlon6-Feb-13 4:00
protectorPete O'Hanlon6-Feb-13 4:00 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 4:11
mvpDave Kreskowiak6-Feb-13 4:11 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 4:12
memberMichCl6-Feb-13 4:12 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon6-Feb-13 4:18
protectorPete O'Hanlon6-Feb-13 4:18 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 4:41
memberMichCl6-Feb-13 4:41 
AnswerRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 4:10
mvpDave 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
memberMichCl6-Feb-13 4:20 
GeneralRe: Could not evaluate expression Pin
Eddy Vluggen6-Feb-13 5:02
mvpEddy Vluggen6-Feb-13 5:02 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 5:30
memberMichCl6-Feb-13 5:30 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 5:40
mvpDave Kreskowiak6-Feb-13 5:40 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 7:30
memberMichCl6-Feb-13 7:30 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon6-Feb-13 5:56
protectorPete O'Hanlon6-Feb-13 5:56 
GeneralRe: Could not evaluate expression Pin
MichCl6-Feb-13 7:52
memberMichCl6-Feb-13 7:52 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak6-Feb-13 12:49
mvpDave Kreskowiak6-Feb-13 12:49 
GeneralRe: Could not evaluate expression Pin
MichCl7-Feb-13 2:34
memberMichCl7-Feb-13 2:34 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon7-Feb-13 2:48
protectorPete O'Hanlon7-Feb-13 2:48 
GeneralRe: Could not evaluate expression Pin
Dave Kreskowiak7-Feb-13 7:35
mvpDave Kreskowiak7-Feb-13 7:35 
GeneralRe: Could not evaluate expression Pin
MichCl7-Feb-13 2:32
memberMichCl7-Feb-13 2:32 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon7-Feb-13 2:34
protectorPete O'Hanlon7-Feb-13 2:34 
GeneralRe: Could not evaluate expression Pin
MichCl7-Feb-13 2:37
memberMichCl7-Feb-13 2:37 
GeneralRe: Could not evaluate expression Pin
MichCl1-May-13 2:19
memberMichCl1-May-13 2:19 
GeneralRe: Could not evaluate expression Pin
Pete O'Hanlon1-May-13 3:09
protectorPete O'Hanlon1-May-13 3:09 
AnswerRe: Could not evaluate expression Pin
MichCl6-Feb-13 4:34
memberMichCl6-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.


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 29 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid