Windows error 0x0000000D, 13

Detailed Error Information

INVALID_DATA[1]

MessageThe data is invalid.
Declared inwinerror.h

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

MUTEX_LEVEL_NUMBER_VIOLATION[2]

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

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 Code13 (0x000d)

Questions

34votes
4answers

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
9votes
7answers

Crashing due to "No package identifier when getting value of resource number..."

Okay after searching through the various threads that I could find on this topic, and trying everything that seemed to work for the others... I have succumb to the need to post my own issue. As a total noob to Android and Java, you will have to forgive the need [...] read more
java
android
xml
debugging
resources
8votes
3answers

How do I left pad a byte array efficiently

Assuming I have an array LogoDataBy {byte[0x00000008]} [0x00000000]: 0x41 [0x00000001]: 0x42 [0x00000002]: 0x43 [0x00000003]: 0x44 [0x00000004]: 0x31 [0x00000005]: 0x32 [0x00000006]: 0x33 [0x00000007]: 0x34 I would like to create an array of an arbitrary length and left pad it with 0x00 newArray {byte[0x00000010]} [0x00000000]: 0x00 [0x00000001]: 0x00 [0x00000002]: 0x00 [0x00000003]: 0x00 [...] read more
c#
.net
bytearray
padding
6votes
2answers

Cross-Compiled GNU ARM (BeagleBoneBlack) from Windows. Runtime Error on *.elf: "No such file or directory"

I'm in the (very) early stages of developing a UAV flight controller on a BeagleBone Black. I should mention that I'm quite the novice when it comes to the BBB, Linux and embedded systems.My academic focus has been on control theory - this is my first attempt at a practical [...] read more
c++
linux
cross-compiling
beagleboneblack
toolchain
6votes
2answers

Why does this method throw a Segmentation fault?

I am using the jsmn JSON parser (source code) to get some text from a JSON. jsmn stores the data in tokens, but the tokens do not hold any data, they just point to the token boundaries in JSON string instead. For example, jsmn will create tokens like: * Object [...] read more
c
json
parsing
segmentation-fault
token
6votes
3answers

How to fix buffer overflow return address failure?

I've been working on a buffer overflow from Jon Erickson's Art of Exploitation for a few days now, and I don't understand why I'm getting a segmentation fault. As far as I can tell, the return address is being overwritten properly with an address in the NOP sled, but the [...] read more
c
security
debugging
segmentation-fault
buffer
5votes
4answers

gcc arm executable "no such file orr directory", wrong dynamic lib

I am trying to make a usable setup for gcc-linaro-arm-linux-gnueabihf-4.8-2013.11 on windows. Something happens at dynamic link: $(CC)-gcc -o test main.c -Wall -lc The program compiles fine, but when deployed to ARM shows: "No such file or directory" Searching the issue, seems that static build works but executable is huge: [...] read more
gcc
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
0answers

iOS: App crashes due to a dispatch_queue

I am trying to use this code: https://stackoverflow.com/a/14063081/1011125. But on my iPhone 4 (iOS 7), this part let's the whole app crash: dispatch_queue_t queue = dispatch_queue_create("cameraQueue", NULL); [output setSampleBufferDelegate:self queue:queue]; What's wrong with this little snippet? CRASH LOG OS Version: iOS 7.1 (11D169) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) [...] read more
ios
objective-c
grand-central-dispatch
4votes
1answer

simple callback in visual c++

I'm a Linux programmer and new to COM programming and I've inherited a program which I'm now trying to modify. I've got an IDL file with the following dispinterface and I'm trying to set up a callback in C++. I've been searching the web and I've found some stuff with [...] read more
events
visual-c++
com
event-handling
callback
3votes
4answers

Mac OS X: finder window keeps opening by itself and stealing focus

I have a Macbook with Mac OS X 10.4.11 here, with an annoying problem. After starting the computer and logging in, the finder keeps stealing focus. You can go back to your working app, but a minute later, it steals focus again. Even as I'm typing this message, I had [...] read more
mac
finder
focus
3votes
1answer

