问题
While attempting to debug an application, I keep noticing that two of my arrays and one of my lists seems to be mysteriously... Not there. The error given for that (upon pausing the application and looking through my compiler's variable list) is "A class is not loaded HRESULT: 0x80131303".
After googling, I found out that that particular HRESULT is named "CORDBG_E_CLASS_NOT_LOADED", however I found nothing about it's possible cause, or how to solve it.
I would normally paste the relevant code here, but from what I can find, this error happens directly at the declaration of the effected arrays and list.
Can anyone here help?
回答1:
You may be loading a class implicitly at startup, which causes an error because not everything is initialized yet. Make sure you are not accessing anything in an unloaded class that could cause this.
来源:https://stackoverflow.com/questions/8190333/what-causes-cordbg-e-class-not-loaded-hresult-0x80131303