c# - Programs randomly getting System.AccessViolationException -



c# - Programs randomly getting System.AccessViolationException -

okay have been having lot of issues debugging. i'm using vs2013 pro , windows 8.1. both date. issue is, when start debugging, half time throws error:

an unhandled exception of type 'system.accessviolationexception' occurred in system.windows.forms.dll

additional information: attempted read or write protected memory. indication other memory corrupt.

its not code's fault either. made simple test illustration below. note not referencing system.windows.forms app.

using system; using system.collections.generic; using system.linq; using system.text; namespace consoleapplication2 { class programme { static void main(string[] args) { list<int> testing = new list<int>(); for(int =0; < 50; i++) { testing.add(i); } (int = 0; < 50; i++) { console.writeline(testing[i].tostring()); } console.readline(); } } }

i have no thought what's causing this. work if click okay , run again, time. have twice.

any ideas?

stack trace:

changing platform target x86 works me, came point stepping through code impossible without forementioned exception. run win 8.1 64-bit , visual studio 2013.

c# debugging runtime-error

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -