Unhandled Exception of type 'System.Security.SecurityException' ??

dmc1980

Active member
Joined
Feb 7, 2005
Messages
33
Programming Experience
5-10
Hi everyone, ive got a bit of a strange one here, and its causing me lots of grief!

I have an application, that reads an array from a PLC. If the plc comms are started and the application is running, as soon as I press any key on the keyboard, the application throws up the following error

error.jpg


I have tried putting try catch error handlers around the code I know is causing it, but when I break on the error at debug, it is within the Public Class frmMain part.

Can anyone tell me what the Stack Walk modifier is and how I revert it? I know there is stuff in MSDN for it, but im not understanding it.

Thanks in advance
 
Back
Top