Windows IoT


Program restarts when Raspberry Pi 2 loses network connection


I'm running Node.js as a UWP app on a Raspberry Pi 2 with Windows IOT. We're using an unreliable modem, so my server listens for changes in network state and responds accordingly. However, in practice, what I'm seeing is that Windows IOT is restarting
my headless app every time the network state changes. Is this expected behavior?
Hi Petropi,
How is your application handling the lost connection? Does it clean up? Close handles? Re-establish connections? If you debug this reset, I think you will find your app is being restarted by the Watchdog. The watchdog restarts applications
that appear stalled.
Our recommendation is to spin potentially stalling portions of your code into sub processes, tasks or services so that the main UI application is free to manage, start & stop, those tasks.
You can look through the other threads in this forum for "Watchdog" or "EM_WATCHDOG" for similar issues.
Sincerely,
IoTGirl

Related Links

Keyboard filter's ForceOffAccessibility does not prevent High Contrast dialog
How to turn off the HDMI USB powered 7" screen
Changing Page Code for Raspberry Pi 3, Visual Studio
Uwp app deployment Raspberry 3
Unable to Preinstall apps on Windows IoT Pro & Update it via Windows Store
Door Ajar/Raspberry/GPIO/Python/C#
Windows 10 IoT Core Pricing
WiFi support for USB devices with external antenna
WifiDirect API fails to pair with device
How to read from dht11 ? Raspberry C# UWP
What to exclude in UWF to receive updates from Store
How i connect raspberry as bluetooth speaker with android (using windows 10 IoT core) ?
SerialSample sends wrong Data
Prioritize Ethernet Connection Over Wifi Connection
Pi 3 keeps restarting during boot
Execute powershell commands from an exe(Windows form application) used in UWP app deployed on Dragonboard

Categories

MSDN
Windows Phone Development
Machine Translation an...
Microsoft Sync Framework
Windows Embedded Standard
Dynamics
Silverlight
Microsoft Azure
Archived Forums M
Archived Forums SN-SZ
Archived Forums X-Z
Internet of Things
Suggestions and Feedba...
MSDN and TechNet Profi...
Visual F#
Developing Universal W...
Application Compatibil...
General Windows Deskto...
Microsoft Message Queu...
Network Monitor
Windows Desktop Sideba...
Windows Desktop Search...
Windows Imaging Compon...
Windows Desktop Ribbon...
Windows Hardware Testi...
Word for Developers
SharePoint 2013 - Search
SharePoint Legacy Vers...
Azure Management Portal
Pricing & Billing
Azure Media Services
Azure Automation
Azure CDN
Machine Learning
Azure Logic Apps
Language Understanding...
Azure IoT Hub
.NET Framework Class L...
Team Foundation Server...
Software Modeling Tools
ADO.NET DataSet
Microsoft Live Labs Volta
Internet Explorer Exte...
SyncFx - General [Read...
Microsoft Robotics - S...
Microsoft Robotics - H...
SQL Server Analysis Se...
SQL Server Replication
SQL Server Compact
Microsoft Drivers for ...
SQL Server Search
Database Design
SQL Server PowerPivot ...
SQL Server Data Qualit...
Standard 2009: Embedde...
Standard 7: Servicing ...
SQL Server 2012 Setup ...
SQL Server 2012 Integr...
SQL Server 2012 High A...
SQL Server 2012 Spatia...
Windows Live Writer: D...
CRM Deployment
MSDN Subscriptions Fee...
WebsitePanel - Discuss...
Visio General Question...
Visual Studio & Silver...
Report a Silverlight Bug
PivotViewer Control wi...
Connected Services Fra...
Windows Performance To...
Retired SharePoint Bus...
Retired SharePoint Bus...
Retired SharePoint Soc...
.NET Framework Network...
AppFabric Service and ...
Axum Incubation Project
App Producer (archived)
Casablanca
Developer Documentatio...
Expression Community S...
Game Technologies: XNA...
General Windows MultiP...
Hobbyist Zone
Microsoft adCenter: De...
Microsoft Security Dev...
Microsoft Security Dev...
Multimap API Developme...
Network Class Library ...
Phoenix
POS for .NET
Search Server: Federation
Search Server: Report ...
Search, Organize, and ...
Silverlight (formerly ...
Security for Azure
SQL Server Modeling
SQL Server 2014 Master...
SQL Server 2014 In-Mem...
Team Foundation Server...
Visual Basic for Appli...
Visual Basic Interop a...
Visual Basic Power Packs
Visual C# Express Edition
Visual Studio Class De...
Visual Studio Database...
Visual Studio Team Sys...
Visual Studio Tools fo...
Windows MultiPoint Mou...
Working with Data and ...
Mango Update (Archived)
Windows Phone Preview ...
.NET Native Preview

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile