there was a lack of precision in my message. What I wanted to know is why this message still appeared when I added the /Zmxxx option. I had already consulted all the available data in the MSDN before asking for help...
In any case, as you confirmed that you were able to compile using the option, I looked more carefully at what I'd done and finally found that, the way I entered the option, it was used as "/Zmxxx" insted as /Zmxxx (it was a pre-processor option). After correcting this mistake it failed again with /Zm200 but succeeded with /Zm300.
I noticed that there were lots of errors when I tried to use multi-threaded DLLs but none when using statically loaded libraries. But I understand that it was expected.
Thus I started the test and got the message:
CryptoPP::Exception caught: FileStore: error opening file for reading: usage.dat
As the usage.dat file, along with many other .dat files, is located in the crypto51 directory and not in the debug one, I copied the cryptest.exe file into the crypto51 directory and restarted the test. I got the same message as with the 5.0 version:
CryptoPP::Exception caught: FileStore: error opening file for reading: H:\usrprog\crypto51\edc.dat
Thus the remaining question:
What's the edc.dat file and how to get it? I confirm that I'm not using a FIPS 140 configuration (thanks again for the link).
Thanks,
FredericAt 10:24 07/05/2003 -0400, Walton, Jeffrey wrote:
| -----Original Message----- | From: Frederic Vicher [mailto:[EMAIL PROTECTED] | Sent: Wednesday, May 07, 2003 9:32 AM | To: [EMAIL PROTECTED] | Subject: Crypto++ 5 problems on VC 6.0 ? | | | Hello, | | ... | | 1) With Crypto++ 5.1 | | ... | | I do it and I get the message: | | --------------------Configuration: cryptest - Win32 | Debug-------------------- | Compiling... | bench.cpp | h:\usrprog\crypto51\algparam.h(187) : fatal error C1076: | compiler limit : | internal heap limit reached; use /Zm to specify a higher limit | Error executing cl.exe. | | cryptest.exe - 1 error(s), 0 warning(s) | | I tried to use /Zm150, /Zm200, /Zm250, /Zm300 and even | /Zm1500. No change.
Hi Frederic,
I had the same problem. However, the /Zm switch fixed the problem. Notice from above the 'Win32 Debug'. Did you add the /Zm switch to at least the Debug build? One would enter it as follows: Select Project->Settings, C/C++ Tab.
Then for each configuration, add the switch /Zm200 in the text box where the other switches are. /Zm200 is what worked for me. You may be able to go a bit lower.
Alternately, Wei uses precompiled headers. You may be able to add the following to the pch.h file: #pragma comment(linker, "/Zm:200"). I did not try it however.
| Do you know what causes this problem?
From MSDN: /Zm (Specify Memory Allocation Limit)
The /Zmnumber option determines the compiler's memory allocation limit. The number argument is a scaling factor, with a default value of 100 (that is, 100%). The maximum value is 2000.
The compiler uses a number of discrete heaps, each of which has a finite limit. The total of the size limits for all heaps is about 105 MB, but when any one heap is exhausted, the compiler cannot continue. Memory is allocated only as needed; the 105 MB limit is just to keep from using too much memory. Exceeding any one of the discrete-heap size limits occurs only in rare circumstances involving very large or very complex programs. Should your program exceed one of these limits, use /Zm to scale the total size of all the limits. For example, when /Zm200 is specified, the total of all heap size limit is 210MB.
Note In most cases, use of this compiler option is not necessary. Use it if compiling your program causes error message C1076: "compiler limit : internal heap limit reached."
| | | 2) With Crypto++ 5.0 | The compile and build phases are Ok. Then I tried to test. | The readme.txt says: | "Run the test driver and make sure the validation suite passes." | | I do it and I get the message: | | CryptoPP::Exception caught: FileStore: error opening file for | reading: | H:\usrprog\crypto50\CT_FIPS_140_Debug\edc.dat | | I did not find any edc.dat file in the archive. What's this | file? Is it | missing or is it to be created before the test? |
See http://www.eskimo.com/~weidai/cgi-bin/fom-serve/cache/81.html
Jeff
