Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about registers
#31
Quote: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.
esus saves.... Passes to Moses, shoots, he scores!
Reply
#32
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. :o Maybe someday I'll try it again Smile

And yeah, it's just an application like any other. Smile 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.
I'd knock on wood, but my desk is particle board.
Reply
#33
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 ^_^
Reply
#34
Elves? No, no. Google controls your computer.
Ignorant Islandmen. :roll: :wink:
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)