Author Topic: Question for a programing guru  (Read 563 times)

Offline badhorse

  • Silver Member
  • ****
  • Posts: 834
Question for a programing guru
« on: April 09, 2011, 11:02:43 PM »
My first computer was a Radio Shack Co-Co.  I bought the expensive one.  32K!!  Although only 16K worked unless you had a "store bought" program running.
Anyway, back then I dabbled in programing with the Basic Language. In writting a Basic program you put a subroutine in that when an error occurred, the program went to the error subroutine which basically said, "Hey, we've had an error.  Okay, now go back to work".
Now when there is an error the program comes crashing to the ground and Microsoft wants to be notified.
What happened to simplicity?

 :headscratch:
Always try and be the person your dog thinks you are.

Offline bcadoo

  • Nickel Member
  • ***
  • Posts: 685
Re: Question for a programing guru
« Reply #1 on: April 10, 2011, 12:30:09 AM »
Big difference between a program and an OS.
The fight is the fun........Don't run from the fun!
"Nothin' cuts the taste of clam juice like a big hunk o' chocolate" - Rosie O'Donnell

Offline MrRiplEy[H]

  • Persona Non Grata
  • Plutonium Member
  • *******
  • Posts: 11633
Re: Question for a programing guru
« Reply #2 on: April 10, 2011, 04:28:53 AM »
My first computer was a Radio Shack Co-Co.  I bought the expensive one.  32K!!  Although only 16K worked unless you had a "store bought" program running.
Anyway, back then I dabbled in programing with the Basic Language. In writting a Basic program you put a subroutine in that when an error occurred, the program went to the error subroutine which basically said, "Hey, we've had an error.  Okay, now go back to work".
Now when there is an error the program comes crashing to the ground and Microsoft wants to be notified.
What happened to simplicity?

 :headscratch:

First of all programs made with lower level programming languages are about 1000 times more complex than anything you can do in basic. That's why it's called basic.

Second if a program crashes and you see that notification it's most likely because the programmer failed to catch the error and write that little subroutine you mentioned about to handle the error. Or it can be something more complex, writing on lower languages makes it possible to manipulate the system in a much deeper way which can lead into memory leaks etc.
Definiteness of purpose is the starting point of all achievement. –W. Clement Stone

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12425
      • http://www.hitechcreations.com
Re: Question for a programing guru
« Reply #3 on: April 10, 2011, 08:47:51 AM »
And what happens when your program erases that little piece of code that said go back to work?

HiTech

Offline lulu

  • Silver Member
  • ****
  • Posts: 1068
Re: Question for a programing guru
« Reply #4 on: April 10, 2011, 09:48:17 AM »
Well, there is another little piece of program that said again go back to work  :D

mobilis in mobile

Offline gpwurzel

  • Gold Member
  • *****
  • Posts: 3836
Re: Question for a programing guru
« Reply #5 on: April 10, 2011, 01:03:38 PM »
Sounds like you've miscoded a bit - so the subroutine isn't working, causing the program to crash - which prompts windows to send the info to ms. If your computer is locking up, open up task manager, look for dumprep.exe and kill it.

Wurzel
I'm the worst pilot ingame ya know!!!

It's all unrealistic crap requested by people who want pie in the sky actions performed without an understanding of how things work and who can't grasp reality.


Offline badhorse

  • Silver Member
  • ****
  • Posts: 834
Re: Question for a programing guru
« Reply #6 on: April 10, 2011, 01:13:04 PM »
Sounds like you've miscoded a bit - so the subroutine isn't working, causing the program to crash - which prompts windows to send the info to ms. If your computer is locking up, open up task manager, look for dumprep.exe and kill it.

Wurzel

