问题描述
2014-08-1309:57:37:应用程序捕获到异常,已处理。Exceptionhasbeenthrownbythetargetofaninvocation.Collectionwasmodified;enumerationoperationmaynotexecute.atSystem.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfomethod,Objecttarget,Object[]arguments,SignatureStruct&sig,MethodAttributesmethodAttributes,RuntimeTypetypeOwner)atSystem.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfomethod,Objecttarget,Object[]arguments,Signaturesig,MethodAttributesmethodAttributes,RuntimeTypetypeOwner)atSystem.Reflection.RuntimeMethodInfo.Invoke(Objectobj,BindingFlagsinvokeAttr,Binderbinder,Object[]parameters,CultureInfoculture,BooleanskipVisibilityChecks)atSystem.Delegate.DynamicInvokeImpl(Object[]args)atSystem.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegatecallback,Objectargs,Int32numArgs)atMS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Objectsource,Delegatemethod,Objectargs,Int32numArgs,DelegatecatchHandler)请问大神,我写的异常捕捉,有时出现异常会有自己的代码,有时像上面那样是没有的,请问是怎么回事?