Flex45 Posted November 4, 2022 Report Posted November 4, 2022 Hi John, Sorry if this is known but I couldn't find anything in the forum. In my code, I am able to perfectly read and write Lvars from/to the sim (using FSUIPC_WAPI getLvar and setLvar calls) but in release mode only! (using FSUIPC_WAPI.lib) In debug mode (using FSUIPC_WAPI_debug.lib) is causing a crash when calling the module start() function. Trying also to build and run WASMClient found on git (https://github.com/jldowson/WASMClient), in release mode it is able to run and connect to simconnect but in debug it also fails saying: "failed opening a simconnect connection." So, since the issue is not only in my code and since release mode is functioning perfectly, is there a chance there is something wrong with the debug library or am I doing something wrong/missing a VS setting etc? I am using latest FSUIPC_WAPI libraries (v0.9.1 - 20Oct2022). Thanks in advance, Regards,
John Dowson Posted November 4, 2022 Report Posted November 4, 2022 I have not looked at (or used) the WAPI debug lib for a long time. Not even sure its up-to-date. Maybe try checking out the WAPI from github, and build your own debug library and use that - if you have your own local copy of the source, oy may also help in determining what is causing this issue. If you want me to look into this further, let me know and I can maybe take a look next week. John
Flex45 Posted November 4, 2022 Author Report Posted November 4, 2022 To be honest I am not quite sure how to do this 🙂 Will it be possible to provide also the debug library when you can? Thanks
John Dowson Posted November 7, 2022 Report Posted November 7, 2022 The WAPI debug library is correct and up-to-date. I have updated the WASMClient to use the WAPI debug library when built in the debug configuration. There is a problem in the WASMClient in that that an invalid simConnection is used when running in debug mode. I have corrected this now. If you have a problem connecting in your code, you can try specifically setting this before you start the connection - once you have your WAPI instance, and before calling start(), do this: wasmPtr->setSimConfigConnection(SIMCONNECT_OPEN_CONFIGINDEX_LOCAL); But really this shouldn't be necessary, as that should be the default value anyway... I have attached the latest WAPI libs, so maybe try with them. John FSUIPC_WAPI-libs.zip
Flex45 Posted November 7, 2022 Author Report Posted November 7, 2022 Hi John, Many thanks for the info and the files! I will give it a try and let you know of the results. Thanks
Flex45 Posted November 9, 2022 Author Report Posted November 9, 2022 Hi John, This debug library worked perfectly right away! (Without even the setSimConfigConnection line). Many thanks for the help! Regards,
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now