During normal modeling work or when saving a model, a memory error occurs. Possible symptoms/wording:
Insufficient memory available to analyze the current model
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
If the error occurs when attempting to open a model with a large background layer or when attempting to add a large background, see the below article:
Out of memory error when loading a background file
If the error occurs when saving the model, first check to see if your .WTG file is very large, then see the below article:
System.OutOfMemoryException when viewing graphs or saving a model (Solution 500000095642)
If the above does not help or if you're encountering the error when doing something else like computing the model, opening Skelebrator, etc, you may be running out of physical memory. If you're working with a very large model, it can occupy a very large amount of memory. If you have other programs open at the same time they take up sections of memory and make it difficult for WaterGEMS to "fit" your model into a contiguous block of memory.
This can occur mostly when using the 32-bit version of the product, either in the Standalone, MicroStation, AutoCAD or ArcGIS platform. To check if you're using the 32-bit or 64-bit version of the product, go to Help > About WaterGEMS/WaterCAD (Standalone) or from the WaterGEMS/WaterCAD menu > Help > About, from within the MicroStation, AutoCAD or ArcGIS platform. In the lower left corner next to the date, you will see "64-bit" if using the 64-bit version. If you do not see this then you are using the 32-bit version, which a much smaller memory bandwidth. 32-bit versions are limited to 2 GB (or 3GB if using "3GT tuning") whereas the 64-bit version will essentially use all of your available memory. You can also check your computer's available memory (and whether your operating system is 64-bit), typically via a Right Click > Properties on the 'My Computer' icon on the desktop.
Note: Currently, the MicroStation V8i and ArcGIS integrated versions are limited to 32-bit only.
If you have a 64-bit operating system and adequate memory, make sure you're using the 64-bit version of our products. There is no separate installation file necessary - both the 32 and 64-bit versions are installed from the same installation file. During installation, setup will detect if you have a 64-bit operating system and install as such. If for some reason it did not install as 64-bit or if you purposely opened the shortcut for the 32-bit version (such as due to limitations with accessing certain data types in modelBuilder and SCADAConnect), you can either reinstall the program, or ensure that you're opening the Standalone version via the WaterGEMS.exe/WaterCAD.exe file within the "x64" subfolder of the product installation folder (by default this is under C:\Program Files (x86)\Bentley\WaterGEMS\x64\ )