Windows error 0x00000016, 22

Detailed Error Information

BAD_COMMAND[1]

MessageThe device does not recognize the command.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x80070016.

CID_HANDLE_CREATION[2]

This is a Blue Screen of Death stop code. More information is available in the Knowledge Base article Bug Check 0x16: CID_HANDLE_CREATION.

HRESULT analysis[3]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[3][1]
DescriptionThe default facility code.[3][1]
Error Code22 (0x0016)

Questions

15votes
4answers

Android - failure on loading library

I have a similar problem to this question, but slightly different. I have compiled a .so library to use with JNI. Because it is large (15 MB), I am putting it on the SDCard instead of in the standard application place. The file is called libSample.so and it's located at [...] read more
java
android
jni
native
10votes
7answers

Can't Install IE 10 on brand new Windows 7

I bought a new Alienware and they won't provide support for Windows Update (why should they, really). I go and try to run the IE 10 update like so: enter image description here [https://i.stack.imgur.com/EvMph.gif] And, it hangs a bit on the screen above. Then, it shows this error: enter image [...] read more
windows-7
internet-explorer
windows-update
internet-explorer-10
10votes
5answers

How to make a enum with values over max int allowed?

I'm making a enum in c++ to make a finite state machine using binary flags. It looks like: enum VStates { NEUTRAL = 0x00000000, // 000000 // Physical Status DRY = 0x00000001, // 000001 WET = 0x00000002, // 000010 HOT = 0x00000004, // 000100 COLD = 0x00000008, // 001000 BURNED [...] read more
c++
variables
enums
8votes
0answers

Fixing crashes Windows Phone apps with crashinfo of dev dashboard

I have a simple wp8.1 app published in the store (universal app) but it crashed. So I downloaded the excel file containing crash info from https://dev.windowsphone.com/en-us/DownloadReportThe crash(es) occur in the latest version of my app and the clients have 8.1 (because you cannot run universal apps otherwise) Here is a [...] read more
exception
windows-phone-8.1
win-universal-app
6votes
0answers

Simple Mac ProgressIndicator causes crash: "caught causing excessive wakeups"

