Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Access Violation in PANELS.DLL

Featured Replies

I created my application as a dll in the modules dir from the MSFS panels SDK and make calls to "lookup_var" which work fine until I click on "Reset Flight" from the menu. I then get an unhandled exception "Access Violation in PANELS.DLL" or "Sim1.DLL".Anyone else that has worked with the SDK run into this type of problem? What should I be looking for in order to prevent calls to "lookup_var" while the sim is reseting or loading?Thanks for any assistance.

Problem solved.

  • 1 month later...

I'm guessing that the way you have programmed it, your pointer is becoming invalid on reset of the panel.So, you have to program defensively and make sure you have a valid pointer before you use it in the function.

>So, you have to program defensively and make sure you have a>valid pointer before you use it in the function.That was the first thing I tried but it didn't help since I would still get random crashes when the pointer would become invalid right after checking for it. The reason for this is because I'm calling the function from a multithreading DLL. In a standard DLL, this would never happen while the pointer is invalid (during reset, load, etc.) since the DLL is not being executed.Solution was to trap the exception and handle it with try{...}catch{...}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.