• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Error loading gauge

Messages
2
Country
romania
Hi, I have been writing FS-related code for several years, mostly using FSUIPC, but I am completely new to gauge development and thus I have a very basic question.

When a .GAU file "simply" fails to load into the FS, is there a way to get more specific information about the error?

The message I get is horribly generic ("Flight simulator was unable to load some aircraft or software", pointing to my gauge). Not sure if debug would help either, because at start-up the only code executed is the heavily macro-generated, and as such difficult to recognize, code.

So I am thinking especially if there is any way to get a start-up log, or a verbose message. My guess is that the problem is related to some compile/link option that makes the DLL unusable on this platform (it did load, and work correctly, on a different one a few months ago). But that's vague, and that's why I need any information available about WHY FS cannot load my DLL.

Thanks a lot for any information on this matter.

Andrei
 
You need to use a program to check it's dependencies... something's missing. One thing I would recommend is that it is compiled as a multi-threaded... not as a DLL in the settings for runtime library.
 
I imagine if the gauge has "failed to load" then it won't actually run so can't be debugged in FS?
 
Last edited:
I imagine if the gauge has "failed to load" then it won't actually run so can't be debugged in FS?

Not true... the error is being generated when the gauge is first loaded and the debug environment would see that.
 
Not true... the error is being generated when the gauge is first loaded and the debug environment would see that.

Actually, I think both possibilities are real, either it does not load at all or the gauge-specific initialization function fails. With the very little available information, it's hard to tell.

And that's why it looks like the first thing will be to attempt debugging, to understand which one of the two (scenarios) happens.

Thanks for your replies, I will let you know how it went.

On the other hand, I understand the answer to my original question is negative: no way to get more verbose error information from the FS itself...

Andrei
 
Back
Top