none
error is not based on code. RRS feed

  • Question

  • I am running a winform program, function A is the event handler of "buttonB.click" event B.
    No compile error,when I run it and click button B, one error jump out, said variable C in function A has not been initiated before use. Then I put a break point before the first time use of C. Click B, the same error and the break point no response.
    Then I comment out whole content of function A. Click B again, the same error.
    Function A is not exist anymore why error still there. Then I use nothing to handle event B, hit button B, same error.
    Looks program runs not based on my codes, it based on some other resource.

    Please help?  
    Monday, February 22, 2010 10:49 PM

Answers

All replies

  • Hi, seaor:
        Could you provide some code snippet? Is the variable C declared somewhere else other than function A and it needs initialization?


    Please mark the right answer at right time.
    Thanks,
    Sam
    Tuesday, February 23, 2010 3:01 AM
  • Thanks SamAgain, I fixed it, it is my fault.
    • Marked as answer by SamAgain Wednesday, February 24, 2010 2:49 AM
    Tuesday, February 23, 2010 4:10 PM