Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7834079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:03:18+00:00 2026-06-02T13:03:18+00:00

Starting recently, I now get AccessViolationException s on most startups of our WinForms app

  • 0

Starting recently, I now get AccessViolationExceptions on most startups of our WinForms app from inside Visual Studio 2010, leading it to abort.

But doing a Ctrl-F5 instead of the usual F5 fixes the issue for me, i.e. it’s kind of the opposite of AccessViolationException outside Visual Studio?.

Here’s an example of such an exception, but they come with various other stack traces, too, not just this one:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Environment.get_TickCount()
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at OurApp.BaseForm.WndProc(Message& m)
   at OurApp.OtherForm.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Btw. starting up again I just had this exact same stack trace, but with a

System.Runtime.InteropServices.SEHException: External component has thrown an exception.

instead of the AccessViolationException. But overall, the AccessViolationExceptions are way more frequent than SEHExceptions.

Update Meanwhile, I sometimes get ExecutionEngineExceptions instead of the above.

I’m running Windows 7 64bit (in a VirtualBox). Installing all Windows Updates, including Visual Studio 2010 SP1, just in case, did not fix the problem.

Any ideas on what this might be or how to dig deeper into it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T13:03:19+00:00Added an answer on June 2, 2026 at 1:03 pm

    It turned out to be an issue with VirtualBox. Running the app natively is fine, running the app in VMWare Player is fine, too. In VirtualBox: One of the 3 Exceptions listed in the question.

    I could not get VirtualBox (latest version, 4.1.12, running on an i5 host under 64bit linux) to work properly, trying various settings as suggested on http://altamodatech.com/blogs/?p=62 . So VMWare Player it is, for now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently used git svn and enjoyed it very much. Now I'm starting a
I have recently started studying about threads. I thought of starting from the beginning
I have recently upgraded to Visual Studio 2010. I have kept database projects separate
I had recently starting learning openGLES and right now I had gone through some
I recently registered myself as android developer and I am now starting to use
I have recently starting porting a small app of mine to Facebook as a
I recently stumbled across a problem when starting my application via JNLP. I now
I've recently began using C++ with XCode and I'm starting to miss the integrated
Recently I've gotten sick and tired of writing release notes and I'm really starting
I am just starting with applets so I am not to good. I recently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.