Hi,
i am using visual studio 2013. when i am try to select combobox values i am this error (Accessviolationexception was unhandled:
(Attempted to read or write protected memory. This is often an indication that other memory is corrupt.)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data.SqlServerCe;
using System.Threading;
namespace Rpos
{
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new LoginPage()); // i am getting exception in this place (AccessViolationException was unhandled )
}
}
}
I tried this two links also
http://stackoverflow.com/questions/12509252/unhandled-exception-system-accessviolationexception-attempted-to-read-or-write
http://bytes.com/topic/c-sharp/answers/947976-i-get-system-accessviolationexception-unhandled
and increased virtual memory also ...but i am getting same error....
pls give me suggestion any one as soon as possible....thanks in advance
4 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SatPosted Dec 23, 2014, 8:09 AM
Manish Kumar ChoudharyPosted Dec 23, 2014, 5:16 AM
otherwise clean solution and build again.
it may work
SatPosted Dec 23, 2014, 4:46 AM
Riddhi ValechaPosted Dec 23, 2014, 4:17 AM
I also faced the same issue.
This issue shouldn't happen in managed code. You can try setting Visual Studio Debugger to bypass this exception:
Tools menu ->Options -> Debugging -> General -> Uncheck this option "Suppress JIT optimization on module load"
This method worked for me.