I have this Button click handler (MonoMac on OS X 10.9.3): partial void OnDoButtonClick(NSObject sender) { DoButton.Enabled = false; // Start animation ProgressIndicator.StartAnimation(this); ThreadPool.QueueUserWorkItem(_ => { // Perform a task that last for about a second: Thread.Sleep(1 * 1000); // Stop animation: InvokeOnMainThread(() => { ProgressIndicator.StopAnimation(this); DoButton.Enabled = true; }); [...] read more
multithreading
cocoa
osx-mavericks
monomac
6votes
3answers

Android NDK produce unreasonable big binaries, how to optimize .so size?

I have notice that Android NDK (r6b in my case) produce unreasonable big resulting .so files. For example, in my case I have ~150-200 lines of C++ code (6 native methods and 3 C++ simplest classes) and this native code produce 60kb (!) .so with enabled exceptions and RTTI or [...] read more
android
android-ndk
5votes
2answers

Xamarin app crashes on startup on device, works fine in simulator

Would appreciate any suggestions, using SDK6.1 with Xcode 5 on OS 10.8 The app crashes right after the splash and does not get to the debugger at all. this happens on the TestFlight released version as well. Tried on another computer with same results. Even tried to create a new [...] read more
ios
iphone
xamarin.ios
xamarin
5votes
1answer

When using ExitWindowsEx, logoff works, but shutdown and restart do not

When I call logoff, it works. But shutdown and restart don't work. Everything looks OK. I looked at other examples on SO and else where and the code looks pretty uniform across most places. So I'm thinking it might be something other than the code. I'm running as admin and [...] read more
c#
winforms
4votes
1answer

Huge amount of mystic crashes of WP8 app

I've published an app with integrated hockeyapp. But Windows Phone dashboard crash report contains mystic crashes that are not in hockeyapp. According to stacktrace they are native (OS crashes). App is 8.0 DirectX + Xaml app. Crashes are generated by 8.1 devices. 8.0 devices worked perfectly. I've tested app on [...] read more
windows-phone-8
4votes
6answers

Android's GNU STL shared library can't be found with System.loadLibrary

I've compiled a shared library with android-cmake and the NDK against libstdc++, and as per android-ndk-r7/docs/CPLUSPLUS-SUPPORT.html I'm trying to load gnustl_shared before loading my library: static { System.loadLibrary("gnustl_shared"); System.loadLibrary("MathTest"); } I can see this being done for instance here but I get an exception: 01-03 20:02:42.307: E/AndroidRuntime(569): Caused by: java.lang.UnsatisfiedLinkError: [...] read more
android
stl
android-ndk
4votes
1answer

Why don't you get full stack traces when enabling the user mode stack trace?

I'm troubleshooting some memory fragmentation problems and I've been trying to figure out why things are being allocated and who's ultimately doing the allocation. So I enabled usermode stack traces for the process (+UST flag in gflags) and got a dump. When I analyze the dump and use the !heap [...] read more
debugging
windbg
gflags
3votes
1answer

FATAL error ST-Link No MCU device found

I'am using IAR Workbench and I am having hard time to flash my STM32F407VG I got: > FATAL error ST-Link No MCU device found. * The USB cable connecting the laptop and the MCU is new so I don't think it's the problem. * ST-Link en.stsw-link009 is installed When I [...] read more
embedded
microcontroller
stm32
3votes
4answers

Need help debugging why a shared library fails to load. Android NDK

I am trying to load a shared library using: System.loadLibrary("sharedC"); sharedC is dependent on 2 other shared libraries sharedA and sharedB, all three were made using the standalone toolchain and are included as prebuilt shared libraries. I load sharedA and sharedB before sharedC and I know of no other dependencies. [...] read more
android
android-ndk
shared-libraries
2votes
1answer

Starting Redis on Windows failing

I'm trying to start Redis on Windows 10. When I run redis-server.exe I get the following message though: C:\Program Files\Redis>redis-server.exe [4680] 01 Jun 19:57:30.844 # The Windows version of Redis allocates a memory mapped heap for sharing with the forked process used for persistence operations. In order to share this [...] read more
windows
redis
redis-windows
2votes
0answers

Android NDK: Call to System.loadLibrary Results in SIGSEGV Code=1

I have a massive C/C++ library that I'm trying to use through JNI for an Android project. It's comprised of several classes that were originally written for MFC and we've ported them over for execution on the Android environment. The library builds fine (at least according to ndk-build). The size [...] read more
c++
android-ndk
jni
sigsegv
loadlibrary
2votes
1answer

Loading ResourceDictionary in code behind in UWP/C++

I'm trying to load, in runtime, ResourceDictionary that is stored in a file. In C# it looks simply as ResourceDictionary resourceDictionary = new ResourceDictionary(); resourceDictionary.Source = new Uri("ms-appx:///!UWP/Styles/UWPDictionary.xaml", UriKind.Relative); Application.Current.Resources.MergedDictionaries.Add(resourceDictionary); but same code (in c++/cx) is not working: auto rd = ref new ResourceDictionary(); rd->Source = ref new Uri("ms-appx:///!UWP/Styles/UWPDictionary.xaml"); Application::Current->Resources->MergedDictionaries->Append(rd); [...] read more
uwp
win-universal-app
c++-cx
2votes
0answers

linker script go wrong

Here is the linker script linked by arm-none-eabi-ld OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) #define DDR_START 0x80000000 #define DDR_LEN 512M SECTIONS { . = DDR_START; .ivt : { . = . + 0x400; *(.ivt) } .boot_data : { __start_boot_data = .; *(.boot_data) } /* aligned to ease the hexdump read of [...] read more
embedded
linker-scripts
2votes
0answers

Universal App with localized app name crashes

After a small update to my app, it crashes quite often with the following stack trace: Frame Image Function Offset 0 KERNELBASE.dll RaiseException 0x00000036 1 mrmcorer.dll Microsoft::Resources::ReportFatalException 0x00000052 2 mrmcorer.dll Windows::ApplicationModel::Resources::Core::CResourceManagerFactory::get_Current 0x0002b1b0 3 mrmcorer.dll Windows::ApplicationModel::Resources::Core::CResourceManagerFactory::GetCurrentResourceManagerInternal 0x0000004a 4 mrmcorer.dll _GetResourceManagerForCurrentApplicationInternal 0x00000026 5 mrmcorer.dll GetStringValueForManifestField 0x00000140 6 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplication::SetAppDisplayName 0x00000048 7 twinapi.appcore.dll [...] read more
windows-phone-8.1
win-universal-app
2votes
1answer

