- Messages
- 57
- Country

Hey guys,
I have written a gauge for FSX (in this case, the base of an altitude gauge), and I followed the same procedure I have for gauges in the past (that worked). Now, I am having an inexplicable access violation error loading the gauge from within FSX. I have tried using GAUGE_HEADER_FS700 and GAUGE_HEADER_FS1000 (using NULL in place of callbacks and serialization data in the latter), and both times, what happens is this:
When using FsPanelStudio to place the gauge, it recognizes that it is an FSX gauge, and reads the gauge table to identify that !altitude points to the altitude guage. As soon as I click on it, FsPanelStudio freezes, and if I select it from withing FSX, FSX crashed with an unhandled exception either in user32.dll or ntdll.dll. There are no compiler errors, except for an Intellisense "Expected a declaration" warning in the .rc file (which was not present in VS2010/VC++ 2010, but is in VS11). I have tried using a different bitmap, and I have tried compiling it with VS2010 as well (to no avail).
If anyone else has had this issue before, please let me know how you fixed it. I have read the FSX SDK samples several times, and read the Dragonfly Gauge Tutorial as a guide, and I have checked my code several times. I will publish that actual code later if neccesary, just wondering if there is something obvious I overlooked.
Thanks ahead of time,
I have written a gauge for FSX (in this case, the base of an altitude gauge), and I followed the same procedure I have for gauges in the past (that worked). Now, I am having an inexplicable access violation error loading the gauge from within FSX. I have tried using GAUGE_HEADER_FS700 and GAUGE_HEADER_FS1000 (using NULL in place of callbacks and serialization data in the latter), and both times, what happens is this:
When using FsPanelStudio to place the gauge, it recognizes that it is an FSX gauge, and reads the gauge table to identify that !altitude points to the altitude guage. As soon as I click on it, FsPanelStudio freezes, and if I select it from withing FSX, FSX crashed with an unhandled exception either in user32.dll or ntdll.dll. There are no compiler errors, except for an Intellisense "Expected a declaration" warning in the .rc file (which was not present in VS2010/VC++ 2010, but is in VS11). I have tried using a different bitmap, and I have tried compiling it with VS2010 as well (to no avail).
If anyone else has had this issue before, please let me know how you fixed it. I have read the FSX SDK samples several times, and read the Dragonfly Gauge Tutorial as a guide, and I have checked my code several times. I will publish that actual code later if neccesary, just wondering if there is something obvious I overlooked.
Thanks ahead of time,




