NullReferenceException on instantiated object?
问题 This is a segment of code from an app I've inherited, a user got a Yellow screen of death: Object reference not set to an instance of an object on the line: bool l_Success ... Now I'm 95% sure the faulty argument is ref l_Monitor which is very weird considering the object is instantiated a few lines before. Anyone have a clue why it would happen? Note that I have seen the same issue pop up in other places in the code. IDMS.Monitor l_Monitor = new IDMS.Monitor(); l_Monitor.LogFile.Product_ID =