What is the reason for different performance of the same implementation using icc, gcc and clang?

I have implemented a program for a[i]=a[i-1]+c and I represent it her. I use begin_rdtsc and end_rdtsc to read and store the rdtsc to measure the speedup. The program is as follows, I use x86intrin.h #define MAX1 512 #define LEN MAX1*MAX1 //array size for time measure ments int __attribute__(( aligned(32))) [...] read more
gcc
assembly
x86
simd
icc
3votes
0answers

How to install Zebra ZXP 3 Printer in Windows without printer

While investigating customer problem with Zebra ZXP Series 3 Card printers, I tried to install the printer in Windows. I do not have the actual device at hand, but it is also not needed because the problem we are chasing is some kind of spooler resource exhaustion when the application [...] read more
windows
printing
zebra-printers
3votes
2answers

how to run apktool from webcode (php)

Essentially when a user uploads a .apk file I need to decode it and extract some information from the AndroidManifest.xml file inside the apk. When I run this command from command line apktool decode BluetoothChat.apk everything is fine. The output: I: Baksmaling... I: Loading resource table... I: Loaded. I: Loading [...] read more
php
apk
3votes
4answers

iPhone crash during navigation controller animation, what are my options?

Been hunting down an intermittent crash in my app. Finally unlocked the secrets to symbolocating my crash report, and this is what I found: Incident Identifier: BFCE991E-5F9C-4F04-89AD-A0060EDE73D1 CrashReporter Key: 263d1a93e7ce2d75b397b6ef42b1bc4f29d22f9d Hardware Model: iPhone2,1 Process: Wine Brain [2787] Path: /var/mobile/Applications/197DA851-3F8A-486E-8675-74B521A1FD72/Wine Brain.app/Wine Brain Identifier: Wine Brain Version: ??? (???) Code Type: ARM [...] read more
iphone
ios
crash
3votes
2answers

How to map PC (ARMv5) address to source code?

I'm developing on an ARM9E processor running Linux. Sometimes my application crashes with the following message : > [ 142.410000] Alignment trap: rtspserverd (996) PC=0x4034f61c Instr=0xe591300c > Address=0x0000000d FSR 0x001 How can I translate the PC address to actual source code? In other words, how can I make sense out [...] read more
c++
c
linux
arm
alignment
3votes
2answers

Why did this app crash while in the background?

My app uses background location for GPS updates. I've registered it for background location updates, and while it's running in background, it always crashes like this. Since I haven't written most of this code, I really have no idea what happened. I have checked the memory allocations and there doesn't [...] read more
iphone
objective-c
gps
core-location
background-process
3votes
1answer

What other diagnostic methods can I use to solve this particular Perl problem?

After a lot of experiments, I still can't get the following script working. I need some guidance on how to diagnoze this particular Perl problem. Thanks in advance. This script is for testing the use of Office 2007 OCR API: use warnings; use strict; use Win32::OLE; use Win32::OLE::Const; Win32::OLE::Const->Load("Microsoft Office [...] read more
perl
ocr
2votes
1answer

Repair or rebuild driver store

I have a Windows 8.1 PC that I had to install Rutoken Drivers utility on. Apparently older version uninstall has done some damage to Windows driver store and now I receive a 1603 Windows Installer error whenever I try to install the package. I have narrowed the problem to installing/uninstalling [...] read more
windows-8
drivers
2votes
1answer

Not able to read IHDR chunk of a PNG file