How to diagnose a corrupted suffix pattern in a mixed managed/unmanaged x32 .NET application

I've got a .NET application that pinvokes several libraries, all 32 bit (the application is 32 bit as well). I recently started getting crash bugs that occurred when the GC started freeing memory, and when I attached I saw that it was an access violation. After some web searches, I [...] read more
c#
pinvoke
windbg
unmanaged
2votes
2answers

C Returned char from GetSaveFileName() contains null characters

I'm using the following code to get the filepath to save to for use with tinyxml2: OPENFILENAME ofn; char szFileName[MAX_PATH] = ""; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = NULL; ofn.lpstrFilter = (LPCWSTR)L"XML Files (*.xml)\0*.xml\0All Files (*.*)\0*.*\0"; ofn.lpstrFile = (LPWSTR)szFileName; ofn.lpstrFile[0] = '\0'; ofn.nMaxFile = MAX_PATH; ofn.Flags = OFN_EXPLORER | [...] read more
c++
char
savefiledialog
1vote
0answers

Internet Explorer 11 installation fails with errorcode 9C59

I get an error with installing IE11 on Windows 2008 R2 The final errorcode is: Setup exit code: 0x00009C59 (40025) The first reported error is: 'C:\Windows\SysNative\dism.exe .. exited with exit code 0x00000002 (2) The last lines from the log 00:11.918: INFO: Launched package installation: C:\Windows\SysNative\dism.exe /online /add-package /packagepath:C:\Windows\TEMP\IE1E82C.tmp\IE11-neutral.Downloaded.cab /quiet /norestart [...] read more
installation
windows-server-2008-r2
internet-explorer-11
1vote
1answer

How to debug an RPM that will not uninstall

I've built an RPM using redline rpm library for java. When I try to uninstall the rpm it says it was removed but when I do a list it is still there and says it is still installed. Here is the results of my uninstall with as much debug as [...] read more
rpm
1vote
0answers

C - Get File Bytes as Unsigned Int

