Let's talk about my development environment:
Win10 + ArcGIS10.0 + ArcEngine10.0 + Framework4.0
The new GP tool that is called today appears "trying to read or write protected memory." This usually indicates that other memory is corrupted "exception (in this environment, yesterday, I was able to call GP normally). For this problem, there are two strange things: first, the environment has not changed, yesterday can be normal call GP, call any GP today error; second, the code written yesterday is still able to perform the GP normally.
Baidu, Google a day, in addition to check the code itself, but also tried various aspects of testing: License permissions issues, COM objects are not released, database schema lock, database name, database format, feature class, config configuration file, etc., have not been resolved!
Netizens also have a variety of explanations for this issue, such as:
Http://www.cnblogs.com/summer_adai/p/3412514.html
Final Solution
Download and install the ArcGIS 10.0 SP5, download link:
http://support.esri.com/en/downloads/patches-servicepacks/view/productid/67/metaid/1876
I first ruled out the environmental problem (because yesterday was also the environment did not appear this situation, as for why, I do not know, the need for advanced people to explain), the equivalent of me along the opposite direction ...
Arcengine attempt to read or write protected memory