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.

Reliable way to run exactly one instance of a dll gauge

Featured Replies

I would like to run only one instance of a gauge server (dll) in a model that has a VC and 2d panel. I've found that I need to have an entry for the gauge in both the 2d section and VC section of panel.cfg in order for it to run when either the 2d panel or VC is selected. If I put the gauge in both the 2d section and VC section of panel.cfg in FSX, I get either one or 2 instances running depending on whether the users selects the 2d panel or VC.Is there a way I can configure the panel.cfg so that only 1 instance of the gauge will run regardless of how the user uses the 2d panel or VC?

  • Commercial Member

Sorry, I can

I would like to run only one instance of a gauge server (dll) in a model that has a VC and 2d panel. I've found that I need to have an entry for the gauge in both the 2d section and VC section of panel.cfg in order for it to run when either the 2d panel or VC is selected. If I put the gauge in both the 2d section and VC section of panel.cfg in FSX, I get either one or 2 instances running depending on whether the users selects the 2d panel or VC.Is there a way I can configure the panel.cfg so that only 1 instance of the gauge will run regardless of how the user uses the 2d panel or VC?
As far as I know, you're wrong. If you use the same gauge in the 2D and the VC, FSX loads it only once. There is 1 gauge loaded.I'm almost sure about this.Eric

It should only be in the VC section. 2D gauges are only active when their window is open whereas VC gauges are always active.Fred

  • Commercial Member
I would like to run only one instance of a gauge server (dll) in a model that has a VC and 2d panel. I've found that I need to have an entry for the gauge in both the 2d section and VC section of panel.cfg in order for it to run when either the 2d panel or VC is selected. If I put the gauge in both the 2d section and VC section of panel.cfg in FSX, I get either one or 2 instances running depending on whether the users selects the 2d panel or VC.Is there a way I can configure the panel.cfg so that only 1 instance of the gauge will run regardless of how the user uses the 2d panel or VC?
DLL's never, ever load multiple instances of the DLL itself. Are you certain this is happening?

Ed Wilson

Mindstar Aviation
My Playland - I69

  • Author
DLL's never, ever load multiple instances of the DLL itself. Are you certain this is happening?
I'm quite certain it's happening. I have a log file showing two callbacks for every 18 hz tick. I suppose it's possible that the same instance is being called twice but it looked like the data context was different. I worked around it by only allowing one callback to run per tick.I'll look further into Fred's suggestion of defining only a VC gauge.Thanks.
  • Commercial Member
I'm quite certain it's happening. I have a log file showing two callbacks for every 18 hz tick. I suppose it's possible that the same instance is being called twice but it looked like the data context was different. I worked around it by only allowing one callback to run per tick.I'll look further into Fred's suggestion of defining only a VC gauge.Thanks.
Ahha... you're mistaking multiple gauges as multiple DLLs. Not true, my friend.Each physical gauge entry in a panel, be it 2D or VC will create an individual gauge. Nature of the 'beast'. So if you're declaring the gauge in a 2D panel and also declaring it in the VC... then indeed there are physically two of the gauge, not one.

Ed Wilson

Mindstar Aviation
My Playland - I69

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.