I need the bytes of a BIN file converted to a unsigned int, in this format (JavaScript): p.write4(shellcode.add32(0x00000000), 0x00000be9); p.write4(shellcode.add32(0x00000004), 0x90909000); p.write4(shellcode.add32(0x00000008), 0x90909090); p.write4(shellcode.add32(0x0000000c), 0x90909090); p.write4(shellcode.add32(0x00000010), 0x0082b955); p.write4(shellcode.add32(0x00000014), 0x8948c000); p.write4(shellcode.add32(0x00000018), 0x415741e5); p.write4(shellcode.add32(0x0000001c), 0x41554156); p.write4(shellcode.add32(0x00000020), 0x83485354); p.write4(shellcode.add32(0x00000024), 0x320f18ec); p.write4(shellcode.add32(0x00000028), 0x89d58949); p.write4(shellcode.add32(0x0000002c), 0x64b948c0); p.write4(shellcode.add32(0x00000030), 0x77737069); p.write4(shellcode.add32(0x00000034), 0x49000000); p.write4(shellcode.add32(0x00000038), 0x4120e5c1); p.write4(shellcode.add32(0x0000003c), 0x000200bc); p.write4(shellcode.add32(0x00000040), [...] read more
c
1vote
1answer

PIC32MX dma not triggered by adc

I’m trying to make a little application on the pic32mx795f512l but I can’t get it to work. What I want to achieve is that adc continuously gets the current analog value from channel 0 with the highest possible rate. If the 16 Word buffer is filled, it should trigger the [...] read more
embedded
microchip
dma
adc
pic32
1vote
1answer

Decoding flags are not working correctly

I have designed some flags: enum ImportAssignment { OCLMChairman = 0x00000001, OCLMOpenPrayer = 0x00000002, OCLMClosePrayer = 0x00000004, OCLMConductorCBS = 0x00000008, OCLMReaderCBS = 0x00000016, PTChairman = 0x00000032, PTHospitality = 0x00000064, WTConductor = 0x00000128, WTReader = 0x00000256 }; In my dialog I read/write the flags from/to the registry: void CImportOCLMAssignmentHistoryDlg::ReadSettings() { m_dwImportFlags [...] read more
c++
mfc
flags
1vote
1answer

Xamarin App won't debug on iPhone Plus

I'm building a Xamarin.Forms / iOS app that is going to usually be used on the iPhone Plus but am unable to debug the app on this particular device. I can run/debug my app on the iPhone Plus simulator (9.2) without a problem. I can also deploy it to a [...] read more
xamarin
xamarin.ios
xamarin-studio
iphone-6-plus
1vote
1answer

fatal error has been detected by the Java Runtime Environment: OpenCV ellipse detection in Java

We tried to convert the c++ Code from Detection of coins (and fit ellipses) on an image into Java. After solving the first problem in the thread Problems with OpenCV ellipse detection in Java, starting the program with the parameters 2 PathToThePicture leads to following fatal error # # A [...] read more
java
c++
opencv
image-processing
javacv
1vote
1answer

Accessing COM Interface from C++ COM Server that doesn't register via C#

I've been asked to integrate with an already-shipped product that is a COM server. Along with this product was provided a .tlb file. I've used tlbimp to export the tlb to primary assembly and I've included that in my C# project. When I attempt to execute my COM client I [...] read more
c#
c++
visual-studio-2012
com
1vote
2answers

Error in my logout section of my program in C#, can i get some help?

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.Win32; using System.Runtime.InteropServices; [Flags] public enum ExitWindows : uint { LogOff = 0x00, Force = 0x04, } [Flags] enum ShutdownReason : uint { MajorApplication = 0x00040000, MajorHardware = 0x00010000, MajorLegacyApi = 0x00070000, MajorOperatingSystem [...] read more
c#
.net
windows
winapi
logout
0votes
4answers

MacBook OS X applications crashing on startup

Closed my computer last night, went home. Opened it and it had restarted. Now when I open a couple programs such as Adobe Fireworks or Appcelerator Titanium they throw up a nasty error like below. Other programs (Chrome, Firefox, Textmate, Versions) work fine. Any thoughts on this? I haven't owned [...] read more
macos
crash
0votes
0answers

Vulkan: vkCreateGraphicsPipelines: Access violation reading location 0x00000016.(nvoglv32.dll)

Im still stuck same problem for like two weeks and dont know what im supposed to do. Im currently writing a vulkan renderer that is simply supposed to draw a single triangle but i cannot figure out why vkCreateGraphicsPipelines throws the same exceptions every time. In case it helps im [...] read more
c++
shader
vulkan
0votes
0answers

Building example AppRTC android app with WebRTC 1.0

I took the AppRTC Example App Code and converted it to a gradle project. I then added the WebRTC 1.0 depencency. The project compiled successfully into an apk that I was able to run. But while trying to call a room on the appr.tc url, I get the following error [...] read more
android
webrtc
0votes
0answers

Why is Clang crashing?

I built Cmake using cmake -G"Visual Studio 12 2013" -T"LLVM-vs2013" ..But I have a weird problem with compiling libCinder. Clang keeps crashing, I'm wondering what's going on. I'm using Visual Studio 2017 on Windows 10. Here is the Clang crash message: 1>Assertion failed: Content.size() != 0, file C:\src\llvm_package_325576\llvm\tools\clang\lib\AST\CommentParser.cpp, line 561 [...] read more
c++
visual-studio
clang
clang++
llvm-clang
0votes
1answer

win7 unable to join openldap domain: LDAPMessage searchRequest(4) "<ROOT>" baseObject

my Win7 machine is unable to join my linux openldap domain. In wireshark I can see that win7 machine sends CLDAP search message to openldap with the following parameter: LDAPMessage searchRequest(4) "ROOT>" baseObject protocolOp: searchRequest (3) searchRequest baseObject: Filter: (&(&(DnsDomain=mydomain.com)(Host=ZAK))(NtVer=0x00000016)) ..................................... AttributeDescription: Netlogon However, in my LDAP entries none of [...] read more
openldap
0votes
1answer

Reading Assembly Code (Bomb lab phase 5 help)

I have to decode this assembly language for the bomb lab: Dump of assembler code for function phase_5: 0x08048e79 <+0>: push %ebx 0x08048e7a <+1>: sub $0x28,%esp 0x08048e7d <+4>: lea 0x1c(%esp),%eax 0x08048e81 <+8>: mov %eax,0xc(%esp) 0x08048e85 <+12>: lea 0x18(%esp),%eax 0x08048e89 <+16>: mov %eax,0x8(%esp) 0x08048e8d <+20>: movl $0x804a9de,0x4(%esp) 0x08048e95 <+28>: mov 0x30(%esp),%eax [...] read more
assembly
x86
reverse-engineering
0votes
1answer

Redis occasional hangs

We have a single standalone Redis (2.8.2104) for Windows node running on a server. Two other server are communicating with this instance. We use it with SignalR and for caching. The dump has a size of about 700MB From time to time we have hangs for 1-3 minutes. After this [...] read more
c#
redis
stackexchange.redis
0votes
1answer

Cross Compiling GSL for Android

CROSS COMPILING GSL FOR ANDROID I am attempting to cross compile the GNU Scientific Library (GSL) for Android 4.1 using Autotools. My build and host are as follows: build="i386-apple-darwin10.8.0" host="arm-linux-androideabi" Autotools versions: GNU Automake version 1.11.3 GNU Autoconf version 2.68 GNU Libtool version 2.4.2 My goal is to compile an [...] read more
android
android-ndk
cross-compiling
elf
gsl
0votes
2answers

WinDbg with dump files when you have a classic ASP app which uses a lot of .Net via interop

Ok, first please don't ask why this application is the way it is. This is a classic ASP application which in several areas uses .Net and COM and some of that .Net also reaches into COM! It's all to do with code reuse really, at some point .Net was introduced [...] read more
.net
memory-leaks
asp-classic
windbg
0votes
1answer

Return array, ctypes

I am a really newbie using ctypes. I am loading a windows dll file, and trying to read the array GetDfuFileInfo returns. I actually ended up on loading the file in ctypes because I dont know how to pass a dfu_file* pointer to the GetDfuFileInfo function. Is this even possible? [...] read more
python
c++
ctypes
0votes
2answers

Xamarin.iOS Debugger doesn't attach

We have a specific app that the debugger just won't attach with Xamarin Studio. We have tried the latest Stable and Beta channels with no luck. It happens in the simulator or on the device. When the debugger detaches, we can see this in XCode's console: Jun 18 15:41:51 Hitcents-iPad-2 [...] read more
c#
ios
xamarin.ios
xamarin
0votes
1answer

in C++ "unhandled exception at 0x778215de in prject1.exe: 0xC0000005:Access violating writing location 0x00000016"

When I am debugging a project, gives me an error on the window > unhandled exception at 0x778215de in prject1.exe: 0xC0000005: Access violating writing location 0x00000016 And in mlock.c shows me that code lines: void __cdecl _unlock ( int locknum ) { /* * leave the critical section. */ LeaveCriticalSection( [...] read more
exception
unhandled
0votes
1answer

iOS Simulator Stalls

I am running Mountain Lion and XCode 4.4.1. I am trying to run the iOS Simulator but it will show the image of the iPhone but no OS shows up inside the phone. I have looked at the Console Log and found a crash with the following code Process: iPhone [...] read more
xcode
macos
ios-simulator
0votes
1answer

IIS6 Metabase and Configuration Compatibility feature install fails on Windows 7

I'm trying to install the "IIS6 Metabase and Configuration Compatibility" feature on my Windows 7 Pro (64 bit) machine so I can use IIS with my VS2010 installation. Unfortunately, every time I go to install said update from 'Control Panel->Programs and Features->Turn Windows Features On or Off', it fails with [...] read more
iis
windows-7
-2votes
1answer

iOS app Crashes on Start Up

I developed an application with Xamarin studio. It runs completely fine with the iPhoneSimulator. I was able to run Ad-Hoc | Iphone and it compiles and actually saves the IPA directly to my phone. When I click the app it launches the load screen and crashes within 1 second. I've [...] read more
ios
xamarin.ios

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
  3. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0