- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please post your compile and link options as well.
thanks,
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
at the moment the memory limit of a 64 bit process is out of reach. So you will not get an out of
memory exception until all the virtual memory is used completely. Normally the
OS starts paging if the physical memory is short and the system behaves really slow.
If you want to avoid that, you have several options. One would be to query the OS
about the free physical memory. Check if the amount is below a certain
threshold and then throw an out of memory exception.
To check the memory you can use the following APIs:
Windows*: http://msdn.microsoft.com/en-us/library/aa366589%28VS.85%29.aspx
Linux: Read /proc/meminfo
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
c:\forum\U84518>icl /EHsc maincpp.cpp
Intel C++ Intel 64 Compiler XE for applications running on Intel 64, Ve
rsion 12.0.5.221 Build 20110719
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
maincpp.cpp
Microsoft Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
-out:maincpp.exe
maincpp.obj
c:\forum\U84518>maincpp.exe
Out of memory with i=25742.... 1627Mb/37636Mb
Press any key to continue . . .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page