How to reload windows

How to reload a crashed process on Windows

How to reload a crashed process on Windows? Of course, I can run a custom monitoring Win service process. But, for example, Firefox: it doesn’t seem to install such a thing, but still it can restart itself when it crashes.

4 Answers 4

On Vista and above, you can use the RegisterApplicationRestart API to automatically restart when it crashes or hangs.

Before Vista, you need to have a top level exception filter which will do the restart, but be aware that running code inside of a compromised process isn’t entirely secure or reliable.

Firefox constantly saves its state to the hard disk, every time you open a tab or click a link, or perform some other action. It also saves a flag saying it shut down safely.

On startup, it reads this all back, and is able to «restore» based on that info.

Structured exception handling (SEH) allows you to catch program crashes and to do something when it happens.
See: __try and __except
SEH can be very dangerous though and could lead to your program hanging instead. Please see this article for more information.

If you write your program as an NT service then you can set the first, second and subsequent failure actions to «Restart the service».

For Windows 2008 server and Windows Vista and Windows 7 you can use the Win32 API RegisterApplicationRestart

Please see my answer here for more information about dealing with different types of program crashes.

If I recall correctly Windows implements at least some subset of POSIX and so «must» have the signal interface (things like SIGKILL, SIGSEGV, SIGQUIT etc.).

I’ve never done this but on linux, but you could try setting the unexpected termination trap with signal() (signal.h). From quick scan of docs it seems that very few things can be done while handling signal, it may be possible that even starting a new process is on forbidden list.

Now that I’ve thought about it, I’d probably go with master/worker pattern, very simple parent thread that does nothing but spawns the worker (that does all the UI / other things). If it does not set a specific «I’m gonna die now» bit but still dies (parent process always gets message / notification that spawned process died) then master respawns the worker. The main theme is keep master very simple and hard to die due to own bugs.

How to reload windows

192878 Page Views

  • Posts: 3990
  • Registered: ‎12-02-2007
  • Location: United States of America
  • Views: 192878
  • Message 2 of 3

Re:How to reload Windows 7 on Thinkpad x240

You may wish to see if the ThinkPad X240 is eligible for a recovery media download per https://support.lenovo.com/us/en/solutions/ht103653. If it is, you can use a USB flash drive to make the recovery media for the system.

I am a volunteer and neither a Lenovo nor a Microsoft employee.

