Resource Compiler Fatal Error RC1002
out of heap space
To fix by using the following possible solutions
Increase the Windows swap-file space. For more information about increasing the swap-file space, see virtual memory in Windows help.
Split the current file into smaller files and compile them separately.
Remove other programs or drivers running on the system.