Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Search the Tips
Tip Bank > C++ > Profiling

Profiling - Page 4

61-80 of 80     Previous     Next
Displaying Exceptions' Description
by Danny Kalev
Standard exception classes are derived from std::exception (defined in the <exception> header). They all implement the member function what(), which returns a const char * with a description of ...
NT RAS error codes
by DevX Pro
Where can I go to decipher Microsoft error codes? I am having trouble making one NT workstation dial in to my RRAS server; I get a TCP/IP error code 807.
Checking for an Uncaught Exception
by Danny Kalev
A thrown exception is considered caught, when its corresponding handler has been entered (or, in case such a handler cannot be found, when unexpected() function has been invoked). Sometimes you have ...
Exception Specifications are Checked at Run Time
by Danny Kalev
A function can specify explicitly what type of exception it may throw. An exception specification, however, is not checked at compile time, but rather at run time: ...
Before You Profile Your Software...
by Danny Kalev
If you intend to optimize your software's performance, make sure to profile the release version rather than the debug version. The debug version of the executable contains additional code (about 40% ...
Standard Exceptions
by Danny Kalev
C++ defines a hierarchy of standard exceptions that are thrown at run time when abnormal conditions arise, such as when operator new fails. The standard exception classes are derived from ...
Exceptions are Always Passed by Value
by Danny Kalev
The exception handling (EH) mechanism disables the possibility of passing a thrown exception by reference or through a pointer. This is due to the way this mechanism is implemented: when an exception ...
Prefix Versus Postfix Operators
by Danny Kalev
You can use both -- and ++ as prefix and postfix operators. When applied to primitives such as int or char, they are indistinguishable in terms of efficiency. When applied to objects, on the other ...
Re-Throwing an Exception
by Danny Kalev
An exception is thrown to indicate an abnormal state. The first handle to catch the exception can try to fix the problem. Should it fail to do that, or in case it only managed to perform a partial ...
Exceptions as objects
by Danny Kalev
The traditional convention of sending an integer as an error flag is problematic and unsatisfactory in OOP. The C++ exception handling mechanism can offer much more flexibility, safety and robustness.
Exception handlers hierarchy
by Danny Kalev
It's handy to catch potential exceptions in a bottom-down hierarchy: specific exceptions are handled first, then groups of exceptions and finally, a catch-all handler: ...
Compilation Errors
by DevX Pro
What is an "lvalue"? How does it relate to "rvalue"?
Use Register variables to enhance performance
by Danny Kalev
The C/C++ register keyword can be used as a hint to the compiler that the declared variable is to be accessed very often during program execution, and hence, should be stored on a machine register ...
Weird error message (classes related)
by DevX Pro
I can compile all of my .cpp files (they were written by my teacher), but I get error messages when I try to run them. I get a make failed statement and an error message saying "unresolved external error" about one of my functions in my class. Do you have any ideas of what the problem could be?
How to terminate a program safely?
by Danny Kalev
In standard C, the functions abort() and exit() perform an immediate program termination, regardless of where they are called from. Although this also works in C++, it is usually not a good idea to ...
Beware of throwing exceptions from a destructor
by Danny Kalev
The most plausible way to report a failure during object construction is by throwing an exception. However, this is not recommended for destructors. The problem is that a destructor may be invoked ...
Enhancing Vector's Performance
by Danny Kalev
Standard vector<> dynamically allocates the required amount of memory it needs; which saves you the bother of memory management. However, letting vector <> acquire additional memory ...
Exceptions and operator new
by Danny Kalev
Standard C++ states that operator new should throw an exception of type std::bad_alloc when it fails. This is different from previous stages of C++ and it means two important things: ...
Exception specification
by Danny Kalev
A function that may throw an exception can warn its users about that by specifying a list of exceptions it may throw, thus helping its users to catch such exceptions ...
CL.EXE Error
by DevX Pro
I installed MS Visual C++ 5.0 at work and on my home machine. At work it's fine running on Windows NT with 96 megs of RAM. On my home machine - Windows 95 with 24 meg - when I try to compile a small program under the ide I get "error spawning cl.exe". No error number. I can generate a make file, and nmake works fine, even with the ide open at the same time. So I figure there is sufficient memory. There must be some other resource that's tight, but I don't know what.
61-80 of 80     Previous     Next
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date