• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

FS2004 AIFP OutOfMemoryException

Hellow everybody

GA-F2A88X-UP4 rev3
ADATA DDR3-2133 4Gx2
SanDisc 256Gb SATA SSD
Windows7 Pro SP1 x64 JPN + NET Framework4.7

I use AIFP3.2.06 and 3.2.08 for FS2004
AIFP is wonderfull tool.
But any function gets OutOfMemoryException

Read bgl txt zip -> works fine
Single Add Aircraft -> works fine
Validate Flightplan -> works fine
Compile bgl -> works fine

Bulk Add Aircraft -> OutOfMemoryException
Validate Aircraft -> OutOfMemoryException
and any other functions gets OutOfMemoryException Error

Can I Fix These Error?

Sorrry My Poor English


Resource contributor
YamaYama, in the ( years AIFP has been in existence, I have never experienced (or had reported) an out of memory exception in AIFP. I have no idea what could be causing it - unless it's legitimate.

Normally, when an exception is thrown, there's a details link/button. Please post/send me those details.

Hellow and Thanks gadgets

Now I download and try AIFP 3.2.09

Single Add Aircraft Function works fine
But I get System.ArgumentOutOfRangeException error at Any Other Functions of Aircrafts


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.BitConverter.ToUInt32(Byte[] value, Int32 startIndex)
at AIFP_3.AircraftCfg.GetAircraftTypeCode(String sPath)
at AIFP_3.Common.MakeInstalledACFileItemList(String sSearchString, List`1& listACFolders_, Int32 fFSVer, List`1& listAC, Int32 fReportDups)
at AIFP_3.SelectAircraft.rbVer_Click(Object sender, EventArgs e)
at System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.RadioButton.set_Checked(Boolean value)
at AIFP_3.FSVersion.FSControls_Select(List`1& controls, Int32 fFSver, Boolean bCheck)
at AIFP_3.SelectAircraft.SelectAircraft_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:
Assembly Version:
Win32 Version:14.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1
Assembly Version:
Win32 Version:4.7.2053.0 built by: NET47REL1

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
For example:
<system.windows.forms jitDebugging="true" />
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

My AIFP.ini

Path to FS9=C:\PC Game\FS2004
Path to FS9.cfg=C:\Users\UserName\AppData\Roaming\Microsoft\FS9\FS9.cfg
Path to FS9 Compiler=E:\Game\FSim\FS2004-AIFP\BglComp.exe
Target FSVer=FS9
Time Zone=[UTC] Greenwich Mean
Reload on Startup=False
Last Traffic File=
Last Timetable File=
Last Text or Zip File=
Last Text File=
Last Zip File=
Last FP File - TitleBar=
Last AC Dir=
Last AI Folder=
Last File Loaded=
File Backup -1/0/1 = Recycle Bin/No Backup/Folder=0
Suppress Warnings=False
Identify Non-Stock APs=False
Access All Drives=True
No Automatic Updates=False
Development Updates=False
All Deletions to Recycle Bin=False
Last Compile FS Version=-1
Use Local Time=False
Use Summer Time=False
Use IATA Codes=False
Activity-level Distribution Mode=0
Activity-level Min.=1
Activity-level All=100
Minimum Sit-time=5
ETD Preset Interval=20
Last Version Run=3.2.09
Open FP Editor on Startup=False
No-Show Missing ACs=True
Consolidate Weekly FPs=False
Last Compile Suffix Checked=False
Default Repaint Folder=E:\Game\FSim\FS2004-AIFP\Repaints
Adjust Activity for Compile=False
Use Structured Filename=False
Structured Filename Key=
Last SimObjects Folder=
Use Cruise Speed from Aircraft.cfg=False
Don't Show ToolTips=False
Resequence FPs Before Compile=True
Show Airport Name=True
Show Airport City=True
Show Airport UTC Offset=True
Save All Textures=False
Use DXT Textures=False
Use 32bit Textures=False
Use Mipped Textures=False
Open AC Editor After Install=False
Leg Start Day=-1
Allow Any ICAO=False
Last Converted Traffic File Save Folder=
Manage AC List Flags=0
Auto-Check for Alternate ICAO=False
Analyse - LookInSL=False
Analyse - SL Simplify=False
Analyse - Init Paths=False
Parking Assignments Sequenced by Index=False
Delete Repaint Zips After Install=False
Don't Maintain Installed AC List(s)=False
Install Texture Type=0
Always Compile to SWS=False
Update Title in Aircraft.cfg=False
Distance Units M.=False
Alternate Line Color=False
Use Addon Airport Definitions=False
Timetable - ICAO Codes=False
Timetable - Col_FN=0
Timetable - Col_From=0
Timetable - Col_To=0
Timetable - Col_ACType=0
Timetable - Col_DepTime=0
Timetable - Col_ETA=0
Timetable - Col_DOW=0
Timetable - Col_FL=0
Timetable - Col_SitTime=0
Timetable - Col_DOW is SS=False
Timetable - Airline=
Timetable - ParkingCodes=
Timetable - Call by FN=True
Timetable - Flight Rules IFR=True
Timetable - PreviousFile=
Rectangle - MainPanel=-4,-4,1288,1004
Rectangle - FPEditor=0,0,0,0
Rectangle - Aircraft Editor=0,0,0,0
Rectangle - Airport Editor=0,0,0,0
Rectangle - ArrDep=0,0,0,0
Rectangle - Collect Airports=0,0,0,0
Rectangle - Compile Dialog=0,0,0,0
Rectangle - Create FP=0,0,0,0
Rectangle - FP FindReplace=0,0,0,0
Rectangle - FP Text Editor=0,0,0,0
Rectangle - MissingACs=0,0,0,0
Rectangle - MsgBox_List=242,242,629,610
Rectangle - MsgBox_ListView=0,0,0,0
Rectangle - Reports=0,0,0,0
Rectangle - Select Aircraft=22,22,606,798
Rectangle - Select Airports=0,0,0,0
Rectangle - Select Folder=110,110,424,734
Rectangle - Select From List=0,0,0,0
Rectangle - Special Livery=0,0,0,0
Rectangle - Subset=0,0,0,0
Rectangle - Timetable=0,0,0,0
Rectangle - Timezone Editor=0,0,0,0
Rectangle - Traffic Analyser=0,0,0,0
AIG Update - Date/Time - Airports=
AIG Update - Date/Time - Timezones=
AIG Update - Date/Time - AltICAO=
Sorry My too late response


Resource contributor
YamaYama, it seems you have some unusual aircraft in your "stable". This problem has never before been reported but its cause has existed for several years (since the program module in which it occurs hasn't changed over that period).

I have corrected what appears to be the error and posted Development Release 3.2.09(a) to http://stuff4fs.com. Please download that release and check if the problem still exists.