Jump to content
The simFlight Network Forums

Overflow exception in PayloadWeightKgs

Recommended Posts

Hi, excuse my english....again....

I'm using your library and...I love it...really easy but, I found a problem with PayloadWeightKgs. It's giving an OverflowExpection. The steps to reproduce:


- Open the default flight "707-300 Cold and Dark KSEA" of the Captain Sim Boeing 707-300

- The payload weight in kgs in FSX........ 8.809kg.

- The error....you'll see in attached file.....

- The AircraftWeightKgs is OK....... 145.939kg.




Link to comment
Share on other sites



I don't have very good news about this.


The problem is that the Captain Sim 707 plane has 123 payload stations. FSUIPC can only deal with 61. My DLL wasn't checking this limit and so it was reading bad data for payload stations above 61.


I've fixed this problem so that it doesn't return bad data and overflow, but, I can't extend the 61 station limit in FSUIPC. So the DLL now only brings back the first 61.


I have added a boolean property on PayloadServices called TooManyPayloadStations. If this is 'true' then the current aircraft has more than 61 stations and therefore some will be inaccessible. Also the total payload values will also be incorrect because it can only count the first 61.


Although it's not really a 'fix', at least your application can tell which planes will cause a problem.


Attached is a new version of the DLL (2.7) (One targets the .NET 2 Framework, the other the .NET 4 Framework.)





Link to comment
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
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.