I have read PNG file specification and learnt that after the first 8 bytes of PNG signature, we have the IHDR chunk. This image states that we have IHDR with length of 13(0x0000000D) bytes. enter image description here [https://i.stack.imgur.com/hcIIO.png] I have written a code in swift to read the same [...] read more
swift
png
nsfilehandle
2votes
2answers

change in endianness while ethernet transmission

I work with zedboard and vivado v2017.3. I am trying to send data stored in a register(slv_reg0 in PL section of Zynq) pointed by baseaddr_p in the following program. I use lwip echo server application to read this address and send it to the PC via Ethernet. This part of [...] read more
c
vivado
zynq
2votes
1answer

Opendaylight Can't Connect to HP Aruba SDN Switch

My lab recently procure an HP (Aruba) 2920 24G and I was told to test it out on an OpenDaylight controller. First, I setup the OpenDaylight Carbon (0.7.2) with dlux features, odl-mdsal-apidocs, odl-restconf, and odl-l2switch-switch installed. The Opendaylight can communicate with my other switches including an SBC running an Open [...] read more
sdn
opendaylight
2votes
0answers

Loading C library in Android

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
2votes
2answers

Crash in UIKit related to WebView

I have a random crash in UIKit that happend a couple of times already. It crashes with EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000d Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x30e08f46 objc_msgSend + 5 1 UIKit 0x26d1790d -[_UIWebViewScrollViewDelegateForwarder forwardInvocation:] + 140 2 CoreFoundation 0x23654def ___forwarding___ + 354 3 CoreFoundation 0x23586df8 _CF_forwarding_prep_0 + 24 [...] read more
ios
objective-c
uiwebview
2votes
0answers

How to set Windows audit policies programmatically?

I have written a program that receives WMI events. Right now I have to manually go into the security settings in order to turn on the events of interest. Local Security Policy [https://i.stack.imgur.com/3TlAl.png] I can do this through the Windows GUI, but would like a way to do this programmatically. [...] read more
windows
powershell
batch-file
audit
local-security-policy
2votes
1answer

Why does the MIPS instruction "add" sometimes give me an arithmetic error, but not always?

I recently used MARS4.5 to practice writing assembly language for MIPS, but I encounter some problems. The first code is: addi $s0,$s0,8 #s0 = 0x00000008 sll $s0,$s0,28 #s0 = 0x80000000 addi $s1,$s1,13#s1 = 0x0000000D sll,$s1,$s1,28 #s1 = 0xD0000000 add $t0,$s0,$s1 #t0 =0xD0000000 + 0x80000000 and I will get the arithmetic [...] read more
assembly
mips
add
2votes
2answers

Failed to create assembly 'System.ServiceModel.Internals' in SQL

I am trying to create an assembly in SQL but I am not able to load the following DLL. System.ServiceModel.Internals create assembly [system.servicemodel.internals] from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.ServiceModel.Internals.dll' with permission_set = safe; go I get this error: > Msg 6218, Level 16, State 2, Line 2 CREATE ASSEMBLY for assembly > 'System.ServiceModel.Internals' failed [...] read more
c#
clr
.net-assembly
sqlclr
2votes
0answers

cross compilation from ubuntu to Raspberry Pi error: undefined symbol

i'm running Qt Creator 3.0.1 (Based on Qt 5.2.1 (GCC 4.8.2, 64 bit)) on Ubuntu 14.4 64bit on VirtualBox on Windows 7 64bit I'm trying to cross compile to Raspberry Pi and run very simple program: MainWindow.h: #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> namespace Ui { class MainWindow; } class [...] read more
c++
qt
raspberry-pi
cross-platform
cross-compiling
2votes
1answer

SMPP BIND ERROR: 0x0000000D in EasySMPP

I am implementing the SMPP client using EasySMPP for .NET The application is compiling fine but there was no successful outcome and I am getting this weird error SMPP BIND ERROR: 0x0000000D What can be done for this, please help. read more
c#
.net
api
smpp
2votes
1answer

Camera.takePicture throws RunTimeException

I know this question has been asked many times but none of the answers has solved my question. In my app, I have used service which takes picture without preview in a background. My app works fine on most of the Android phones like Samsung Galaxy S2, Samsung Grand but [...] read more
android
android-camera
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
2votes
1answer

iPhone application crashes with Mprotect failed error (MonoTouch)

I have a problem with my iPhone application developed with MonoTouch. I am developing an application that contacts a WCF Service, and when the WCF Service answer back, I update an UITableView with the returned data, when this is done it sends a new WCF async call, and when it [...] read more
iphone
wcf
xamarin.ios
mprotect
1vote
1answer

Multiple BSOD Windows 7

I'm using Windows 7 and I've gotten multiple BSOD errors when browsing with chrome or watching videos. I've updated my integrated graphics card driver but it didn't solve the problem. I've run Memtest86+(12 passes) - everything was OK, I've also tested the HDDs - no problem, too. I've disabled GPU [...] read more
windows-7
google-chrome
memory
bsod
1vote
1answer

How to get this printer working in Windows 7 over a network?

Here is the setup: Router * Windows XP 32-bit * Windows 7 64-bit The XP machine has a Lexmark printer physically attached. I have installed the x64 drivers for the printer installed in Windows 7. When I try to print to the printer on the Windows 7 machine, it doesn't [...] read more
windows-7
networking
printer
1vote
1answer

Get Device id using ipmitool failed

I'm executing below command for getting Device ID from BMC but I got error Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0 cmd=0x1) ipmitool -I lanplus -H 192.168.0.147 -U root -P root raw 0x06 0x01 Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0 cmd=0x1) I have give verbose option to [...] read more
ipmitool
1vote
1answer

SFML 2.1 "setFont" unhandled exception

So I'm trying to use the .setFont(sf::Font) method from SFML, and it seems to somehow break the rest of the sf::Text object. I'm using the following function to do this: sf::Text Renderer::CreateText(FontEntity font) { sf::Text out; out.setFont(font.GetFont()); out.setString(font.GetText()); out.setCharacterSize(24); out.setColor(sf::Color::White); out.setStyle(sf::Text::Bold); return out; } The above is used in a [...] read more
c++
sfml
1vote
0answers

ESP32: Guru Meditation Error: Core 1 panic'ed (StoreProhibited)

I've been working on a LED strip lately trying to create all kinds of animations. But one of them has caused quite a lot of trouble. It's meant to be a kind of firework. It usually runs once and when the loop starts a second time the following error comes [...] read more
arduino
esp32
fastled
1vote
1answer

How to read Brave Browser cookie database encrypted values in C# (.NET Core)?

I am attempting to read the encrypted values of cookies using a C# console app. My cookie reader class using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; using Microsoft.EntityFrameworkCore; namespace ConsoleApp1.Models { public class ChromeCookieReader { public IEnumerable<Tuple<string, string>> ReadCookies(string hostName) { if (hostName == null) throw new [...] read more
c#
windows
google-chrome
dpapi
brave-browser
1vote
1answer

UART Communication Between STM32F03 and ESP-8266-01

I'm attempting to get a smartphone app to communicate with an MCU (STM32F030R8). The step I'm currently on is getting the WiFi module to talk with the MCU. I'm able use the AT firmware to configure the ESP when using an Arduino Uno/PC terminal, but want to essentially do the [...] read more
c
stm32
esp8266
cmsis
1vote
0answers

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
1answer

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
linker
qt5
cross-compiling
beagleboneblack
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

C# Delete printer port in Windows Printer Management

I'm currently writing a helper class (wrapper) for the Windows printer management. At the moment I'm able to create and remove printer objects. In one of my next steps I want to do the same for the printer ports. At the moment, I am using the following code to create [...] read more
c#
.net
printing
1vote
1answer

GDB command 'info sharedlibrary' can't show all the libraries

I am doing cross compile debugging. My build server CPU is amd64. My device CPU is MIPS. When I am trying to do debug the elf file compiled by myself. The gdb can only show ld.so.1 (gdb) info sharedlibrary From To Syms Read Shared Object Library 0x7704f9c0 0x7706c490 Yes (*) [...] read more
c
debugging
gdb
cross-compiling
1vote
3answers

Java EXCEPTION_IN_PAGE_ERROR

I tried to check the jdk version in cmd by typing javac -version when i hit enter i got this # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x5d002e63, pid=3872, tid=4900 # # JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) [...] read more
java
1vote
0answers

iOS updateTopViewHorizontalCenterWithRecognizer EXC_BAD_ACCESS

I couldn't find why my app is crashing when the method updateTopViewHorizontalCenterWithRecognizer is called. Any idea how to fix the error causing the app crash? Error Log Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000d Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x39400626 objc_msgSend + 5 1 UIKit 0x3152000d _UIGestureRecognizerSendActions + 196 2 [...] read more
ios
ecslidingviewcontroller
1vote
1answer

How to Edit COM Library to Provide Method Access

In our header file we have the class definition where GroupInit, EditInit were protected. I want to be able to access these methods by adding a reference to the generated GrpSvr.tlb file from a C# solution so I changed these to public... #if !defined(AFX_GRPCALL_H__FFB54BC3_B15E_11D1_99BC_0000E803C444__INCLUDED_) #define AFX_GRPCALL_H__FFB54BC3_B15E_11D1_99BC_0000E803C444__INCLUDED_ #if _MSC_VER >= 1000 [...] read more
c++
com
interop
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
1answer

OSX - Qt application crashed when receiving system event QEvent::FileOpen

I'm using plist file to allow my Qt Application to be able to open files directly from the finder. Unfortunately sometimes and on some systems (described bellow) application crashes / freezes. This problem occurs only on some client computers and only when I compile application on our production computer with [...] read more
c++
macos
qt
finder
file-association
1vote
0answers

Android java No package identifier when getting value for resource number

I got an error in my logs so instead of layer-drawable I see no image. 12-07 12:45:42.988: W/ResourceType(19347): No package identifier when getting value for resource number 0x0000000d 12-07 12:45:42.990: W/ImageView(19347): Unable to find resource: 13 12-07 12:45:42.990: W/ImageView(19347): android.content.res.Resources$NotFoundException: Resource ID #0xd 12-07 12:45:42.990: W/ImageView(19347): at android.content.res.Resources.getValue(Resources.java:1019) 12-07 12:45:42.990: [...] read more
java
android
layerdrawable
1vote
2answers

Insert a new section to a binary file?

I try to coding a program to insert a empty (as the first step) phdr struct to any elf binary, so I coding like below: cat add_phdr.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <elf.h> #include <sys/mman.h> #include <stddef.h> static void calc_dyntables(void [...] read more
c
linux
nasm
elf
1vote
1answer

Xcode 4.3.2 10.7.3 app crash on launch

I have an app which was running fine with Xcode 4.2. As soon as I upgraded to Xcode 4.3.2, the app crashes on the 5.1 simulator on launch. 0x44e5c3: jmp 0x0044e63d ; Poco::MutexImpl::lockImpl() + 317 Get a SIGABRT here. Incident Identifier: CC84E826-5B79-4F66-9182-4C779CAF865B CrashReporter Key: 98f4ee80ecae8f5500ce329f80122c35d6e7a4b7 Hardware Model: iPad3,3 Process: DataQuery [...] read more
xcode
ios5
ios-simulator
1vote
0answers

App Store Rejection: Unable to reproduce crash

The App Store Review-Team finally took a look at my new application. Sadly they found a crash in a key functionality which i can't reproduce. They are using an Retina-iPad, which i don't have, but the application has been successfully tested on a Retina-iPad, so i guess this is not [...] read more
ios
crash
app-store
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
1vote
1answer

JOGL Native Crash

I am running a JOGL based application, and it has been crashing when I perform certain drawing operations. However, The line it crashes on is a call to gl.glGenLists(1), so I'm not really sure how this could cause an error in the underlying application, since this line is a trivial [...] read more
jogl
crash-reports
1vote
2answers

EXC_BAD_ACCESS Crash when displaying AdWhirl ad on iPhone

I am using AdWhirl in my app and got a suspicious crash mid-game. It appears to crash in the animationDidStop:finished: function which I didn't create. Could this be a bug in AdWhirl? I can't find this file referenced in the log: (MMHTMLAdView.m:123) This is the log: Date/Time: 2010-10-21 09:54:14.861 +0200 [...] read more
iphone
exc-bad-access
adwhirl
1vote
2answers

DynamicMethod code unverifiable in .Net 4.0 (found ref 'this' pointer... expected ref '<>f__AnonymousType1`)

Was using this solution to convert anonymous types to dictionaries using reflection.emit. Was working fine until I changed to .Net 4.0 from 3.5. Now, I'm getting the "System.Security.VerificationException: Operation could destabilize the runtime." error. Converted the anonymously loaded dynamic method to one hosted in a dynamic assembly, saved it, then [...] read more
c#-4.0
reflection.emit
opcodes
1vote
2answers

Cross-compiling for Android

I'm trying to cross-compile dropbear for android. The files appear to compile find, but when executed give "program : not found." I did a find and the libraries marked NEEDED appear to be located in the cross-compile environment. I have compiled other programs with this toolchain. arm-none-linux-gnueabi-readelf -d dropbear Dynamic [...] read more
android
0votes
0answers

OpenVPN TAP Driver install problems

I originally posted this on the network engineering part, and they said that superuser would be the better place to ask this. So here I am! I have tried asking this question on the OpenVPN forum, but no repsonses, and I have searched for hours for answers as well as [...] read more
vpn
openvpn
0votes
2answers

Windows 8 upgrade fails

Upgrading windows 8 keeping programs and settings is not working. It fails at 47% of migrating settings and rolls back. This is the relevant part of the log (Sources/Panther/setuperr.log): 2013-02-03 00:02:02, Error [0x0803b6] MIG Can't retrieve group information for user NT SERVICE\MSSQLFDLauncher. NetUserGetLocalGroups failed 0x000008AD 2013-02-03 00:30:39, Error MIG COnlineWinNTPlatform::AddPathToSearchIndexer [...] read more
windows-8
windows-8-upgrade
0votes
1answer

Customizing Fantacy Remote .INI file

I am using Fantacy Remote to remote view other machines. I have attached the default .INI file that Fantacy Remote uses. When i connect to a machine, the client user should not have mouse and keyboard access of the Remote machine. It should be a View only remote connection. And [...] read more
remote-desktop
remote-access
0votes
1answer

How to check if my debugger's program counter is inside a function?

I'm writing a debugger and want to see if its program counter is inside a function. I guess I need to check that it's between DW_AT_low_pc and DW_AT_high_pc. Here's the code I'm trying to debug: void myPrint() { int test_a = 3; int test_b = 2; printf( "myPrint: sum: %d\n", [...] read more
c
linux
gcc
dwarf
0votes
1answer

iText 7 - Problem when signing PDF document

I've tried to sign a PDF file by USB token with CRL distribution points as below: URI = ldap:///CN=CA2,CN=www,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=cavn,DC=vn?certificateRevocationList?base?objectClass=cRLDistributionPoint URI = http://cavn.vn/new/CA2.crl URI = http://www.cavn.vn/new/CA2.crl The first URI failed to parse 1. The first question is: why don't iText7 try to read next URI when the first one fails? public [...] read more
c#
itext7
0votes
0answers

How do I work with integers that result in bigger than 10 with MIPS?

I am trying to make a Fibonacci sequence with MIPS and this is the code I have so far. main: li $t1, 0 li $t2, 1 add $t3, $t1, $t2 loop: add $t3, $t1, $t2 la $t1, ($t3) add $t3, $t1, $t2 la $t2, ($t3) j loop It works fine [...] read more
mips
fibonacci
0votes
2answers

Porting a simple MIPS32 program to MIPS64

I am having some difficulty porting the following MIPS32 assembly program to a 64-bit equivalent. The main issue that I am facing is the following line: bgtz $s2, loop ; Branch from "loop" on "$s2" greater than zero. I am not sure why this line causes an error? The instruction [...] read more
assembly
porting
mips32
mips64
edumips64
0votes
1answer

How to declare COM interface with properties in C++

I'm trying to call a registered COM interface (Inproc dll) in an Eclipse C++ environment (MinGW GCC toolchain). I therefore don't believe that I can simply import the dll typelib the way I typically would in Visual C++. I'm trying to define the interface myself to simplify the function calls [...] read more
c++
interface
com
idispatch
0votes
1answer

I know the answer to this program but I don't understand why?

I understand there is an increment of ii and x shifts left, but how does it go from 1 to being 3? Then from 13(D) to being 69? and so on... #include <stdio.h> int main() { int x = 1; int ii; for (ii = 0; ii < 8; ii++) [...] read more
c
0votes
1answer

CryptStringToBinary API behavior

I am seeing a strange behavior with CryptStringToBinary Cryptography API. Please see the below code (config: x64 Debug): #include "stdafx.h" #include <windows.h> #include <strsafe.h> #include <iostream> #include <exception> void main() { DWORD dwSkip; DWORD dwFlags; DWORD dwDataLen; //LPCWSTR pszInput = L"jAAAAAECAAADZgAAAKQAAGdnNL1l56BWGFjDGR3RpxTQqqn6DAw3USv2eMkJYm4t"; //this works fine LPCWSTR pszInput = L"MyTest"; //doesnt work, [...] read more
c++
string
cryptography
0votes
0answers

ROP exploitation: writing in the .data section SIGSEGV

I'm following this tutorial for ROP exploitation . When I retrieve the vulnerable program memory map I get that <__data_start> is at 0x0000201c which is much lover that what supposed by the tutorial. To write at this location I prepare the address in eax with the following gadgets xor eax, [...] read more
linux
security
x86
exploit
0votes
1answer

Reading BPF Assembly

I'm trying to read some BPF syntax for a filter to try and figure out what it does. One thing I cannot find is where the "byte offset starts". Meaning, that if we have the following assembler code: 0000: 0x28 0x00 0x00 0x00000004 ldh $data[4] 0001: 0x15 0x00 0x61 0x00000028 [...] read more
network-programming
bpf
0votes
1answer

C# COM client (RTD)

I'm working with a real time data server (a trading terminal) that has a COM interface for ticker updates. From Excel, I'm able to subscribe to the ticker updates using this - RTD(progId,,topic1,topic2, ...) I'm trying to build an application that will receive these ticker updates without any dependency on [...] read more
c#
com
rtd
0votes
0answers

Xcode Program Not Executing

I have a program that I am building in Xcode that is built successfully, but after it is built a box appears that says "error: ::posix_spawnp ( pid => 399, path = '/Users/toddbaker/Documents/Poker/Build/Poker/Build/Products/Debug/Poker', file_actions = 0x115880c98, attr = 0x115880cd8, argv = 0x7fab5627d5f0, envp = 0x7fab5628f600 ) err = Permission denied [...] read more
c++
xcode
macos
0votes
0answers

Segmentation fault when trying to execute recovered filesystem in a digital video tuner

Let me introduce where this thing comes from. A few years ago I got a digital video tuner, which had a closed source version of Linux. The manufacturers of this device didn't want to share the source code of the OS, neither I was able to find it on internet. [...] read more
linux
arm
embedded
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
2answers

Format String Attack - Overwrite __DTOR_END__

I am trying to repeat the attack discussed at this link, but I am not able to succeed. The goal is to overwite the value at the symbol __DTOR_END__ via format string vulnerability. The following is what I tried. The vulnerable program: #include <stdio.h> #include <stdlib.h> int main (int argc, [...] read more
c
linux
printf
format-string
0votes
2answers

how to read kernel image in arm linux?

I am trying to read kernel image and calculate a checksum value of this image. Firstly, I used a smc instruction to trigger a exception, and in the exception handler, I tried to read the first bytes of the image. I don't really know what the address is, but from [...] read more
linux
linux-kernel
arm
0votes
1answer

When / Otherwise not working as expected (Microsoft Visual Studio)

I've been struggling getting the output formatted the way I want but I'm just not using xsl often enough. This need to generate a table, it only extracts the information if there is a value in the node named 'Active' but when there is no data or value named 'Counted [...] read more
xslt-1.0
0votes
1answer

Windows Phone App crashes after Launcher.LaunchFileAsync when downloaded from store

I have a strange problem, if I deploy my app through visual studio as debug or release version all is working well. But if I publish it to the store and download it from there the app crashes after Launcher.LaunchFileAsync or FileOpenPicker. When my app launches for example the default [...] read more
windows-phone
windows-phone-8.1
windows-phone-store
0votes
1answer

Test value of LPTSTR

I have two strings I want to compare. I was following the named piper server/client example of this page: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365592%28v=vs.85%29.aspx Anyhow, in my "GetAnswerToRequest" I define a string like so LPTSTR option = TEXT("THIS IS A TEST"); and then I try to compare it to the pchRequest parameter, which is [...] read more
c
winapi
0votes
1answer

Reading from file C++

I need to read this txt file but I don't understand what I'm doing wrong? http://pastebin.com/gPVbuvhb Here's my reading function void Read(School & snew){ string school, name, group; Student S; ifstream fd(CD); getline(fd, school, ';'); S.SetSchool(school); cout << S.GetSchool() << endl; while(!fd.eof()){ getline(fd, name, ','); fd >> ws; getline(fd, group, [...] read more
c++
0votes
1answer

import error running picam on a raspberry pi

I am trying to run picam on my raspberry pi. Unfortunately I am not getting around the following import error: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-ae50f21e1c18> in <module>() ----> 1 import picam 2 import time /usr/local/lib/python2.7/dist-packages/picam/__init__.py in <module>() 1 # Copyright (c) 2013 Sean Ashton 2 # Licensed [...] read more
python
raspberry-pi
importerror
0votes
0answers

Master Detail View Controller Crashes second time to Detail View

I have an iOS 7 App with a master/detail split view controller. The first time it goes to the detail view it is fine the second it crashes . I have tried using Zomibies to find the problem of the deallocated memory and it is giving me UISplitViewController_CalculateDelegateHiddenMasterOrientation which in [...] read more
objective-c
ipad
ios7
0votes
1answer

MIPS assembly program ERROR Exception 4 [Address error in inst/data fetch]

I am trying to convert MIPS code into ARM code, this is not an issue its that I am getting a gnarly exception I'm hoping someone can explain whats wrong and what to do about it. the program is passed a0 which is a pointer to the mips binary instruction [...] read more
mips
0votes
1answer

cocos2d duplicating sprites bug

i have an app using cocos2d, Im moving some sprites and having animations when touched, it works fine until i load another view and come back again, then when I move the sprites some random sprite will get duplicated when moved, Please note the button that goes to the other [...] read more
ios
cocos2d-iphone
sprite
0votes
3answers

Fread skipping characters reading into object

I'm trying to read in a bitmap starting with its header, but fread is skipping characters for me. I'm using this typedef in my header: #include <windows.h> // Used for other #include <cstdio> typedef struct tagBITMAPHEADER{ WORD wFileType; DWORD dwFileSize; WORD dwReserved; WORD dwReserved2; DWORD dwBmpDataOffset; DWORD dwBmpHeaderSize; DWORD dwWidth; [...] read more
c++
bitmap
-1votes
1answer

Defusing a Binary Bomb: phase_5

Here is my understanding of what the code is doing, and how I'd like to solve it: First I need to find a string, and then reverse engineer that string, based on the 16-byte lookup table that I have found. I do know that the values of these "offsets" must [...] read more
assembly
x86
reverse-engineering
-1votes
1answer

Pascal Script, how to return var parameter from script into my Delphi code?

I need to modify function parameter variable (string) in my Pascal Script code and get it in the Delphi function, after the script finish it's work. My script code: function OnBroadcastMessage(iCID, iUIN: integer; var sUsersList: string; dtActualTo: double; bMustRead, bReadNotify: boolean; sMsg: string): boolean; begin sUsersList := '3'; result := [...] read more
delphi
pascalscript
-1votes
3answers

c, obj c enum without tag or identifier

im learning cocos2d [open gl wrapper for objective C on iPhone], and now playing with sprites have found this in a example, enum { easySprite = 0x0000000a, mediumSprite = 0x0000000b, hardSprite = 0x0000000c, backButton = 0x0000000d, magneticSprite = 0x0000000e, magneticSprite2 = 0x0000000f }; ... -(id) init {... /second sprite TSprite [...] read more
objective-c
c
ios
enums

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