Comments (3)
Follow-up. While I was completing my issue report, I had left my debug session suspended at the NullReferenceException
.
The stack trace looks like this
I had a look at the SettingsProvider
code and I think I see a possible failure mechanism. Here's the relevant code in the SettingsProvider
:
try
{
string value = ascomProfile.GetValue(deviceId, item.Name, null, String.Empty);
if (String.IsNullOrEmpty(value))
{
spv.SerializedValue = item.DefaultValue; //[ASCOM-256]
Diagnostics.TraceVerbose("Defaulted/empty ASCOM Profile DeviceID={0}, Key={1}, Value={2}",
deviceId, item.Name, item.DefaultValue.ToString());
}
else
{
spv.SerializedValue = value;
Diagnostics.TraceVerbose("Retrieved ASCOM Profile DeviceID={0}, Key={1}, Value={2}", deviceId,
item.Name, value);
}
}
catch
{
spv.SerializedValue = spv.Property.DefaultValue;
Diagnostics.TraceVerbose("Defaulted/missing ASCOM Profile DeviceID={0}, Key={1}, Value={2}",
deviceId, item.Name, spv.PropertyValue);
}
The exception appears to be happening on the first line of my try {}
block. SettingsProvider expects a null or empty string if there is no saved setting - but instead, it gets an exception (this might be a change in behaviour in Profile
from previous releases).
This might only be an issue when debugging because the debugger halts on the exception, which is leaving the mutex locked, so any ASCOM apps that launch at that point will fail. However something has changed because I've never seen this issue before when debugging and both @DanielVanNoord and I have seen it on 6.5 RC builds.
from ascomplatform.
from ascomplatform.
I agree. Also as pointed out by @astroman133 , Visual Studio seems to be suddenly more alert to exceptions that it previously ignored. Problem solved by ticking this checkbox...
from ascomplatform.
Related Issues (20)
- Update IDomeV2 documentation to reflect async design principles
- Coordinate Transform uses Apparent if SiteTemperature not set HOT 4
- DeviceHub accesses TargetRightAscension/Declination during SyncToCoordinates HOT 9
- Alpaca discovery fails when ICMP Destination Unreachable reply is received HOT 15
- Switch interface does not support operating momentary switches HOT 7
- Telescope Simulator returns incorrect DriverVersion HOT 1
- Conform and Telescope Simulator errors HOT 1
- Determine Bit Depth of Returned ImageArray HOT 6
- Camera V3 Simulator unable to set Sub Exposure Rate HOT 3
- Reconsider Usage of Dome Component "slave" Terminology HOT 2
- Consider Implementing a slewtoaltazasync method for Dome HOT 5
- Consider Implementing an isexposing method for Camera HOT 3
- Correct documention of Camera.AbortExposure HOT 1
- RightAscensionRate on .NET simulator HOT 4
- Camera.SensorName test confusion HOT 2
- ASCOM Driver Template missing in VS2022 HOT 4
- InvalidCastException while connecting ASCOM Device hub to SynScanApp HOT 7
- ASCOM Platform 6.6 - Service Pack 2 breaks ASCOM Remote - Version 6.7.1+4785 HOT 3
- ASCOM Alpaca compatibility with existing applications and SetupDialog HOT 25
- ASCOM does not open the com port HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ascomplatform.