Serial port accessviolationexception


















Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings , otherwise we'll assume you're okay to continue. NET System. AccessViolationException on Fsuipc. Share More sharing options Followers 1. Reply to this topic Start new topic. Recommended Posts. Primo Posted January 3, Posted January 3, AccessViolationException was unhandled.

An unhandled exception of type 'System. AccessViolationException' occurred in mscorlib. Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Link to comment Share on other sites More sharing options Pete Dowson Posted January 3, Primo Posted January 8, Posted January 8, Pete Dowson Posted January 8, Paul Henty Posted January 8, Pete, can you move this into my subforum?

Either way I'll take a look at it Thanks, Paul. Hi Primo, I can't run this code because I don't have a serial port with anything connected. Primo Posted January 9, Posted January 9, Paul Henty Posted January 9, Hi Primo, I got it to run. I think that's what I did: 1.

It sometimes works and sometimes does not, throwing AccessViolationException. The issue seems rooted in the GetCommTimeouts call. When it works, it is beautiful. Obviously, when it doesn't, I don't want to be seeing AVE's. I am running under Windows 7 Pro x64, Visual Studio Pro, with spurious results under debugging, not sure even that could be one contributing factor.

I will mark your reply as the answer and close this thread since you have resolved this issue. We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time.

Thanks for helping make community forums a great place. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. C Standards, Extensions, and Interop. This forum covers all standardized languages, extensions, and interop technologies supported by Visual C.

Sign in to vote.



0コメント

  • 1000 / 1000