combobo error in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sath
    New Member
    • Dec 2014
    • 1

    combobo error in C#

    Hi,

    i am using visual studio 2013. when i am try to select combobox values i am getting this error (Accessviolatio nexception was unhandled:
    (Attempted to read or write protected memory. This is often an indication that other memory is corrupt.)

    Code:
    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 )
    
            }
    
        }
    }
    Last edited by Rabbit; Dec 23 '14, 04:27 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • Joseph Martell
    Recognized Expert New Member
    • Jan 2010
    • 198

    #2
    I think we are going to need more information. I am guessing that LoginPage is a form that you created. The exception is likely being thrown somewhere else and is simply unhandled until this point.

    Can you post the complete stack trace of the exception along with the code for LoginPage?

    Comment

    Working...