- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序遇到了一些崩溃(有点类似于指南针应用程序)。 Windows 崩溃报告告诉我这一点:
frame 0:
Microsoft.Devices.Sensors.ni.dll; Microsoft.Devices.Sensors.Accelerometer.Start; 0x0000006c
frame 1:
PivotApp1.ni.DLL; PivotApp1.MainPage+_start_d__0.MoveNext; 0x000001d4
frame 2:
mscorlib.ni.dll; System.Runtime.CompilerServices.AsyncMethodBuilderCore._ThrowAsync_b__3; 0x00000036
我无法理解这到底意味着什么。根据我从中得到的信息,这可能是由于加速度计的原因。
这是我当前的代码,似乎错误是从这里的某个地方生成的:
private async void start()
{
//Check for the user agreement in use his position. If not, method returns.
if ((bool)IsolatedStorageSettings.ApplicationSettings["LocationConsent"] != true)
{
// The user has opted out of Location.
MessageBox.Show(AppResources.main_cantuse);
Application.Current.Terminate();
}
else
{
//KOMPASS
if (compass == null)
{
// Instantiate the compass.
compass = new Compass();
// Specify the desired time between updates. The sensor accepts
// intervals in multiples of 20 ms.
compass.TimeBetweenUpdates = TimeSpan.FromMilliseconds(20);
compass.CurrentValueChanged +=
new EventHandler<SensorReadingEventArgs<CompassReading>>(compass_CurrentValueChanged);
compass.Calibrate +=
new EventHandler<CalibrationEventArgs>(compass_Calibrate);
}
try
{
compass.Start();
timer.Start();
accelerometer = new Accelerometer();
accelerometer.CurrentValueChanged +=
new EventHandler<SensorReadingEventArgs<AccelerometerReading>>(accelerometer_CurrentValueChanged);
accelerometer.Start();
}
catch (InvalidOperationException)
{
MessageBox.Show(AppResources.main_unabletostart);
}
我想问,我是否必须检查加速度计是否准备好(或空检查或其他)?
感谢您的帮助或指导。
最佳答案
这些崩溃可能是由于没有指南针的设备造成的(是的,有这样的设备)。
您应该使用 Compass.IsSupported
检查指南针,并且仅在返回 true 时使用它。
关于c# - Windows 手机崩溃 device.Sensors.ni.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29697142/
我正在尝试使用 openCV 执行相机校准。在来自 openCV 示例的相同示例数据上,这很好用,但我的源代码生成错误: Assertion failed 0 && ni==ni1>... coll
我有以下问题:一切正常,但当我到达 calibrateCamera 部分时,出现以下错误: OpenCV Error: Assertion failed (ni > 0 && ni == ni1) i
由于我的应用程序崩溃,我从 Windows 应用商店应用程序提交过程(由审阅者发送)中获得了一个小型转储。我在为我的应用程序加载符号时遇到问题,因为错误发生在 App.ni.exe 中,这是一个我不知
我最近在Reaktor重新启动修补程序,发现了一些奇怪的东西。在我的一个主要结构中,有一个输入引脚会在我编辑结构时不时将其图标切换为垂直线。它在某种程度上取决于音频处理顺序。 不幸的是,我无法发布结构
$.validator.addMethod( "ninumber", function(value, element) { return this.optional(e
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 1
我写的一个应用程序崩溃了,在事件查看器中我发现了以下内容: Faulting module name: PresentationFramework.ni.dll, version: 4.0.30319
在 C:\Windows\assembly\NativeImages_v4.0.30319_64 中找到的 *.ni.dll.aux 文件的格式(数据布局)是什么?据我所知,这些是由ngen.exe生
嘿,我遇到了一个有趣的问题。似乎 Json (org.json.JSONArray) 找不到元素 "NI" 即使它 >>> 就在那里
我正在尝试通过 C 程序读取输入到 NI USB-6211 的电压。为此,我尝试使用安装程序附带的一些示例程序,但无济于事。我已经查看了文档,但说实话,它根本没有多大帮助。 这是我改编的代码。 (它有
这个问题在这里已经有了答案: AES-NI intrinsics enabled by default? (2 个答案) 关闭 4 年前。 我刚刚听说了指令集扩展 AES-NI。如果可以提高性能,J
有没有办法在 Python 中使用 AES-NI?我确实想通过使用我对 AES-NI 的硬件支持来使 HMAC 更快。谢谢。 最佳答案 HMAC 使用的是安全加密散列,而不是对称密码。您可以使 AES
我编写的一个应用程序崩溃了,在事件查看器中我发现了以下内容: Faulting module name: PresentationFramework.ni.dll, version: 4.0.3031
Oracle 在 AES-NI 方面对 Java 8 有这样的看法: Hardware intrinsics were added to use Advanced Encryption Standar
我在 Labwindows\CVI 中使用 National Instruments Vision 模块 出于某种原因,当我使用 func imaqDetectLines() 时,我得到FATAL R
我有一个问题,我希望我在这里是正确的。我想在 C# 程序中使用 AES-NI 加速。我没有找到任何好的来源,想问问这是否可能,以及是否有任何好的信息来源。另外我想问一下,AES-NI 支持哪些 key
我正在测试 vanilla viWrite() 函数,发现当我传入无效的命令字符串时,它不会返回错误代码。我觉得这有点奇怪……当然实现应该检测到这个事件。 这是我用来演示这个的一个小测试用例.....
我想将 Python IDLE-esque 命令提示界面集成到现有的 NI-CVI (LabWindows) 应用程序中。我试图关注 Python.org 的讨论,但似乎迷失在细节中。有像我这样的傻瓜
有没有办法在 Cython 代码中使用 AES-NI 指令? 我能找到的最接近的是某人如何访问 SIMD 指令: https://groups.google.com/forum/#!msg/cytho
我正在使用 VisualStudio 2010 和 OpenCV 3.0。我想校准相机,我遇到的问题与 this 中描述的基本相同去年发的帖子,一直没回复。我正在调用 calibrateCamera,
我是一名优秀的程序员,十分优秀!