Главная страница | назад





Article #16761: Using Asserts without filling Data Segments

 Question and Answer Database
FAQ1761C.txt Using Asserts without filling Data Segments
Category :Debugging
Platform :Windows 3.1
Product : BC++4.5x BC++5.x TC++Dos3.0 TC++Win4.5
Question:
What is the method of using asserts that won't result in the
Data Segment getting filled up with their corresponding message
strings?
Answer:
In the compiler options, select the "Constant strings in code
segments" option. That'll place the assert message strings
into the modules' code segments.This will keep the data segment
free for you.
The command-line switch for that is -dc.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99