Monday 18 October 2010

PInvoke Error Solution

I had a problem with this Error Message.
DeviceManager.CHapticRemocon::InitComm'에 대한 호출 결과 스택이 불안정하게 되었습니다. 관리되는 PInvoke 시그니처와 관리되지 않는 대상 시그니처가 일치하지 않기 때문인 것 같습니다. 호출 규칙 및 PInvoke 시그니처의 매개 변수와 관리되지 않는 대상 시그니처가 일치하는지 확인하십시오.
 In English

Managed Debugging Assistant 'PInvokeStackImbalance' has detected a problem
The reason why this error occurs is Window .net Framework 4.0.

If you change the target framework to .net Framework 3.5 or less, you will not see this error.

Reference MS page : http://msdn.microsoft.com/en-us/library/ff361650%28v=VS.100%29.aspx

Another post : http://blogs.msdn.com/b/davidklinems/archive/2006/02/03/524471.aspx

I spend the whole day to solve this.... damn it...

I'll give to MS "Fuck you."

MS 개쉑히 잊지 않겠다....

1 comment:

Unknown said...

저도 3일 꼬박 투자했네요 ㅋㅋ
결국 구글링으로 해결됬다는...
MS......