March 22, 201016 yr 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?
March 29, 201016 yr 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 My Web Site
March 29, 201016 yr 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
March 29, 201016 yr 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 AviationMy Playland - I69
April 1, 201016 yr 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.
April 1, 201016 yr 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 AviationMy Playland - I69
Create an account or sign in to comment