As the question suggests I have an app that I can run perfectly fine after building under Delphi 2010, however if its compiled under Delphi XE I get the error:
Project xyz.exe raised exception class EOSError with message 'System Error. Code 1158. The current process has used all of its system allowance of handles for Window Manager objects'.
The error occurs after receiving a large amount of data from an SQL query but it seems odd that it only crashes out after being built with XE. I've run FastMM in the 2010 environment with no issues unfortunately I cant run it in XE as I only have a compiler license which is running on a build server.
I've also checked the number of handles being used through PERFMON and the 2010 version uses more handles that the XE version with no problem.
Any ideas?