L380 Yoga • P72 (20MB-*) • P50 (20EN-*) • S230u (3347-4HU) • T23 (2648-LU7) • T42 (2378-R4U) • T43p (2678-H7U) • T61p (6459-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • X220 (4286-CTO) • X250 (20CM-*) • Yoga 370

Читайте также:  Dahdi linux complete что это

United States of America

  • Posts: 5
  • Registered: ‎06-29-2016
  • Location: United States of America
  • Views: 58
  • Message 3 of 3

Re:How to reload Windows 7 on Thinkpad x240

Thank you so much for this information! I will get the serial number of the Thinkpad and see if it is eligible for the recovery media download. This information is such a great help to me!

I really appreciate your help!

  • Introduction
    • Community Spotlight
    • Welcome & FAQs
    • Forum Housekeeping
    • Recently Released Service Tips — Read Only
    • Recently Released Critical Drivers — Read Only
  • Special Events
    • Lenovo @ CES 2021
    • Lenovo @ IFA 2019
    • Lenovo @ MWC 2019
    • Lenovo @ CES 2019
    • Special Event Archive
  • ThinkPad Notebooks
    • ThinkPad X1 Fold
    • ThinkPad: T400 / T500 and newer T series Laptops
    • ThinkPad: P and W Series Mobile Workstations
    • ThinkPad: X Series Laptops
    • ThinkPad: X Series Tablet and Helix Laptops
    • ThinkPad: S Series, ThinkPad Yoga and Twist Laptops
    • ThinkPad: 11e (Windows), 13, E and Edge series Laptops
    • ThinkPad: L, R and SL series Laptops
    • ThinkPad Chromebooks: 11e, X and Yoga
    • ThinkPad; T61 and prior T series plus Other Legacy ThinkPads
  • ThinkBook Notebooks
    • ThinkBook Notebooks
    • ThinkBook Plus Notebooks
  • Lenovo Notebooks
    • Lenovo Yoga Series Notebooks
    • Lenovo IdeaPad 1xx, 3xx, 5xx & 7xx, Edge, LaVie Z, Flex Notebooks
    • Lenovo B and G Series Notebooks
    • Lenovo U and S Series Notebooks
    • Lenovo P, Y and Z series Notebooks
    • Lenovo C, E, K, M, N and V Series Notebooks
    • Lenovo Chromebooks
  • Lenovo Phones
    • A5 [L18021] Smartphones
    • A Series, Vibe B & Vibe C Smartphones
    • P1, P1m, P70 & P90 Series Smartphones
    • P2 [P2a42] Smartphones
    • K9 [L38043] and K9 Note [L38012] Smartphones
    • K8 [XT1902] Smartphones
    • K and Vibe Z Series Smartphones
    • S and Vibe X Series Smartphones
    • Smartphone Accessories and Wearables
    • Legion Phone Duel
    • Legion Phone Duel 2
  • Lenovo Mirage AR
    • Mirage AR Hardware – Technical Questions
    • Star Wars™: Jedi Challenges
    • MARVEL Dimension of Heroes
  • Gaming – Lenovo Legion
    • Gaming Laptops
    • Gaming Desktops
    • Y Gaming Accessories & Curved Gaming Monitors
    • Legion Game Hub
  • ThinkPad Tablets
    • ThinkPad Tablets
  • Lenovo Tablets
    • Android Yoga Series Tablets
    • Lenovo Android based Tablets and Phablets
    • Windows based Tablets
  • Yoga Book Community
    • Yoga Book C930
    • Yoga Book (Android)
    • Yoga Book (Windows)
  • ThinkCentre Desktops
    • ThinkCentre A, E, M, S Series
  • Lenovo Desktops
    • Lenovo All In One (AIO) Desktops
    • Lenovo Desktop Towers
    • Lenovo Beacon, Stick 300, D, J and S Series Desktops
  • ThinkStation
    • ThinkStation Workstations
  • Datacenter Systems
    • BladeCenter / Flex Systems
    • Converged Systems — HX Series
    • ThinkSystem
    • System x — X6, M5, M4
    • ThinkServer
    • Lenovo Sales Configurators
  • Datacenter Storage
    • Enterprise Storage
    • LenovoEMC Storage
    • Lenovo Iomega Networking Storage
  • Datacenter Networking
    • Datacenter Networking Hardware
    • Networking Management/Devops
  • Datacenter Systems Management
    • Server System Management
    • Lenovo XClarity
    • Solutions on Lenovo Servers
    • LiCO — Lenovo Intelligent Computing Orchestration
  • External Displays, Options and Accessories
    • Displays, Options and Accessories
  • Virtual & Mixed Reality
    • Lenovo Explorer
    • Mirage Solo & Mirage Camera
  • VR Classroom
    • VR Classroom Hardware
    • VR Classroom Software, Content, and Educator Resources
  • Software and Operating System
    • Pre-Installed Lenovo Software and Applications
    • Enterprise Client Management
    • Lenovo Patch for SCCM
    • Security & Malware
    • Windows 10
    • Windows 8.1, 8, 7, Vista and XP Discussions
  • Smart Office
    • ThinkSmart
  • Smart Home
    • Lenovo Smart Display & Lenovo Smart Clock with Google Assistant
    • Lenovo Link App, Smart Home Essentials and Smart Frame
    • Lenovo Smart Tablets with Amazon Alexa
    • Lenovo Smart Tablets with Google Assistant
  • Lenovo Developer Community
    • Windows Ecosystem Developers
    • Android Ecosystem Developers
    • Lenovo Technologies
  • Special Interest Discussions
    • General Discussion
    • Feedback on the support site
  • Linux Operating Systems
    • Fedora
    • Red Hat and CentOS
    • Ubuntu
    • Debian
    • Other Linux Discussions
  • Ideation — Idea Exchange
    • XClarity Ideation

Community Guidelines

Please review our Guidelines before posting.

Читайте также:  Linux serial port group

Check out current deals!

  • Re:T14 AMD battery drain in standby (Linux) 6
  • Lenovo Community Participation Rules 5
  • X1 review: Dolby Voice for PC 4
  • Re:Trackpoint randomly stops working 3
  • First Look: ThinkPad X13 Yoga Gen 2 3
  • Re:Ideapad 320 microphone not working on linux 2
  • Re:Flashing underscore on boot 2
  • Re:Expanding DS2200 with a new enclosure 2
  • Re:Legion T7 34IMZ5 — BIOS preventing RAM upgrade 2
  • Re:T14 AMD battery drain in standby (Linux) 2
  • Username
  • Match exact username (no wildcards)
  • User ID
  • Email address
  • Match exact email address (no wildcards)
  • IP address
  • Match any of the above criteria
  • Duration of ban(Days)
  • Duration of ban(Hours)
  • Duration of ban(Minutes)
  • Make ban permanent
  • Internal reason for ban
  • Public reason for ban

Welcome to Ideation!

Ideation sections have been created for customers to engage with us by discussing and promoting ideas and improvements relating to Lenovo’s products and services.

As a reminder, your participation in Ideation is governed by Lenovo’s website Terms of Use and by Lenovo’s Forums Community Guidelines. Additional terms governing the Ideation Program are included in the Ideation Terms and may be found here. For your convenience, here’s a

Quick summary of the highlights:

  • This area is for ideas – improving our products or suggesting entirely new products – please keep technical support issues on the other boards designated for that purpose
  • You’re giving your ideas freely for us to use so we can improve our offerings to you
  • The ideas you give us are your own and are not confidential
  • If we decide we want exclusive use of your idea, you’re agreeing to sell it to us at a fixed price

By clicking on “Yes” below you certify that you have read and agree to the Community Guidelines and the Ideation Terms, and acknowledge that by submitting any ideas, material, or information on the Ideation site you grant Lenovo the right to use any such submissions by you in any way without acknowledging, notifying, or compensating you, as described in those documents.

How To Reload Windows 10 Creative Images

How To Easily Reinstall Windows 10 Without The Bloatware

How To Do A Clean Installation Of Windows 10 Windows Central

How To Reinstall Windows On A Pc Or Laptop Tech Advisor

How To Install Windows 10 From A Usb Flash Drive

How To Clean Install Windows 10 And Create Boot Media

How To Reinstall Clean Install Windows 10

How To Clean Install Windows 10 And Create Boot Media

How To Reinstall Windows 10 Without Losing Data

How To Clean Install Windows 10 And Create Boot Media

How To Do A Clean Install Of Windows 10 The Easy Way

Refresh And Reset Your Pc Building Windows 8

How To Do A Clean Install Of Windows 10 The Easy Way

How To Do A Clean Install Of Windows 10 The Easy Way

How To Reinstall Windows On A Pc Or Laptop Tech Advisor

Reloader 3 3 Activator Latest 2019 Office And Windows Activator

How To Reinstall Windows On A Pc Or Laptop Tech Advisor

How To Do A Clean Installation Of Windows 10 Windows Central

How To Use Fresh Start To Reinstall Windows 10 Creators Update

How To Do A Clean Install Of Windows 10 The Easy Way

How To Reinstall Store And Other Apps In Windows 10

How To Reinstall Store And Other Apps In Windows 10

Activation Windows 10 Pro Activator Re Loader By R 1n

How To Do A Clean Installation Of Windows 10 Windows Central

Читайте также:  Курсор мыши для windows 10 warcraft

How To Reinstall Windows 10 To A New Hard Drive Onmsft Com

How Long Will It Take To Download Install Windows 10

Aw Snap Something Went Wrong Error On Google Chrome

How To Clean Install Windows 10 And Create Boot Media

Windows 10 Volume Control Not Working

Restore And Reinstall Windows Store In Windows 10 After

4 Ways To Reinstall Windows 7 Wikihow

How To Install Windows 10 On A New Hard Drive With Pictures

Restore And Reinstall Windows Store In Windows 10 After

How Do I Reformat And Reinstall Windows Ask Leo

Transfer Migrate Windows 10 System To Computer With

How To Reinstall Store And Other Apps In Windows 10

How To Install Windows 10 With Pictures Wikihow

How To Do A Clean Installation Of Windows 10 Windows Central

How To Reinstall Windows On A Pc Or Laptop Tech Advisor

Source Reload Shader Windows 10 Minecraft Pe

Resetting Windows 10 To Increase Computer Performance

How To Perform A Clean Install Of Windows 10 Heres A Step

To Upgrade Or Wipe And Reload

Usb Keep Disconnecting And Reconnecting In Windows 10

How To Reinstall Store And Other Apps In Windows 10

Latest Windows 10 Update Problems And How To Fix Them Make

Microsoft Windows 10 Pro Download

The Cost Of Windows 10 Migration What To Consider

How To Download The Windows 10 1909 Iso From Microsoft

Upgrade Your Motherboard Without Reinstalling Windows 10

How To Reinstall Windows 10 Without Losing Data Youtube

I Cant Open Brave On Windows 10 Desktop Support Brave

Hp Pcs Creating And Using A Microsoft Recovery Usb Drive

How To Setup Gmail In Windows 10

View Topic Windows 10 Build 18947 Betaarchive

How To Reinstall Store And Other Apps In Windows 10

Windows 10 Version 1909 Iso File Direct Download Pureinfotech

How To Reinstall Windows On A Pc Or Laptop Tech Advisor

How To Reload Windows 8 1 On Your Surface Pro Tablet

Windows Couldnt Load Correctly Fix For Windows 8 8 1 10

How To Reload Windows 8 1 On Your Surface Pro Tablet Tips

How To Reinstall Your Windows 10 Format The Drive And Reset

Reset Or Reinstall Windows 10

Install Windows On Your Mac Using Parallels Desktop

How To Restart Graphics Driver In Windows 10

How To Factory Reset Windows 10 Without Knowing The Account

How To Upgrade To Windows 10 From Windows 7 Or 8 Laptop Mag

How To Disable Skype Or Completely Uninstall It On Windows 10

Microsoft Will Soon Add Cloud Download Reload Restore Data

How To Reload Windows 8 1 On Your Surface Pro Tablet Tips

Tip How To Easily Download The Windows 10 Iso Without Using

How To Download The Latest Windows 10 Iso Images Directly In

How To Clean Install Windows 10 And Create Boot Media

Apples Latest Hardware Sucks Why I Switched To Windows And

How To Find Your Windows 10 Product Key

How To Uninstall Reinstall A Game On Windows 10

How To Fix Startup Stuck On Spinning Circle In Windows 10

How To Setup Gmail In Windows 10

Tip How To Easily Download The Windows 10 Iso Without Using

How To Clean Install Windows 8 Or 8 1 Walkthrough

How To Reinstall Windows On A Pc Or Laptop Tech Advisor

How To Install Windows 10 With Pictures Wikihow

Windows 10 Easier To Reload

Fix Windows 10 Internet Error Dns Not Responding

If I Cant Upgrade From Windows 7 To Windows 10 Now What

Оцените статью