Why does cura crash A LOT?

I keep getting this error on crashes:

OMP: Error #136: Cannot create thread.
OMP: System error #8: Not enough memory resources are available to process this command.
OMP: Error #178: Function GetExitCodeThread() failed:
OMP: System error #6: The handle is invalid.

First question is? Are you building a 64-bit executable (or only 32-bit) ?

One possibility is there is a handle leak in the code somewhere. Need to make sure all those handles are CloseHandle()'d appropriately.