![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2007
Posts: 13
Rep Power: 0
![]() |
how i handle a system that automatically become crshed
helo,
suppose u have well build in product system which is build in linux o.s. now due to reason system automatically become crash(software crash),then how do u handle such crash. which is better way to handle such crash. amit |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
I suppose something would be causing the system to crash, so you should be checking for errors, and handling them.
For example, you could try using assert, but thats becoming replaced with the more popular exceptions, for example: class Exception : public std::exception
{
...
};
class DivByZeroException : public Exception
{
...
};...
if(IsZero(val))
throw DivByZeroExc();
...and in main, for example, you could have: int main()
{
try
{
... //do something
}
catch(Exception x)
{
//handle
}
}Google for exceptions. That should help. ![]() |
|
|
|
|
|
#3 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5
![]() |
Quote:
<brain explodes> That is to say, HUH?
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
Don't be a meansie hard ass!
![]() |
|
|
|
|
|
#5 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5
![]() |
Quote:
In that, the post was no different than many others we get here, but the abuses he heaped upon the English language cried out for response. Yes, I realize that English is most certainly not the native language of the OP, but that post was just incomprehensible.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#6 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
I was kidding!
Some people just can't speak/write english ![]() |
|
|
|
|
|
#7 | |
|
hi: for(;;) goto hi;
|
I'll give it a whirl
Quote:
Something like this should be implemented in forum registration
__________________
How do you play Religious Roulette? Stand around in a circle and blaspheme till someone gets struck by lightning. |
|
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Debug the product and reboot the system.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#9 |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5
![]() |
Invest in a wetware upgrade for the biological component of the system. This should remedy a lot of the inter-system communications issues.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
#10 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: UK
Posts: 214
Rep Power: 3
![]() |
I would handle it by displaying a message blaming the end user for breaking my code
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to meet these cross-platform project goals? | mattengland | C++ | 1 | Apr 3rd, 2006 4:01 AM |
| PHP system commands | ktsirig | PHP | 6 | Oct 4th, 2005 1:24 AM |
| Windows Hook on Win9x system | dc2000 | C++ | 0 | Jul 4th, 2005 5:27 PM |
| System Info | Da-Kid | C++ | 9 | Feb 15th, 2005 6:46 AM |