# Windows error 0x00000014, 20

## Detailed Error Information

Message The system cannot find the device specified. winerror.h

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

### CREATE_DELETE_LOCK_NOT_LOCKED[2]

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

### 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.
Flags SuccessThis 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. false Microsoft false false 0 (0x000) FACILITY_NULL[3][1] The default facility code.[3][1] 20 (0x0014)

## Questions

### Indexing .PDF, .XLS, .DOC, .PPT using Lucene.NET

I've heard of Lucene.Net and I've heard of Apache Tika. The question is - how do I index these documents using C# vs Java? I think the issue is that there is no .Net equivalent of Tika which extracts relevant text from these document types. UPDATE - Feb 05 2011 [...] read more
.net
asp.net
lucene
solr
lucene.net

### 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

### How do I read an Xcode crash report?

I have an app that I just submitted it to the app sore (The app was developed for me as I do not know iOS development I do however know know other coding languages). Apple rejected the app saying that is crashed (The strange thing is is never crashed in [...] read more
ios
iphone
xcode
symbolicatecrash

### android error dynamically loading libc++.so native library

I am trying to build a proof-of-concept android application which uses OpenSSH code to establish a SSH session with a server. For that I am using android sources to build the required libraries and then pull them up to an AndroidStudio native project where everything should be packed and installed [...] read more
android
c++
java-native-interface
native

### core file memory analysis verification

An application is generating a core file. Here is the core info. The error stack was obtained and the objective is to check the data content within the myStruct variable as this is what gets passed into myFunction when the core occurs. (gdb) where #0 0x000000000041bba1 in myFunction (myStruct=0x7ffff9dd0c20) at [...] read more
c
gdb
coredump

### "Anomaly" in signed integer in C

I'm currently writing a lecture on ARM optimization, specifically on vector machines such as NEON as the final target. And since vector machines don't fare well with if-else slaloms, I'm trying to demonstrate how to get rid of them by bit-hacking. I picked the "saturating absolute" function as an example [...] read more
c
optimization
integer
arm
bit-manipulation

linux
elf

### Error installing IE11 - prerequisite update KB2834140

I'm trying to upgrade Internet Explorer my Windows 7 (x64) development VM from IE8 to IE11. Both the online and offline installers fail with a bland error message: enter image description here [https://i.stack.imgur.com/0dueo.png] The troubleshooter tells me nothing, but the IE11_main.log reveals: 00:04.524: INFO: Download for KB2834140 initiated. Downloading http://go.microsoft.com/fwlink/?LinkID=303935 [...] read more
windows-7
installation
internet-explorer

### Error "ASP 0115 a Trappable Error Has Occurred" after Microsoft patch CVE-2019-1367

JSCRIPT UNEXPECTED EXCEPTIONS After Windows Server patch Vulnerability (CVE-2019-1367) released in 23. September * Windows Server 2019 (KB4522015) https://support.microsoft.com/en-us/help/4522015/windows-10-update-kb4522015 * Windows Server 2016 (KB4522010) * Windows Server 2008 R2 for x64-based Systems Service Pack 1 (KB4522007) * Windows Server 2012 (KB4522007) * Windows Server 2012 R2 (KB4522007) Updated 07.10.2019 Also [...] read more
asp-classic
jscript

### How do you use printf in x86 assembly in Visual Studio 2017?

Unhandled exception at 0x777745BA (ntdll.dll) in MASM1.exe: 0xC0000005: Access violation writing location 0x00000014. I'm using x86 assembly in visual studios 2017 and it keeps returning this error I have included all of the libraries and installed windows 10 sdk. I am basically stumped as of why this is returning this [...] read more
visual-studio
assembly
x86
masm

### My program is crashing at 0x16 even with my ROP chain

So I recently started working on my binary which is vulnerable to Use-After-Free. I found it too easy to just jump to secret(). So I added a variable to the _DATA section and set its value to 0. and then I added a hard coded check in secret: if(check == [...] read more
c
arm
exploit

### C++ stdout is NULL in Multithreaded program

I've created project using CMake in VS. Later I've add boost and gmock usage. GMock forced me to set /MT flag on all project in solution (main exe, plugins, dll, UT). Now I'm facing strange problem. Log4Qt is my logging library. During startup when loggers are created deep inside this [...] read more
c++
cmake
gmock

### classic BPF on Linux: filter does not work

I'm trying to test classic BPF for packet filtering by attaching it to raw socket. I want to catch TCP packets with first byte of source port == 8 (tcpdump 'tcp[1:1] = 0x50'), but I see no incoming packets on the socket. Without filter my code works OK. Here is [...] read more
c
linux
sockets
networking
bpf

### Importing MATLAB engine on Python using TextMate - Python quits unexpectedly

I am trying to call a MATLAB function from a Python script. I installed the MATLAB Engine API as instructed by the Mathworks website, and then importing the engine in my script using: import matlab.engine (using TextMate on Mac OS.) However I was getting an error saying the engine installation [...] read more
python
matlab
python-2.7
matlab-engine

### CubeMX-generated USB HID device sends wrong data when both endpoint and PMA address are changed

I'm debugging a problem with a composite device that I'm creating, and have recreated the issue in freshly-CubeMX-generated HID-only code, to make it easier to resolve. I've added small amount of code to main() to let me send USB HID mouse-clicks, and flash an LED, when the blue-button is pressed. [...] read more
usb
stm32
cubemx
pma
stm32f3

### Python Decompile APK using ApkTool and Subprocess

I am builing a Python Application that decompiles Android APK makes some modifications and recompiles it. Here is the code: from shutil import copyfile # Copy the APK to the output directory. copyfile('./source/rat.apk', './output/rat.apk') # Decompiles the APK. subprocess.call(['apktool','d','./output/rat.apk','-f'], stdout=FNULL, stderr=subprocess.STDOUT) # Modifies address and port. with open('./output/RAT/app/src/main/res/values/strings.xml','w+') as netaddress: [...] read more
android
python
file
subprocess
apktool

### 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
java-native-interface
segmentation-fault

I have little to no understanding how low-level programming languages work, so please bear with me. I need to load compiled C (.so file) library into android 6.0+ (SdkVersion: 23+) Using: static { System.loadLibrary("dsdrv"); } I get an error: FATAL EXCEPTION: main Process: com.logicants.scanner3, PID: 11415 java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.logicants.scanner3-1/lib/arm/libdsdrv.so" [...] read more
android
c
android-ndk

### Windows RPC object marshalling

I'm trying to use Windows RPC for communcation between two processes (C/C++, 32bit, Win7). I've followed the example here Instruction to RPC and successfully got RPC to work. Now I have difficulties getting the proxy / stub thing to work too. The IDL file looks like this: [ uuid(3cb112c0-688a-4611-83b6-31d33d87ea28), object [...] read more
c++
com
rpc
midl

### What is gcc doing under a bitwise complement, and a negative left shift count when constrained by integer size?

I'm trying to eliminate as many gcc warnings as possible in some old code, trying to get "cleaner" code by compiling it with a more recent toolchain. The code writes and reads registers (or memory) on ARMv6 hardware, I can't say I completely understand what it actually does but that's [...] read more
c
gcc
1vote

### Hyper-V Core Server 2019 ignoring power plan thresholds

I am attempting to tweak Hyper-V Core Server 2019 (host) power thresholds, however my attempts have failed so far. Scenario The newly created Hyper-V 2019 Server (part of Workgroup, not yet a Domain) has been attached to an external UPS. Battery status is provided through a USB cable. The UPS [...] read more
hyper-v
ups
1vote

### Mellanox MT27500 Link to Port 1 is Down

I have Mellanox MT27500 dual port card which is installed on HP SL250s. Ubuntu 14.04.5 with 3.13.0-24-generic kernel is running on the server. Both port1 type and port 2 type are defined as eth. I have connected port 1 and port 2 to switch with same type of cable but [...] read more
linux-networking
mellanox
1vote

### 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

### Check library built flags or options (-frecord-gcc-switches)

I'd like to check the library under investigation what flags and options were built with? I'm trying to use gcc compiler with option -frecord-gcc-switches to understand on my simple shared library but with no luck. The following is the piece of code that form a shared library : #include "shared.h" [...] read more
linux
gcc
dynamic-library
1vote

### Python error when playing music with Pyglet: UserWarning: exception: access violation reading 0x00000014

I tried several iterations of this code using methods, schedules and others. I managed to get over "access violation writing error" but "access violation reading error" is still present no matter what I try. Here is the code: import pyglet window = pyglet.window.Window() window.set_caption('First Pyglet Experiment') player = pyglet.media.Player() player.queue(pyglet.resource.media('test [...] read more
python
exception
pyglet
1vote

### SWIFT : How to Share multiple Photos or Video on Facebook using FBSDKShareKit?

I am using FBSDKShareKit to share video and images on facebook. Here is the code:- if self.postObject.videoUrl.count > 0 { let content = ShareMediaContent() for VideoData in self.postObject.postedMedia { let video = ShareVideo.init(data: VideoData) content.media.append(video) } for thumb in self.postObject.postedVideoThumb { let photo = SharePhoto(image: thumb, userGenerated: true) content.media.append(photo) } [...] read more
ios
swift
xcode11.3
1vote

### Access build-id at runtime

I am trying to figure out how to access the build-id generated by the linker at runtime. From this page, https://linux.die.net/man/1/ld When I build a test program like: % gcc test.c -o test -Wl,--build-id=sha1 I can see that the build ID is present in the binary: % readelf -n test [...] read more
c
gcc
elf
1vote

### Nativescript - iOS build fails with error code 2

I have been trying to build the iOS version using Nativescript sidekick for two days now without luck. It used to build just fine in the past. Environment information 1. Sidekick Version: 1.19.2-v.2019.11.18.2 (latest) 2. NativeScript CLI version: 6.2.2 3. CLI extension nativescript-cloud version: 1.19.3 4. CLI extension nativescript-starter-kits version: [...] read more
ios
nativescript
nativescript-angular
1vote

### Linking error while cross compiling Qt5 for Beaglebone

Dear stackoverflow community. I'm cross-compiling Qt 5.12 for my Beaglebone Black with EGL support. The host OS is Ubuntu 18.04.1 LTS (x64) running in a VM. I have installed any possible dependcies (I could find in different posts) on the target (and some on the host as well) and copied [...] read more
qt5
cross-compiling
beagleboneblack
1vote

### Unhandled exception at 0x77081d76 (ntdll.dll) in Stereo Vision.exe: 0xC0000005: Access violation writing location 0x00000014

I run (debug) my program about stereo vision and get this error. I also re-install Visual Studio 2010 Ultimate, but this issue still appeared. > Unhandled exception at 0x77081d76 (ntdll.dll) in Stereo Vision.exe: 0xC0000005: Access violation writing location 0x00000014. I know something wrong with my dll or location of my [...] read more
c++
visual-studio-2010
dll
1vote

### how to fix 'Access violation reading location' in this code

run this code i got some error like this ' Exception thrown at 0x778D7FCB (ntdll.dll) in Project1.exe: 0xC0000005: Access violation reading location 0x00000014.' This error occurs in this line ~UnivStudnet() { delete[]major; // error } #include <iostream> #include <cstring> using namespace std; class Person { private: char * name; public: [...] read more
c++
destructor
1vote

### Add Controls To Specific Tab Page in TabControl in C++ Win32

I want to add some controls to the tab page in tabcontrol but it seems that it will be added to all pages and there is not tab page in tabcontrol by default. I have read these links below but they did not help me and in some parts of [...] read more
winapi
tabcontrol
1vote

### C++Builder XE10.2 [ilink32 Error] Fatal: Exceeded memory limit for block Line number cache in module <somethingsomething.cpp>

Completely stuck on linking stage, when migrating group of projects to C++Builder XE10.2. Win32 target, clang compiler. The module, which causes ilink32 to fail with abovementioned error, uses boost::spirit classic. What is puzzling, is that another project from the same group passes linking OK, while using boost::spirit as well, with [...] read more
c++
c++builder
boost-spirit
1vote

c
1vote

### Error in std::getline function (fstreeam _Lock())

I keep getting an error when call std::getline, the debugger shows a break in a fstream function """virtual void __CLR_OR_THIS_CALL _Lock()""" Here is my code (Read File function): string GetFile(const string& fileName) { string line; string output; ifstream myfile (fileName); myfile.open(fileName);//.c_str()); if (myfile.is_open()) { while ( getline (myfile,line) ) { [...] read more
c++
file
locking
getline
1vote

### Receiving "Illegal Instruction" when executing glibc's ld-2.6.1.so

Background "OS": Stripped down Linux, very customized, no internet access (no yum, apt-get, etc) Kernel: 2.6.19.1 Target: 32-bit, armv5te Current LibC: 2.3.6 Target LibC: 2.6.1 Issue Received an .ipk from a 3rd party vendor containing an updated version of glibc. Started by investigating the compatibility of the shared objects contained [...] read more
linux
ld
glibc
illegal-instruction
1vote

### .NET application handle leak, how to locate the source?

I have a .NET application running in production environment (WINDOWS XP + .NET 3.5 SP1) with a stable handle count around 2000, but in some unknown situation, its handle count will increase extremely fast and finally crash itself(over 10,000 which monitored by PerfMon tool). I've made a memory dump from [...] read more
windows
performance
memory-leaks
windbg
1vote

### libpng 1.616 crashing on png_read_png in VS2012 C++

I am on win7 64bit home edition. All of my projects are set to build in a 32bit environment using C++. I have successfully built libpng in debug mode using MDd runtime. I have two active projects. My first project is in VS2010 and my second is in VS2012. Within [...] read more
c++
visual-studio-2012
access-violation
libpng
first-chance-exception
1vote

### OggVorbis ov_open() Throws Access Violation Exception

I'm trying to open an OggVorbis file using the Vorbis SDK/DLLs. ov_open() throws an Access Violation exception 0x00000014. I have checked the file exists: I've opened it with fopen and printed the contents to the console just to check - all went fine! Might not make a difference, but the [...] read more
c++
windows
fseek
oggvorbis
1vote

### Pointer can't get data

I want get the row number of data, but the pointer CvMat* data, CvMat* responses get nothing in main(). The minimal, complete and varifiable example is showed as follow: #include "opencv2/core/core_c.h" #include "opencv2/ml/ml.hpp" #include <cstdio> #include <fstream> #include <iomanip> #define ATTRIBUTES_PER_SAMPLE 9 #define NUM_OF_ALL_SAMPLES 950 using namespace std; int read_data( [...] read more
c++
opencv
pointers
1vote

### Strings from NSUserDefaults not visible, xcode 7.3

Today I upgraded to Xcode 7.3, and I also started getting odd behavior from NSUserDefaults. I don't know if they're related. String values I store in defaults are not visible upon retrieval but they have length and support substring extraction: (lldb) po [[NSUserDefaults standardUserDefaults] objectForKey:UDEmail] (lldb) po [[[NSUserDefaults standardUserDefaults] objectForKey:UDEmail] [...] read more
xcode7
nsuserdefaults
1vote

### FIXED: Access Violation Reading Location (pointer to string array)

FIXED: http://pastebin.com/71QxqGk5 first post/question. So this is C++ and I am trying to print an array of words. #include <cstdlib> #include <iostream> #include <fstream> #include <string> #include <cstring> #include <cctype> #include <ctime> using namespace std; //structs struct Input { int size; string* word; bool is_palindrome[]; }; //prototypes bool openInputFile(ifstream &ifs); [...] read more
c++
arrays
pointers
struct
access-violation
1vote

### C++ CURL post file and then get response error

I'm trying to POST a file to an API and then check the response for various things. But whenever I try to POST a file that is larger than 0 bytes i get an error: First-chance exception at 0x77AADF63 (ntdll.dll) in Test.exe: 0xC0000005: Access violation writing location 0x00000014. The relevant [...] read more
c++
curl
1vote

### LibVLC Access Violation

I am trying to set up logging in LibVLC, and am running into some problems. The function I am using is libvlc_log_set_file, here are the docs:LibVLC logging docs Here is the code I have now: //header private: FILE * logFile; //source logFile = fopen(path.c_str(), "w"); if(logFile != NULL) { libvlc_log_set_file(_libvlc_instance, [...] read more
c++
access-violation
libvlc
nw.js
ntdll
1vote

### GL_UNSIGNED_SHORT_5_6_5 undeclared?

I have a problem loading a texture using SDL library. Usually I make programs on Linux but I try to create a code that is compatible with Visual Studio also. On Linux are everything OK but on Visual Studio it crashes in "GL_UNSIGNED_SHORT_5_6_5" in the glTexImage2D(...) function. Below is a [...] read more
c++
visual-studio-2010
opengl
sdl
glteximage2d
1vote

### fstream getline() Unhandled exception

am trying to read a file so am doing:- void Load(const char * Name){ fs.open(Name, std::ifstream::in); char temp[256]; if(fs.is_open()){ while (!fs.eof()) { fs.getline(temp , 256); Lines.push_back(new std::string(temp)); } } } but it breaks on the getline -> Unhandled exception at 0x7730B4D9 (ntdll.dll) in GameCore.exe: 0xC0000005: Access violation writing location 0x00000014. [...] read more
c++
visual-c++
getline

### Ubuntu 14.04 Digital Audio stops working

I have an Ubuntu 14.04 HTPC for quite some time. It's connected by toslink to a logitech z5500. Sound was working, but suddenly stopped... I've followed almost every guide and how-to to fix my sound, but it won't seem to help. Some information: !!################################ !!ALSA Information Script v 0.4.63 !!################################ [...] read more
ubuntu
audio
spdif

### com.example.androiddata.databinding.FragmentDetailBindingImpl.executeBindings(FragmentDetailBindingImpl.java:147)

I've already cleaned my project , Rebuild was done...but still no use. Then invalidated caches and restarted the project that too didn't helped me. I still receive this error from my logcat 2020-06-18 01:36:13.602 16501-16501/com.example.androiddata I/monsterLogging: Selected item: Grade 2 2020-06-18 01:36:13.737 16501-16501/com.example.androiddata I/monsterLogging: Selected Grade level: Grade 2 2020-06-18 [...] read more
android
kotlin

### Disassemble instruction set for 8051 microcontroller

I have the following hex opcode sequence for a 8051 microcontroller 785679107A247BFD7C347D407E51745568F869F96AFA6BFB6CFC6DFD6EFE I found this repo that converts hex to instruction sequences https://github.com/anarcheuz/8051-disassembler. Using that I was able to get the following assembly instructions x00000000: 37 38 MOV 38 (R0,#immed) 0x00000002: 35 ANL A,@R0 0x00000004: 37 39 MOV 39 (R1,#immed) [...] read more
assembly
reverse-engineering
microcontroller
disassembly
8051

### EXC_BAD_ACCESS (code=1, address=0x0) when calling "glClear(GL_COLOR_BUFFER_BIT);" in hello world program of glfw

I'm trying to install OpenGL in CLion on MacOS. My program compiles but when I run it I get this crashreport: Time Awake Since Boot: 6200 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination [...] read more
c++
opengl
glfw

### Is there a reason for the seemingly random twenty bytes at location 0x284 in the compiled code from gcc?

The following code illustrates: #include <stdio.h> #define NUMBER_1 1 int main(void) { int a; a = NUMBER_1; printf("Output: %d\r\n", a); return 0; } Changing the define to 2 causes the 20 bytes to change completely. I'm using gcc version 7.5.0 under ubuntu version 18.04. I suspect this is some sort [...] read more
c

### App-crash on HoloLens(1st. gen)-Emulator when enabling 'Spatial Awareness System' in MRTK 2.3

i recently set up required software for development for the Microsoft HoloLens(1st. gen) with the newest version of the HoloLens(1st. gen) emulator (followed the MRTK-Guide: https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/GettingStartedWithTheMRTK.html#get-the-latest-mrtk-unity-packages ). I already tested some example scenes from the MRTK on the emulator and everything works as expected. However, when i test the SpatialAwarenessMeshDemo, [...] read more
windows
unity3d
hololens
windows-mixed-reality
hololens-emulator

### ESP32 as WiFi access point crashes on connection

I'm programming an ESP32 via ArduinoIDE and stumble upon a strange problem. It operates as WiFi access point, the code is quite simple and straight-forward: IPAddress apIP(192,168,1,1); WiFi.mode(WIFI_AP); WiFi.softAP("MyESP32"); WiFi.softAPConfig(apIP,apIP,IPAddress(255,255,255,0)); Now when a client connects to this AP, it often prints out these error messages: dhcps: send_nak>>udp_sendto result 0 dhcps: [...] read more
arduino
wifi
arduino-ide
esp32
access-point

### ESP32 OTA update keeps crashing on start

I'm trying to OTA update the ESP32 by letting it make a get request to a file on Azure blob storage. For some unknown reason it won't let me use the WifiClient.connect() function, since it always returns a 0. So now I'm using the HTTPClient library to make a get [...] read more
c++
azure
arduino
esp32

### hdiutil attach/detach/convert results to "resource temporarily unavailable"

Since MacOS 10.13 I have the following problem. 1. /usr/bin/hdiutil attach "target/MyDrive-tmp.dmg" -mountroot /tmp /dev/disk3 GUID_partition_scheme /dev/disk3s1 Apple_APFS /dev/disk4 EF57347C-0000-11AA-AA11-0030654 /dev/disk4s1 41504653-0000-11AA-AA11-0030654 /private/tmp/MyDrive 2. /usr/bin/hdiutil detach -force -debug "/tmp/MyDrive" or diskutil eject "/tmp/MyDrive" process_detach: entry with "/tmp/MyDrive" util_verify_dev_entry: entry with "disk4s1". process_detach_deventry: about to unmount_and_eject disk4s1 unmount_and_eject(disk4s1) LetDIDriverSettleDown: calling IOServiceWaitQuiet... [...] read more
macos
terminal
macos-high-sierra

### Arduino Yun Mini Bricked linux (kernel panic) SQUASHFS ERROR, Reflashing with serial YMODEM or Kermit, O WIFI, SD card, Eth, or USB

INTRODUCTION I am actually newbie to this advanced perspective of linux routers based systems as openWRT and i faced a problem with my Arduino Yun Mini board which found to be operated with this firmware for linux interfacing and WiFi module, So: THE PROBLEM: i tried to upgrade the system [...] read more
arduino
openwrt
u-boot
squashfs
kermit

### Reduce flickering when using SetWindowPos to change the left edge of a window

Update 1: Here's the simplified version: So I have a special fixed-size child window that I want to make it stay at the right side of the resizable main window. When users resize the main window by dragging the left/right edge of it, WM_WINDOWPOSCHANGED is sent, the child window will [...] read more
winapi
resize
flicker

### How to send the value 20 from big endian processor to little endian processor?

I have a Sparc processor which stores data in big endian by 32 bits and an Intel processor which stores little endian. How can i send the value 20 from the Sparc processor to the little endian? I am thinking that 20 is represented by 0x00000014 in hexadecimal so the [...] read more
bit
endianness

### How to implement poll function into Linux kernel module?

I'm trying to implement polling functionality into my simple Linux kernel module called gpio_driver for my Raspberry Pi which should notify the user space poll function about the change of state of one of the GPIO pins (button push). What I did in my gpio_driver is set the internal pull [...] read more
c
linux-kernel
linux-device-driver
polling
gpio

### Different Int values for the same value?

I ran into an integer overflow problem, which I managed to solve, but only by trial and error. Since it's an integer overflow problem, I've wrote some code to print out the buffer. The beginning of the buffer is the address where array[0] is stored. Then, I started to pass [...] read more
c
integer-overflow
stack-smash

### crash - adding to a map and set STL - c++

I have a cd , dvd. book media program. Currently, i am trying to add book information to a set. I am getting a nasty crash. error: Unhandled exception at 0x00449d76 in a04xc.exe: 0xC0000005: Access violation reading location 0x00000014. So, obviously its trying to access memory its not suppose to? [...] read more
c++

### DS-5 eclipse debug stuck at waitForTargetToStop

First I follow the DS-5 start demo and can debug my code correctly on the ARM FVP -> VE_Coretex_A9x1. Then I follow the link to enable NEON and it needs to set CPU target in the build, the axf file has been built correctly but the debugger stops to work. [...] read more
eclipse
arm
ds-5

### Discrepancy in behavior of Linux loaders (ld-linux-x86-64) between Glibc 2.12 and Glibc 2.17

I'm trying to compile the same lib on two x86 separate machines. Both use the same toolchain (exactly same set of files) but have different Glibc versions. When I run command LD_DEBUG=libs /lib64/ld-linux-x86-64.so.2 --list ./libl2ps.so I notice the following discrepancy between the 2 Linux loaders: Machine 1 (with Glibc 2.12): [...] read more
shared-libraries
glibc
ldd
rpath

### Cannot load custom ELF executable in GDB

I am currently writing a compiler (http://curly-lang.org if you're curious), and have been encountering a strange bug when trying to run the generated ELF binaries on the latest Linux kernel. The same binaries run fine on older kernels (I've tried on several Ubuntu boxes, uname 4.4.0-1049-aws), but on my updated [...] read more
linux
gdb
elf

### How to extract USB device type and its drive letter from ETW

So I'm writing a simple ETW logger to provide a trigger-event state machine to wake up whenever a new USB device is connected. Using microsoft's Messages analyzer I managed to trace and receive USB "new usb device information" traces using the following filter Microsoft_Windows_USB_USBHUB3.Summary == "New USB Device Information" However, [...] read more
winapi
events
usb
etw

### Breakpoint not working in gdb with QEMU simulating cortex-a8

I am testing some simple code running in the ARM7TDMI, since I haven't found ARM7TDMI simulator on QEMU, I use Cortex-a8 instead (I am not sure if this will lead to bug, total newbie). This is how I run QEMU: qemu-system-arm -machine realview-pb-a8 -cpu cortex-a8 -nographic -monitor null -serial null [...] read more
c
gcc
arm
gdb
qemu

### GDB ARM assembler directives are compiled in a way I don't understand

I have ARM assembly source code: .global _start .text entry: b _start array: .byte 10, 20, 25 eoa: .align _start: ldr r0, =eoa ldr r1, =array mov r3, #0 loop: ldrb r2, [r1], #1 add r3, r2, r3 cmp r1, r0 bne loop stop: b stop Which is a simple [...] read more
gcc
assembly
arm
qemu

### opencv split hsv images

I want to split an image into h,s and v channels. But an error occured every time and the reason seems to be that opencv split function does not work properly. My code: Mat src, srcHSV; Mat srcH; vector<Mat> channels; VideoCapture cap(0); for(int frame = 0; ; frame++) { cap [...] read more
c++
opencv

### cJSON cant parse more than 4 elements

Trying to use cJSON parser with STM32F103C8T6 and KEIL IDE The problem is that the parser works pretty well with up to 4 elements of the JSON string, when trying to add the fifth element it gives up. This code seems to be OK: #include "cJSON.h" const char * my_json_string [...] read more
stm32
keil
cjson

This code generates an error: -------------------------------------------------------------------------------- DEBUGGER EXCEPTION NOTIFICATION PROJECT PROJECT3.EXE RAISED EXCEPTION CLASS $C0000005 WITH MESSAGE 'ACCESS VIOLATION AT 0X7757E12C: WRITE OF ADDRESS 0X00000014'. if Fowner_draw then begin canvas.CopyRect(ClientRect, FOD_canvas, ClientRect); end I found the solution by deleting pasteBmp.free; line from the code below. It seems like each time [...] read more delphi 0votes 0answers ### Connect Mikrobus OLED display with iMX 7 Board I have a i.MX7S board (WARP7) which has extension (Mikrobus standard) and an OLED C Click display (Mikrobus standard). I try many ways but still failed to enable & display something on OLED screen. Here are steps that I did: 1. Plug them together (with Mikrobus standard) 2. Bitbake and [...] read more embedded-linux 0votes 0answers ### Configuring clock peripherals seems to ignore half of my configuration bits. I'm configuring the RCC to activate clock for peripherals. However, when I use the SFRs to check registers, it doesn't match what I programmed. RCC->AHBENR = (uint32_t) 0x000C0004; When I check the AHBENR,the value is 0x14 I previously had only 0x00000014, so I am not sure if I'm compiling a [...] read more stm32 0votes 1answer ### mips exception handling beq not working I am trying to find an exception by comparing the t0 value. I must have something wrong on the hex numbers that i compare the t0 value..do anyone know? sw$v0 save0 mfc0 $t0$13 srl $t0$0 2 andi $t0$t0 0x7c beq $t0 0x00000008 bad_address_load beq$t0 0x0000000a [...] read more
exception
error-handling
exception-handling
mips

### Access violation error when using QTextStream to read from console

I have problem, got access violation when trying to use QTextStream for data reading or writing to console: > First-chance exception at 0x77BD1D76 (ntdll.dll) in ApplicationStub.exe: 0xC0000005: Access violation writing location 0x00000014. Unhandled exception at 0x77BD1D76 (ntdll.dll) in ApplicationStub.exe: 0xC0000005: Access violation writing location 0x00000014. My program is simple: #include [...] read more
c++
qt
console-application
qtextstream

### Ruby on rails segmentation error

When I was trying to run the rails application following segmentation error has occurred: > => Booting Thin => Rails 4.2.6 application starting in development on http://localhost:4000 => Run rails server -h` for more startup options => Ctrl-C to shutdown server Thin web server (v1.7.0 codename Dunder Mifflin) Maximum connections [...] read more
ruby-on-rails
ruby
ubuntu
rubygems

### Access violation reading location 0x00000014. Using Streams

So I have this ifStream and it reads alright from the file. I read one line in order to check the type of item I am reading in. Then After I have read in that i pass the stream to another class which reads some more but when it gets [...] read more
c++
ifstream

### Assembly MIPS - Shift of an address

I'm making some exercises on assembly MIPS(32 bit) and I don't really understand how the left shift by 2 works. I'll add a couple of examples just to explain it better. * Instruction is 0x91050014 I have to take the last 16 bits and then extend them to 32 bits. [...] read more
assembly
bit-manipulation
mips
mips32
machine-code

### Why does the construction of a 'CImage' (GDI+) make the programm crash?

I wanted to try using the class CImage, which comes from GDI+, to load an image and draw it at some place in my Graphical User Interface. However, the programm crashes as soon as I call CImage's constructor, it seems, displaying the error: Unhandled exception at 0x7757D968 (ntdll.dll) in myProgramm.exe: [...] read more
c++
mfc
gdi+

### Translating Mips assembly to machine code: BNE

Given this code: [0x00000000] arraycopy: lw $t0, 0($a0) [0x00000004] addi $a0,$a0,4 [0x00000008] addi $a1,$a1,4 [0x0000000C] sw $t0, -4($a1) [0x00000010] bne $t0,$0,arraycopy [0x00000014] Nop ( means no operation ) Now I'm interested to translate the bne command line to machine code: What I got: 0001 0100 0000 1000 - [...] read more
assembly
mips
machine-code

### 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

### Access violation when dynamically allocating memory

I am writing a program for a project at school that requires us to create a Binary Search Tree based on data read from a file (in this case strings). The tree should allow for duplicates by incrementing an integer value when a duplicate string is entered. The TreeNode is [...] read more
c++
visual-studio

i've successfully cross compiled a c++ library to the android plateform using the android ndk standalone toolchain. i've created a new android application project into Eclipse with a jni dolder and Android.mk file and when i do an ndk-build the building goes well and it adds mylib.so to libs/armeabi folder [...] read more
android
c++
android-ndk
cross-compiling

### Fatal signal 11 (SIGSEGV) at 0x00000014 (code=1), thread 15566

I am trying to add buddy in CSipSimple by the following code . public int addBuddy(String buddyUri) throws SameThreadException { created = true ; if (!created) { return -1; } int[] p_buddy_id = new int[1]; pjsua.start(); pjsua_buddy_config buddy_cfg = new pjsua_buddy_config(); pjsua.buddy_config_default(buddy_cfg); buddy_cfg.setSubscribe(1); buddy_cfg.setUri(pjsua.pj_str_copy(buddyUri)); pjsua.buddy_add(buddy_cfg, p_buddy_id); System.out.println("Buddy Id is "+p_buddy_id[0]); [...] read more
android
fatal-error
crash-reports

### Un-google-able bug in MIPS Assembly

I am writing a program in R3000 MIPS Assembly using the IDE Mars. It's for a class I'm taking. The task is to write a function that iterates through a linked list and removes any nodes with values less than an integer given in an argument. I think I've got [...] read more
assembly
mips
mars-simulator

### Using an object pointer to access its member functions inside another class

I have an account class that has the data members accountNumber, accountBalance, and a pointer to a Person object, accountPerson. All of these are protected because Account is an abstract base class. My program reads info from a file and I am trying to call each objects own readData() methods. [...] read more
c++
pointers
polymorphism
abstract-class

### GraphicsMagick - Identify and remove attached color profile

I have some tiff images that have an embedded color profile (the example one is Canon EOS-1Ds flash). When I convert them to jpeg (gm convert source.tif target.jpeg) the resulting jpeg colours are distorted in browsers (Chrome,Firefox, but not IE) but not in system image viewers. If I open the [...] read more
imagemagick
imagemagick-convert
graphicsmagick
color-profile

### 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

### visual studio 2013 release compilation dont open files

I have searched in other answers but i dont found how to fix it and i cant understand why this happens someone can help? When i compile with debug mode every thing runs ok, even if i change the debug configuration from Multi-threaded Debug DLL (/MDd) to Multi-threaded DLL (/MD) [...] read more
c++
visual-studio-2013

### Overlapping memory addresses in x64 C function from PInvoke

We have a PInvoke as follows: [DllImport(DllName, EntryPoint = "ExternalName", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr ExternalFunction(IntPtr state, IntPtr inputData, int inputIndex, int inputLength, int tailLength); With the C declaration as follows: void * __cdecl ExernalName(void* state, void* inputData, int32_t inputIndex, int32_t inputLength, int32_t tailLength); When [...] read more
c#
c
pinvoke

### What's causing this exception? Using VC++ 2010 with libcurl

I'm using libcurl in VC++ 2010 and getting this error: > An unhandled exception of type 'System.AccessViolationException' occurred in Fourth.exe Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. std::string DownloadFile(std::string Fname, std::string Furl) { CURL *curl; CURLcode res; const [...] read more
c++
visual-studio-2010
exception
libcurl

### glfwWindowShouldClose error

I am currently making a small c++ engine using opengl and glfw and I get a weird error while trying to call the glfwWindowShouldClose(window) function here is my code : #include "Engine\Window.h" #include <iostream> using namespace std; int main() { GLFWwindow* window = 0; Window::InitGLFW(); Window::CreateWindow(window,640,480,"1"); while (true) { if [...] read more
c++
opengl
glfw

### NULL Pointer Returned by fopen - but no Errors

I'm attempting to use fopen to open a file. I'm using an absolute path, the file does exist, and it's not corrupt. Also, all system users have full access to read/write the file. const char* filename = "absolute\\path\\to\\file.something"; const char* mode = "rb"; FILE* file = fopen(filename, mode); std::cout << [...] read more
c++
pointers
null
fopen

### pass parameters to function of dll in python leads to access violation writing 0x00000014

win 7 python 2.7 In python, I call a function in dll using ctype to read flash value in a MCU. But I got the access violation writing 0x00000014 error. dll function: int get_flash_value(int addr, int readlen, char *data) { unsigned char read_data[4096]; int ret; int i; const unsigned int [...] read more
python
c

(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