Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > C++ > Error/Exception Handling

Error/Exception Handling - Page 3

Exception Handling
41-60 of 189     Previous     Next
Stack Unwinding in the Event of an Uncaught Exception
by Danny Kalev
When an exception is thrown and no matching handler can be found for it, C++ invokes the function terminate(). By default, terminates invokes the function abort(). Some compilers guarantee that at ...
Differences in Execution Flow
by DevX Pro
Why would a program not yield any errors, and yet not run on one system, while resulting in a perfect run (unchanged) on another system? Specifically, a switch statement was completely ignored on my system, yet functioned accurately on my professor's.
Error Handling Routines
by DevX Pro
While converting source code from C to C++, I came up with difficulties in converting error handling routines like err_quit(),err_sys(),etc. Are there C++ versions of these functions and where can I find them?
Workaround for SendKeys
by Bobby Orr
Sendkeys "{TAB}" can lockup the keyboard in Windows 2000. Here's how ...
Debugging in Visual C++
by DevX Pro
Is there a way to access the call stack debugging information from the code? I would like to print the call stack inside a function, each time it is called.
Help Files in Applications
by DevX Pro
I created a "help" button in a form and coded this button's click event as: { help } The code { set help to MyHelp.chm } is included in the main program before the "do form." When I make an application through Setup wizard and install it in a computer that has no VFP, the help button does not display the help window and doesn't give an error message either. What's going on?
Implement Catch All Blocks for Robustness
by Deepak Pant
You can use Throwable class in catch block to ...
Problem with Multiple Table Joins
by DevX Pro
I have two tables Region(RegionId-PK, RegionName) and District(DistrictId-PK, DistrictName, RegionId-FK). When I open a recordset (rs) like : Dim rs as new ADODB.Recordset rs.Open "SELECT District.*, Region.RegionName FROM District INNER JOIN Region ON District.RegionId = RegionId", cn Now, with this recordset, it gives an "Insufficient key column information..." message on rs.Delete method. Moreover, when I update the value RegionId like : rs!RegionId = 3 rs.update The value of 'RegionName' should be updated correspondingly. But it doesn't happen. It will only be updated when I re-query it. But it will be unnecessary extra work and more importantly, the record pointer will be changed on re-query. So could you give me solution to both update and delete problems. Please note that, the same query works well in Access.
Visual FoxPro App Shuts Down in Runtime
by DevX Pro
I have my first Visual FoxPro app that runs fine in the development environment, but will not run in runtime. What do I need to do to keep it going in the runtime?
All-Encompassing Try
by DevX Pro
I was told that in order to make my program easier to read, I should use try to cover all of my program, then catch every exception at the end of the program. Does this make any sense?
Invalid Seek Offset
by DevX Pro
What causes the error message "Invalid seek offset"?
Location of Wizards
by DevX Pro
Every time I try to use a wizard, I get the following error message: "Cannot find the Wizard Program." The wizards are located in the same folder that I am working in, and when I use "Find" and then click on the wizard, it will load and work OK. Any suggestions?
Exception.what() Gives Vague Description
by DevX Pro
I'm using a catch(exception e). When I come in the catch-block and print the message belonging to the exception, I receive the message "9exception." What does it mean?
Standard Input Exception
by DevX Pro
Why do I have to catch an exception when I use System.in.read()?
Error 2374 for loop-scoped variable declaration
by DevX Pro
The following code produces an error when compiled on Microsoft Visual C++ 6 SP3: for (int i = 0; i error C2374: 'i' : redefinition; multiple initialization But it compiles cleanly on gcc. Why? Which interpretation of the language specification is correct?
Function to create a folder/subfolder
by DevX Pro
How can I write a function in C++ that would create a folder/subfolder on the hard-disk?
Turn Off Explicit ASP Error Messages in IIS
by Roger Oney
Of course no one ever sees an error on your Web site—but just in case, you can turn off explicit ASP error messages on your live site for better security and a more user friendly experience. ...
Clearing the Screen
by DevX Pro
What is the "clear screen" function in C++, and which library is it in?
Fix Justification Glitch in MSFlexGrid
by Pat Labelle
The MSFlexGrid tries to automatically determine how to justify text. If the first character is numeric, then that cell will be right-justified. If it is an alphanumeric character, then that cell will ...
Authentication Error When Creating a Web Application
by Manoj K.
If you are using a numeric IP address instead of a computer name to identify your Web server when creating an application, you may encounter an authentication error. This happens when your ...
41-60 of 189     Previous     Next
Sitemap