If: Arithmetic operation resulted in an overflow

RemoteException wrapping System.OverflowException: 산술 연산으로 인해 오버플로가 발생했습니다.
   위치: Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   위치: lambda_method(Closure ,ActivityContext )
   위치: Microsoft.VisualBasic.Activities.VisualBasicValue`1.Execute(CodeActivityContext context)
   위치: System.Activities.CodeActivity`1.InternalExecuteInResolutionContext(CodeActivityContext context)
   위치: System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance,
Activity`1 expressionActivity)
   위치: System.Activities.InArgument`1.TryPopulateValue(LocationEnvironment targetEnvironment,ActivityInstance activityInstance,ActivityExecutor executor)
   위치: System.Activities.RuntimeArgument.TryPopulateValue(LocationEnvironment targetEnvironment,ActivityInstance targetActivityInstance,ActivityExecutor executor,Object argumentValueOverride,Location resultLocation,Boolean skipFastPath)
   위치: System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument,
Int32 nextArgumentIndex,
ActivityExecutor executor,
IDictionary`2 argumentValueOverrides,
Location resultLocation,
Boolean isDynamicUpdate)
   위치: System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor,
IDictionary`2 argumentValueOverrides,
Location resultLocation,
Int32 startIndex)
   위치: System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)

 

해결방안 : 보아하니, Cint에서 에러난듯. 숫자가 인티져 범위를 넘어서서 연산이 불가한것임. 그런 경우에는 숫자 범위가 더 넓은 자료형으로 바꿔주면 됨. double 이라던가....

 

 

+ Recent posts