Actually it was just a general question.  I would have thought with the programing languages in use today that they would be able to program error handling routines that didn't crash the program. Not just Aces High (wasn't pointing fingers HTC, honest).   It just seems like any time a program running under Windows (the only ones I'm familiar with) encounters an error, white screen, blue info box "We are sorry but our program crashed. Please tell Microsoft so, ah, well not sure why but tell em anyway", start over.
Always try and be the person your dog thinks you are.

Offline gpwurzel

  • Gold Member
  • *****
  • Posts: 3836
Re: Question for a programing guru
« Reply #7 on: April 10, 2011, 01:14:51 PM »
Ah, with you, yeah, the lack of information on what caused the crash etc drives me nuts too. I have my own business sorting out peoples pc's mobile (I go to them) and some of the descriptions leave me banging my head off the desk at times.

Wurzel
I'm the worst pilot ingame ya know!!!

It's all unrealistic crap requested by people who want pie in the sky actions performed without an understanding of how things work and who can't grasp reality.


Offline gyrene81

  • Plutonium Member
  • *******
  • Posts: 11629
Re: Question for a programing guru
« Reply #8 on: April 10, 2011, 01:46:21 PM »
Actually it was just a general question.  I would have thought with the programing languages in use today that they would be able to program error handling routines that didn't crash the program. Not just Aces High (wasn't pointing fingers HTC, honest).   It just seems like any time a program running under Windows (the only ones I'm familiar with) encounters an error, white screen, blue info box "We are sorry but our program crashed. Please tell Microsoft so, ah, well not sure why but tell em anyway", start over.
not many people know it but the system crashes are part of microsofts "$h!7 happens" core file system...  :D  with 64bit windows running on multi-core cpu architecture, those hard errors are a lot less frequent than they were 5-10 years ago.

believe it or not, even a "nix" system can be brought to it's knees with rogue program errors...and it's not a bsod, it's a complete shutdown-reboot.
jarhed  
Build a man a fire and he'll be warm for a day...
Set a man on fire and he'll be warm for the rest of his life. - Terry Pratchett

Offline EagleDNY

  • Silver Member
  • ****
  • Posts: 1514
Re: Question for a programing guru
« Reply #9 on: April 10, 2011, 03:12:18 PM »
And what happens when your program erases that little piece of code that said go back to work?

HiTech

If [Program Says Go Back to Work]
  Then [Close Aces High]
End If


Offline Shuffler

  • Radioactive Member
  • *******
  • Posts: 27311
Re: Question for a programing guru
« Reply #10 on: April 11, 2011, 09:51:03 AM »
==
80th FS "Headhunters"

S.A.P.P.- Secret Association Of P-38 Pilots (Lightning In A Bottle)

Offline dedalos

  • Plutonium Member
  • *******
  • Posts: 8052
Re: Question for a programing guru
« Reply #11 on: April 11, 2011, 01:34:26 PM »
not many people know it but the system crashes are part of microsofts "$h!7 happens" core file system...  :D  with 64bit windows running on multi-core cpu architecture, those hard errors are a lot less frequent than they were 5-10 years ago.

believe it or not, even a "nix" system can be brought to it's knees with rogue program errors...and it's not a bsod, it's a complete shutdown-reboot.


I was able to disassemble some of the old windows code.  Here it is:


#include "win31.h"
#include "win95.h"
#include "win98.h"
#include "win2000.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h "
#define UNINSTALL = IMPOSSIBLE

char make_prog_look_big[1600000];

void main()
{
while(!CRASHED)
{
display_copyright_message();
display_bill_rules_message();
do_nothing_loop();
if (first_time_installation)
{
make_50_megabyte_swapfile();
do_nothing_loop();
totally_screw_up_HPFS_file_sy stem();

search_and_destroy_the_rest_o f_OS/2();
hang_system();
}

if (still_not_crashed)
{
display_copyright_message();
do_nothing_loop();
basically_run_windows_3.1();
do_nothing_loop();
do_nothing_loop();
}
}

if (detect_cache())
disable_cache();

if (fast_cpu())
{
set_wait_states(lots);
set_mouse(speed, very_slow);
set_mouse(action, jumpy);
set_mouse(reaction, sometimes);
}

// printf("Welcome to Windows 3.11");
// printf("Welcome to Windows 95");
printf("Welcome to Windows 98");

if (system_ok())
crash(to_dos_prompt);
else
system_memory = open("a:\swp0001.swp" O_CREATE);

while(something)
{
sleep(5);
get_user_input();
sleep(5);
act_on_user_input();
sleep(5);
}
create_general_protection_fau lt();
}
Quote from: 2bighorn on December 15, 2010 at 03:46:18 PM
Dedalos pretty much ruined DA.