开发者

'SystemAccessViolationException' occurs intermitently

开发者 https://www.devze.com 2023-03-03 08:43 出处:网络
My app is a Windows .NET client which uses COM objects....Basically wat we do is create a COM object instance call some methods on them and ReleaseCOMObject...however in some scenarios (on prod with a

My app is a Windows .NET client which uses COM objects....Basically wat we do is create a COM object instance call some methods on them and ReleaseCOMObject...however in some scenarios (on prod with a WAN connection) we are getting 'SystemAccessVi开发者_运维问答olationException'.

This App is a Data-Driven app we read data from db(located remotely) and display.

What could be the trouble shooting steps that i need to follow..there is no stack trace in the exception and its being very difficult to identify the root cause as it occurs intermitently..

Any ideas would be appreciated.

Thanks and Regards, PV.


Download the Debugging Tools for Windows (part of the Windows SDK) if you haven't already done so.

There is a tool called ADPlus which can be configured to attach a debugger to the process hosting your COM objects and dump a minidump file when the intermittent Access Violation exception occurs. You can then load the minidump file into a debugger such as WinDbg or the VS debugger, and investigate the root cause of the AV.

The Debugging Tools come with a very helpful CHM help file which contains loads of information if you are new to diagnostic debugging of this sort.

Good luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号