First some background. I'm building a 32-bit application but running on 64-bit windows.
The application loads a bunch of files for graphical rendering and is multithreaded.
The problem is that I am getting bad allocation errors when the application reaches around 1.5GB. This boundary varies widely from 1.5GB to 1.8GB and never seems to approach the 2GB single application memory boundary I would expect it to.
The application itself is multithreaded and in my testing it seems to be able to allocate more memory if I remove one of the threads.
Is there a reason I am unable to allocate up to the full 2GB??
Note: GPU memory usage is around 400MB and even if I turn off the rendering the issue is still there.
Thanks in advance for any help!