Sign in to follow this  
Guest steels214

exception version mismatch

Recommended Posts

HelloI'm trying to use simconnect to talk to fsx. I'm just using the examples that came with the sdk. The problem is that when I call Simconnect_Open(), I get an Exception_Version_Mismatch. Does anyone know how I can fix this?Thanks

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

>Hello>>I'm trying to use simconnect to talk to fsx. I'm just using>the examples that came with the sdk. The problem is that when>I call Simconnect_Open(), I get an>Exception_Version_Mismatch. Does anyone know how I can fix>this?>>ThanksYou're using the beta, right? Have you followed the instructions to move the needed files over, like the SimConnect.xml file in the :Documents and SettingsApplication DataMicrosoftFSX folder?

Share this post


Link to post
Share on other sites

Well here's my setup. I'm running fsx beta III from my e: drive because of lack of space on the c:. "E:Flight Sim fsx.exe". I put the simconnect.xml in my "C:Documents and SettingsaliasApplication DataMicrosoftFSX" without making any changes. Then I put the simconnect.ini in the "My DocumentsFlight Simulator X Files". Here're the first couple lines from the simconnect diagnostic program when I run my Open_Connection program: --------------------- 0.00000 SimConnect version 0x00000001 144.364 [63, 1] <144.37 [63] >>>>> EXCEPTION=5, SendID=0, Index=4 <<<< --------------------- And "SIMCONNECT_RECV* pData->dwVersion" is the value 1. And ideas on what I'm not doing? Thanks

Share this post


Link to post
Share on other sites

Ok, that is interesting.Is this happening when you try to create a connection with SimConnect_Open or is some other time?I ask because the "Index=4" part is referring to the parameter that cause the exception to be thrown.

Share this post


Link to post
Share on other sites

yes, I debugged and that shows up in the diagnostic right after Open() is called. And I'm just using the code from the sdk. I'm not looking at the code right now but I think the 4th parameter is either null or 0.

Share this post


Link to post
Share on other sites

Do you have a manifest file, or the manifest built-in as a resource in your program? I've not tried any external programs using SimConnect yet, only DLLs, and if they don't have a correct manifest SimConnect won't even load them -- so it never gets as far as an error on 'Open'.If you've not got a manifest then I suspect SimConnect does its version checks when you try to Open, and not finding a matching manifest, fails as you see. I'm not sure why it refers the the 5th parameter (#4) though.There's a manifest included in the SimConnect.h file, and when you compile this should be produced as an external file ".exe.manifest", which you should place with your program, or optionally have it built-in as a Resource (I think only MSVS2005 does the latter automatically, otherwise you need to find the utility mt.exe).RegardsPete

Share this post


Link to post
Share on other sites

External programs behave the same way as DLLs, if the manifest is missing they can not find the SimConnect DLL and will not be able to connect to FSX.The x80000003 may be a clue to what the real problem is, but I can't find any details about it in the doco.I would double check the content of the configuration files at this point, but I doubt that they are the problem. Interesting though ...

Share this post


Link to post
Share on other sites

>External programs behave the same way as DLLs, if the>manifest is missing they can not find the SimConnect DLL and>will not be able to connect to FSX.Oh, right -- so that must be dealt with in the LIB code.>The x80000003 may be a clue to what the real problem is, but I>can't find any details about it in the doco.It may be a path problem -- System error 3 is "ERROR_PATH_NOT_FOUND" and the top bit is probably some priority flag.Regards,Pete

Share this post


Link to post
Share on other sites

I followed the instructions in the sdk/config readme.txt for the myprogram.exe.manifest file and its a no-go.I've had all three betas so far. Maybe I'm using an old cfg file or something. Tomorrow I'll reinstall fsx onto my c: drive and see what happens.Thanks all

Share this post


Link to post
Share on other sites

Well. I re-installed fsx and realized that some of the files I was using was from a previous version. So now I'm SimConnected.Thanks

Share this post


Link to post
Share on other sites

Update your FSX install as you can. It will help us if you tell us what version of FSX you are running right now.

Share this post


Link to post
Share on other sites

I use fsx  deluxe version 10...build 60905.0

 

I install vpilot software and run it..so when I run my fsx and connect the vpilot ,,inside the vpilot box the shown "simconnect error:version_mismatch5"

Share this post


Link to post
Share on other sites

Properly update your FSX with SP1 and SP2 from Microsoft.

Share this post


Link to post
Share on other sites

Can you still get SP1 and SP2 from Microsoft?

 

AVSIM hosts SP1 and SP2 (english versions only though) under file names:

 

fsx_sp1_enu.zip

fsx_sp2_enu.zip

 

Links to the downloads are:

http://library.avsim.net/download.php?DLID=170823

http://library.avsim.net/download.php?DLID=170824

 

Note that you need to update to SP1 first and then update from SP1 to SP2 (you can't go straight to SP2).

 

The FSX versions are:

 

RTM: 10.0.60905
SP1: 10.0.61355
SP2: 10.0.61472
XPack: 10.0.61637 (Acceleration)

 

An application made with simconnect SP2 will not work with earlier versions of FSX.

Share this post


Link to post
Share on other sites

it's working now..thanks a lot...after I updated sp1 & sp2...


but I still learn how to fly online...

Share this post


Link to post
Share on other sites

why in Controllers in range ::: under Center/Approach/departure/ and etc not show anything...but I saw the tutorial there's got thing to display

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this