Sat

Sat

  • 1.6k
  • 70
  • 26.5k

Combobox error in c#

Dec 23 2014 1:45 AM
 
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
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[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 
 
 

Answers (4)