Qbasicnews.com
April 01, 2020, 05:06:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Question about registers  (Read 5651 times)
LooseCaboose
I hold this place together
*****
Posts: 981



« Reply #30 on: January 07, 2004, 11:08:18 PM »

Quote from: "adosorken"

I've written graphical shells for Windows 9x before and intentionally crashed them on purpose to see if they'd respawn


Does a shell for Win9x differ in any way from a regular application? If not, I don't see any reason why Win9x would attempt to restart it if it was killed, it would just treat it as a normal forced exit on an application.

A better approach than renaming your shell explorer.exe, would be to write a monitor service that creates a child process to run your shell in when it is stared, then just have an infinite loop that waits until the child exits, if the child does exit, the return status can be checked (and logged) and the child can be restarted. You don't even need two separate programs to do this, because the monitor can be written as a separate thread (or process) within the shell's code.
Logged

esus saves.... Passes to Moses, shoots, he scores!
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #31 on: January 07, 2004, 11:14:27 PM »

Yeah I thought about that idea but then was wondering if there'd be any adverse side-effects to it and kinda got worried there would be so I didn't do it.  Shocked  Maybe someday I'll try it again Smiley

And yeah, it's just an application like any other. Smiley I know dozens of people back in the day who replaced explorer.exe with command.com as their shell. I never tried it myself, though. I was always attempting to create my own graphical shell that worked similar to explorer.exe but without some of the baggage that tends to make it so "heavy" and break down from time to time.
Logged

I'd knock on wood, but my desk is particle board.
Nexinarus
Wandering Guru
***
Posts: 301



WWW
« Reply #32 on: January 07, 2004, 11:51:57 PM »

No no inside every computer there are many tiny elves! they switch it and remember things so fast you dont even have to worry.. err never mind ^_^
Logged
Zack
*/-\*
*****
Posts: 3974



WWW
« Reply #33 on: January 08, 2004, 01:02:33 AM »

Elves? No, no. Google controls your computer.
Ignorant Islandmen. :roll:  :wink:
Logged

f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!