For those with large libraries containing a sizeable amount of metadata, MusicBee tends to use a lot of memory. The problem is that once it reaches a threshold (.NET threshold for 32bit programs is 1.3 GB),
System.OutOfMemoryException error messages will pop up and sometimes cause MusicBee to crash. There is a way to bump up this threshold up to 4 GB by one of two ways: 1a) Run editbin.exe included in a package by Steven or 1b) run editbin.exe included in Microsoft Visual Studio (Community Edition).
Which way is easier? "1a" should do the trick in one step, but if you are OCD and absolutely need to know whether editbin.exe worked, then "1b" is the way to go. Besides, if editbin.exe doesn't work, then you won't see MusicBee run significantly above 1.3GB in task manager before crashing.
1a) Editbin.exe from Steven's packagei) Download link:
https://www.mediafire.com/file/9h6dxa3wcg84tdh/EditBin.zip/fileii) Extract all three files from it and copy it to MusicBee's program directory (usually, C:\Program Files (x86)\MusicBee\)
iii) Run the following command (Go to MusicBee's program directory in explorer and type "cmd.exe" (without quotes) in the address window and hit enter):
editbin /LARGEADDRESSAWARE MusicBee.exe
1b) Editbin.exe from Visual Studioi) Download Microsoft's Visual Studio IDE (Community Edition) installer:
https://www.visualstudio.com/ii) Run the installer
iii) Click the "Individual components" tab and select "C++/CLI support" and "VC++ 2017 v141 toolset (x86,x64)" and finish the install
iv) Open up notepad and create a batch file with the content below. Save it as "Filename_of_your_choice.bat" anywhere in your computer.
@echo off
ECHO -------------------------------------------------------
echo Musicbee (LargeAddressAware)
Echo.
Echo Choose what do you want to do...
Echo 1. Enable /largeaddress aware flag
Echo 2. Check the status of MusicBee.exe
Echo.
ECHO -------------------------------------------------------
CHOICE /C 12 /M "Select one:"
:: Note - list ERRORLEVELS in decreasing order
IF ERRORLEVEL 2 GOTO CHECK
IF ERRORLEVEL 1 GOTO ENABLE
:CHECK
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\dumpbin.exe" /HEADERS "C:\Program Files (x86)\MusicBee\MusicBee.exe" | more
:ENABLE
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\editbin.exe" /LARGEADDRESSAWARE "C:\Program Files (x86)\MusicBee\MusicBee.exe"
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\dumpbin.exe" /HEADERS "C:\Program Files (x86)\MusicBee\MusicBee.exe" | more
v) Double click the bat file you just created.
Checking whether it worked, those who followed 1a earlier proceed to 1a below; likewise those who followed 1b above proceed to 1b below.
1a) Dumpbin.exe from Visual Studioi) Install Microsoft Visual Studio according to 1b)-i) through iii)
ii) Hit Windows Button+R, type cmd.exe and press enter
iii) Copy and paste the following in the command line:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\dumpbin.exe" /HEADERS "C:\Program Files (x86)\MusicBee\MusicBee.exe" | more
iv) Hit enter
v) The result should match the highlighted message from the picture below: "Application can handle large (>2GB) addresses."
1b) From the .bat file made earlierThe bat file you made should produce a screen similar to the one below. Pay attention to the highlighted portion: "Application can handle large (>2GB) addresses."
