Windows error 0x00000011, 17

Detailed Error Information

NOT_SAME_DEVICE[1]

MessageThe system cannot move the file to a different disk drive.
Declared inwinerror.h

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

THREAD_NOT_MUTEX_OWNER[2]

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

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 Code17 (0x0011)

Questions

42votes
4answers

I updated my CentOS 7 system. Why is Meltdown/Spectre only partially mitigated?

Like many of us, I spent yesterday updating a whole lot of systems to mitigate the Meltdown and Spectre attacks. As I understand it, it is necessary to install two packages and reboot: kernel-3.10.0-693.11.6.el7.x86_64 microcode_ctl-2.1-22.2.el7.x86_64 I have two CentOS 7 systems on which I've installed these packages and rebooted. According [...] read more
security
centos7
rhel7
vulnerabilities
33votes
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
17votes
3answers

StoreKit SKProductsRequest Crash

I use the following code to request a list of products as per the In-App Purchase Programming Guide. It used to work fine in my iPhone application, however now it crashes every time the product list is requested. The delegate method (void)productsRequest:(SKProductsRequest **)request didReceiveResponse:(SKProductsResponse **)response is never called. SKProductsRequest *request [...] read more
iphone
crash
delegates
in-app-purchase
storekit
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
java-native-interface
native
14votes
1answer

How to solve KERN_PROTECTION_FAILURE and KERN_INVALID_ADDRESS?

How can you solve a KERN_PROTECTION_FAILURE and a KERN_INVALID ADDRESS? Both seem to happen at exactly the same spot when I run my app. Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x6d783f44 Crashed Thread: 2 Thread 2 Crashed: 0 libobjc.A.dylib 0x34a80464 objc_msgSend + 16 1 Foundation 0x31171dda __+[__NSOperationInternal _observeValueForKeyPath:ofObject:changeKind:oldValue:newValue:indexes:context:]_block_invoke_7 [...] read more
objective-c
ios
ipad
7votes
0answers

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

Android Camera Black Screen

I am trying create an app that will read a QR Code, This code worked intermittently but it would give Permission errors and would not load. I believe I have those fixed, but now I get a Black Screen. There are no errors so I do not know where to [...] read more
android
permissions
android-camera
5votes
1answer

How to use SetupIterateCabinet with C#

I am attempting to write code to extract the contents of a CAB file, however I am having trouble using the SetupIterateCabinet routine. Please see doc here http://msdn.microsoft.com/en-us/library/aa377404(v=vs.85).aspx I can import it properly like this private const uint SPFILENOTIFY_CABINETINFO = 0x00000010; private const uint SPFILENOTIFY_FILEINCABINET = 0x00000011; private const uint [...] read more
c#
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
5votes
2answers

objdump - head ELF - Meaning of flags?

$ objdump -f ./a.out ./a.out: file format elf32-i386 architecture: i386, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED start address 0x080484e0 $ objdump -f function.o function.o: file format elf32-i386 architecture: i386, flags 0x00000011: HAS_RELOC, HAS_SYMS start address 0x00000000 What is the meaning of flags (flags 0x00000011: OR flags 0x00000112:) ? Nothin in the [...] read more
objdump
4votes
1answer

sshfs: Input/Output error

I cannot enter my sshfs, although I'm sure that the connection is fine and the destination exists. Every file operation fails with Input/output error. sshfs outputs: $ sshfs -p 7292 server:/in/vm/dir ~/vm_dir -d FUSE library version: 2.9.2 nullpath_ok: 0 nopath: 0 utime_omit_ok: 0 unique: 1, opcode: INIT (26), nodeid: 0, [...] read more
ssh
sshfs
4votes
4answers

From a huge enumeration, I try to make a function to apply the right action without using a switch body by using some template tricks

I have an enum type with 1223 elements. I had a function with 1222 cases and a default case in a switch block. If I want to modify some elements in the enum type, I also need to modify that function. Worse, I may have more than one function with [...] read more
c++
templates
c++11
4votes
0answers

How to get right MIPS libc toolchain for embedded device

I've run into a problem (repetitively) with various company's' embedded linux products where GPL source code from them does not match what is actually running on a system. It's "close", but not quite right, especially with respect to the standard C library they use. Isn't that a violation of the [...] read more
linux
gcc
embedded
cross-compiling
libc
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
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
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
1answer

MIPS32 router: module_init not called for kernel module

I'm developing a kernel module that I want to run on my router. The router model is DGN2200v2 by Netgear. It's running Linux 2.6.30 on MIPS. My problem is that when I load my module it seems that my module_init isn't getting called. I tried to narrow it down by [...] read more
linux-kernel
mips
busybox
mips32
buildroot
3votes
3answers

Possible Stack Corruption

With reference to my previous question about GDB not pinpointing the SIGSEGV point, My thread code is as follows: void *runner(void *unused) { do { sem_wait(&x); ... if(/*condition 1 check*/) { sem_post(&x); sleep(5); sem_wait(&x); if(/*repeat condition 1 check; after atleast 5 seconds*/) { printf("LEAVING...\n"); sem_post(&x); // putting exit(0); here resolves [...] read more
c
pthreads
semaphore
2votes
1answer

Can't install any drivers at all on Windows 8. Error 0x000003F9

I suddenly can't install any drivers at all on my Windows 8 Pro x64 install. It doesn't matter what kind of driver it is, nothing will install. Everything ends with error 0x000003F9: The system has attempted to load or restore a file into the registry, but the specified file is [...] read more
windows-8
installation
drivers
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
java-native-interface
sigsegv
loadlibrary
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
1answer

SHChangeNotify with SHCNE_RMDIR behavior inconsistent between Windows 7 and Windows 10

OVERVIEW I am using SHChangeNotify with SHCNE_RMDIR to notify the shell of a folder that has been removed from within my shell namespace extension. My expectation is that this will cause any explorer (or other shell) windows which have their folder view navigated into the removed folder (or any of [...] read more
winapi
shell-extensions
shell32
shell-namespace-extension
2votes
1answer

Reload a namespace extension in explorer.exe that failed to load previously

BACKGROUND I have a Shell Namespace Extension that is located (using a virtual folder as its junction point) under MyComputer. It is possible to create a shortcut to my namespace extension. Here I show my namespace extension with a shortcut on the desktop. Image showing a Namespace extension under "My [...] read more
windows
explorer
shell-extensions
shell-namespace-extension
2votes
1answer

FRDM-KL25z assembly delay loop causes reset

I'm currently working on a project using the FRDM-KL25Z development board and programming using Keil MDK-lite (5.14a). What we're supposed to do is create a simple traffic light using three corresponding LEDs and a push button to expedite the light change(not immediately like a real traffic light but to check [...] read more
assembly
crash
arm
keil
cortex-m
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
0answers

Android-NDK: incompatible target while linking ZeroMQ static library into a shared library

I have successfully compiled multiple static libraries with the ndk toolchain and linked them into my own project. I have to use many cpp files and they need protocol buffers and a ZeroMQ, as a library, to compile successfully. Linking against protocol buffers works great, however, when I link against [...] read more
android
android-ndk
shared-libraries
static-libraries
zeromq
2votes
1answer

What information does new[] save?

I have read here How does delete[] "know" the size of the operand array? that before the allocated memory it is saved how much memory it was allocated. I allocated an array of integers, set each element to value 15 and inspected the heap. First I allocated an array with [...] read more
c++
gdb
2votes
1answer

Diagnosing a File Not Found error in a .NET application

I am using a .NET 4.0 application that is failing with a System.ComponentModel.Win32Exception exception. I've attached it to WinDBG to try and find out more. ... 0:000> sxe clr 0:000> g ... (17c0.664): CLR exception(17c0.664): CLR exception - code e0434352 (first chance) - code e0434352 (first chance) First chance exceptions [...] read more
.net
exception
windbg
2votes
0answers

SendMessage to window, lparam changes? (Spy++, C#)

I'm trying to send the Ctrl + C command (Copy text) to a custom handle, so it doesn't get the focus. I looked the messages in Spy++ up: <000001> 00540824 S WM_GETDLGCODE wParam:00000011 lParam:0018D218 <000002> 00540824 R WM_GETDLGCODE fuDlgCode:DLGC_WANTARROWS [lResult:00000001] <000003> 00540824 S WM_GETDLGCODE wParam:00000043 lParam:0018D218 <000004> 00540824 R WM_GETDLGCODE [...] read more
c#
window
handle
sendmessage
lparam
2votes
1answer

Command Status 0x00000011 with submit_multi for SMPP integration

Hi am integrating with Sybase Mobile 365 Services and I have gotten submit_sm and deliver_sm to work fine. I am trying to get submit_multi to work, but no matter what I try I get back a Command Status = 11. Does anyone have any thoughts as to what that command [...] read more
smpp
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
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
1answer

Enum with Enum elements in Python3

I'm setting an enumeration "A" of possible commands in my Python code. I would also create another enumeration "B" listing some specific commands "A". Thus I tried : class all_commands(IntEnum): SET_ELEMENT_A = 0x00000001 GET_ELEMENT_A = 0x00000007 GET_ELEMENT_B = 0x0000000E SET_ELEMENT_C = 0x00000010 GET_ELEMENT_C = 0x00000011 GET_ELEMENT_D = 0x00000015 class getter_commands(IntEnum): [...] read more
python-3.x
list
enums
1vote
1answer

Shader Storage Buffer Objects: endianness?

OpenGL ES 3.1, Android. I have set up SSBO with the intention to write something in fragment shader and read it back in the application. Things almost work, i.e. I can read back the value I have written, with one issue: when I read an INT, its bytes come reversed [...] read more
android
opengl-es
bytebuffer
1vote
0answers

Beaglebone Black and Qt5.10

I am using Beaglebone Black Rev C with BB-View CapeManager as follow: 1. Latest kernel version: "Linux arm 4.15.0-bone2.1 #1 Tue Jan 30 11:48:09 GMT 2018 armv7l GNU/Linux" 2. BBB fire up correctly and screen work correctly 3. Build Qt-everywhere package 5.11 fro io.qtdownload site 4. The Qt for ARM [...] read more
c
linux
qt
ubuntu
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

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
0answers

Compiling OpenSSL engine (.so) fails to load undefined symbol

I am compiling the following OpenSSL engine, from Atmel https://github.com/AtmelCSO/cryptoauth-openssl-engine/ for an ARM platform. The code, uses 'eckey_asn1_meth' from the OpenSSL codebase: git grep "eckey_asn1_meth" engine_meth/eccx08_ameth.c: extern const EVP_PKEY_ASN1_METHOD eckey_asn1_meth; engine_meth/eccx08_ameth.c: eccx08_pkey_asn1_meth.pub_encode = eckey_asn1_meth.pub_encode; engine_meth/eccx08_ameth.c: eccx08_pkey_asn1_meth.pub_decode = eckey_asn1_meth.pub_decode; engine_meth/eccx08_ameth.c: eccx08_pkey_asn1_meth.pub_cmp = eckey_asn1_meth.pub_cmp; engine_meth/eccx08_ameth.c: eccx08_pkey_asn1_meth.pub_print = eckey_asn1_meth.pub_print; engine_meth/eccx08_ameth.c: eccx08_pkey_asn1_meth.priv_decode = eckey_asn1_meth.priv_decode; [...] read more
c
linker
openssl
shared-libraries
1vote
1answer

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
4answers

Decoding pcie config space capabilites manually - looking for example

I don't have an o/s running so I can't decode pcie using something like lspci (I wish lspci would take input from a file!). I have a hex dump below (this is a Xilinx Ultrascale FPGA but the question is generic), I'm trying to understand where the capabilities start and [...] read more
pci
pci-e
1vote
2answers

Seg Fault in ARM Assembly

So, I am trying to learn ARM assembly and basically what I want to do is turn on the LEDs of my BeagleBone Black using pure assembly. I know how to program in C very well, but I am new to ARM assembly if that makes any difference. Basically I [...] read more
c
assembly
beagleboneblack
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
0answers

BUILD target from make file consisting of source files, shared library( .so) and static library (.a)

I have .so and .a files which are made in (32 bit using -m32 )in a 64 bit architecture. But while running the final make file it is showing incompatible .a to make a.out. Can you let me know the probable mistake ?? Thanks in advance its showing: skipping incompatible [...] read more
c
unix
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

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

Function with weak atributte can not be overwritten

I would like to overwrite function (interupt handlers) with the weak attribute, but linker does not link my definition. Codes are shorted for better reading. vectors.c void NMI_Handler (void) __attribute__((weak)); void HardFault_Handler (void) __attribute__((weak)); __attribute__ ((section(".vectors"), used)) void (* const gVectors[])(void) = { NMI_Handler, HardFault_Handler }; void NMI_Handler (void) { [...] read more
c++
c
gcc
arm
weak-linking
1vote
2answers

Can not load shared libraries because major number is given as a part of the library dependency

I have been creating a set of shared libraries to run on an android phone. When I try to load them in they are failing and it looks to me as if the libraries that my shared library depends on have been named with their major number. I should explain [...] read more
android
gcc
linker
android-ndk
1vote
3answers

How to handle UIApplicationWillTerminateNotification in IOS4?

In iOS4 I'm registering the following notification: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appWillTerminate:) name:UIApplicationWillTerminateNotification object:[UIApplication sharedApplication]]; -(void)appWillTerminate:(UIApplication *) app { NSLog(@"terminate"); } I know that this is not called in all the situations like in the prev iOS versions, however, simply by registering this I get a EXC_BAD_ACCESSS when the app exits. [...] read more
iphone
objective-c
ipad
ios4
nsnotificationcenter
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
2answers

HTML Form POST to PHP Script not working

Ok, so I've been writing PHP code for a little while and understand it pretty well, but this has me stumped. // PHP file $country = $_POST['country']; $state_province = $_POST['state_province']; $postalcode = $_POST['postalcode']; $productid = $_POST['productid']; $quantity = $_POST['quantity']; echo $country; echo 'Script is fine'; //html file <form id="quick-quote-form" class="jquery" [...] read more
php
html
1vote
1answer

Causing another application to copy data to clipboard

I'm trying to programmatically make an external WinForms application copy its data to the clipboard, and it's driving me crazy. Since pressing Ctrl-C in the application does the right thing, I've been trying to send ctrl-c using my C# application to the other application. Here is my sequence of commands. [...] read more
.net
winforms
winapi
clipboard
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

SSHFS mount to AWS Transfer for SFTP: cannot create regular file

I'm trying to setup an SSHFS mount point via Amazon's new service Transfer for SFTP. I can sftp into the endpoint just fine using sftp and can get/put files. I can mount it using sshfs. I'm having problems where copying and moving files are showing errors. Whenever I do it [...] read more
linux
amazon-web-services
mount
amazon-s3
sshfs
0votes
1answer

problems mounting curlftpfs

I am attempting to mount an FTPS connection but am not having much success in getting it to automatically mount. I am using AWS Linux. I can get it working from the command line with: curlftpfs <ipaddress>:/incoming /home/<username>/autohcidev/ -o ssl,no_verify_peer,allow_other,debug The credentials are specified in /root/.netrc. That connection seems to [...] read more
ftp
mount
curl
0votes
1answer

Why I don't receive any packets using BPF with udp socket?

GOAL: write a BPF filter which allow just UDP packets from a specific src address and attach it to and UDP socket. PROBLEM: if I execute the program and I try to send udp packets from a VM which has the correct src IP I don't receive none of them [...] read more
c
sockets
udp
bpf
0votes
1answer

Use DLL in PowerShell

I'm trying to use a function from a DLL in PowerShell. I currently have the code below, though it leads to a crash when calling the function. I'm fairly new at this, so any help is appreciated. The purpose of the code is to use EloGetDiagnosticsData() in PowerShell to return [...] read more
c#
powershell
escaping
pinvoke
0votes
0answers

GreenHills linker can't find module in static library

In a linker layout script (*.ld) I have something like this: .data_Secure align(16) : AT(___IDAT_Secure) { "libBase.a(Csm.o(.data))" "libBase.a(Csm.o(.sdata))" "libBase.a(Csm.o(.zdata))" ... } but the GHS linker keeps giving me warnings: [elxr] (warning) section libBase.a(Csm.o)(.data) is not being included; module libBase.a(Csm.o) is not part of this link [elxr] (warning) section libBase.a(Csm.o)(.sdata) is [...] read more
c
linker
linker-scripts
linker-warning
greenhills
0votes
1answer

RISCV Global object constructors are not being called

I am running into a similar problem to this post:Global constructor call not in .init_array section I will re-use his example, but I think this is a problem specific to the RISCV environment, which is why I am creating a new post. class foobar { int i; public: foobar() { [...] read more
c++
constructor
linker
global-variables
riscv
0votes
1answer

EndsWith SQL query for VARBINARY(MAX) FILESTREAM columns

Currently I have two SQL query proposals which call DATALENGTH on the same VARBINARY column more than once, due to conditions in the WHERE clause. Do these multiple calls to DATALENGTH in the same query interfere in the performance, or can the result of the DATALENGTH calculation be optimized/cached by [...] read more
sql
sql-server
varbinary
sqlfilestream
datalength
0votes
1answer

Adding a property on Aspose.Email and reading it on Interop.Outlook.MailItem

I have an App that uses Aspose.Email on the server side and Microsoft.Office.Interop.Outlook on the client side. I want to add some named values to my MailMessage (or MapiMessage) so that they can be read in Microsoft.Office.Interop.Outlook.MailItem.ItemProperties. Can anyone help me with this? I’ve tried several things, but the last [...] read more
c#
outlook
aspose
0votes
1answer

Why is function pointer 12 bytes long?

I've been inspecting the heap memory when executing the following code: #include <stdlib.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <sys/types.h> struct data { char name[64]; }; struct fp { int (*fp)(); }; void winner() { printf("level passed\n"); } void nowinner() { printf("level has not been passed\n"); } int main(int [...] read more
c
pointers
memory
0votes
1answer

Python-Pandas Parser for Text Records arranged in non-uniform number of Rows-Lines

I'm very new to Python and pandas and I would like to parse a very big text file (200-500 MB) which has the information displayed as Records, with each record containing data fields as rows/lines rather than columns, and such Records having different number of lines (as they provide different [...] read more
python
parsing
pandas
text
0votes
1answer

ESP8266 - Connect to TCP Server (in C)

I am currently trying to get the esp8266 to connect to my http server. Connecting to my local wifi network works but if I try to connect to my server I get this error on the terminal window: > Fatal exception 9(LoadStoreAlignmentCause): epc1=0x4026027b, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000011, depc=0x00000000 In the user_init [...] read more
c
tcp
esp8266
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

java.lang.unsatisfiedLinkError lib not found :(failed to link mylib.so)

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

Check recursively if array is sorted up on the even indexes

I'm trying to write a recursive function which checks whether the given array is sorted upwards on the even indexes. for example I have an array of size 5. and the numbers are 1 , 2 , 3 , 4 ,5. It will return 1 because arr[0] < arr[2] < [...] read more
c
arrays
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
1answer

What does ulConfig |= ulMode; mean?

I am not really sure what does ulConfig |= ulMode; mean? If void gpio_setup_mode(unsigned long ulGpioNum, unsigned long ulMode, unsigned long ulInvert) { unsigned long ulConfig = ulInvert; ulConfig |= ulMode; s_ptGPIO->auiCFG[ulGpioNum] = ulConfig; } and gpio_setup_mode(GPIO8, GPIO_MODE_OUTPUT, GPIO_NOINVERT); where GPIO8, GPIO_MODE_OUTPUT, GPIO_NOINVERT #define GPIO8 8 #define GPIO_NOINVERT 0x00000000 #define [...] read more
c
microcontroller
0votes
1answer

Odd linker issue "relocation R_X86_64_32 against" - not a typical -fPIC issue

I have an odd problem when trying to create a fat shared library on Ubuntu 14.04 (64). The error messages are what you typically get if you forgot to add -fPIC or link to a wrong architecture library: /usr/bin/ld: /usr/lib/libproj.a(pj_init.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making [...] read more
gcc
dll
linker-errors
g++4.8
0votes
1answer

How to find out Interval from RecurrenceItem in EWS

i created a function which gets all Informations of an appointment item from EWS. I also need the Interval of an RecurrenceItem but it doesnt work. This is what i did: ExtendedPropertyDefinition PidLidCleanGlobalObjectId = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Meeting, 0x00000023, MapiPropertyType.Binary); ExtendedPropertyDefinition PidLidDayInterval = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Appointment, 0x00000011, MapiPropertyType.Integer); ExtendedPropertyDefinition PidLidWeekInterval = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Appointment, [...] read more
c#
visual-studio-2010
web-services
exchangewebservices
0votes
1answer

Strange stack trace in Windows Phone 8

Hi I have a Windows phone app which is getting a number of crashes reported by the dev center. I recently did an upgrade which included some minor changes and the moving of some common code from a Silverlight class library to a Windows phone class library (so that I [...] read more
windows-phone-8
crash-dumps
0votes
2answers

C++ use a linux library on a mac (elf64-x86-64 on x86_64-apple-darwin)

I'm currently trying to compile a program on a Mac OS X (10.9) using a library initially compiled for Linux. Is there a way to use this library? Here is the output of objdump -f libmylib.a: Hour.o: file format elf64-x86-64 architecture: i386:x86-64, flags 0x00000011: HAS_RELOC, HAS_SYMS start address 0x0000000000000000 Menu.o: [...] read more
c++
x86-64
elf
0votes
0answers

Allow multiple options to be selected mapped to int instead of binary flags

I want to create a DisplayMode for a control, that filters the data that shows up in it. The types that feed into the control come from a database, and have an ID that is used to filter the list. What I'd like to do: enum ItemType { None = [...] read more
c#
collections
enums
0votes
4answers

C++: Finding out how my computer stores bytes

Got this assignment where we are going to check how our computers store bytes and so on and I can't really grasp how to get the correct answer, but the code pretty much explains how I am thinking. Thanks in advance. #include <iostream> using namespace std; union hexNumber{ signed short [...] read more
c++
byte
endianness
signed
short
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
1answer

Using CvSVM (openCV) in Android Native, "Fatal signal 11"

I am developing an app that uses a SVM to classify a color in an image. I am doing this in Android using the OpenCV Native library (JNI). When the app starts, right after loading the libraries, I call a native method to load the SVM from a file and [...] read more
android
c++
opencv
java-native-interface
native
0votes
2answers

Application crash on waking app from idle

My app is crashing when I wake it up from idle after long time. This is not always reproducible but it happens every third or fourth time. In my viewWillAppear I am calling some methods on self object. The crash log says: Incident Identifier: E009C90F-E544-4E2F-9A32-A5F630447510 CrashReporter Key: 32cf5a93f8d9560a1180daaf7c03328648745970 Hardware Model: [...] read more
iphone
ios
xcode
cocoa-touch
uiview
0votes
1answer

Visual-C++ inline assembler NEAR JMP

How can I use a relative near jmp in MSVC inline assembler? I tried the following: __asm { jmp 0x00000011 } But it raises an error error: > ... error C2415: invalid operand So, how can a relative near jump be realised? I need the jmp instruction with opcode E9. read more
visual-c++
assembly
masm
0votes
1answer

g++ symbol versioning. Set it to GCC_3.0 using version 4 of g++

I need to implemente a Java class which uses JNI to control a fiscal printer in XUbuntu 8.10 with sun-java6-jdk installed. The structure is the following: EpsonDriver.java loads libEpson.so libEpson is linked dynamically with EpsonFiscalProtocol.so ( provided by Epson, no source available ) and pthread I use javah to generate [...] read more
g++
java-native-interface
0votes
1answer

Unexplained universal app crash on iPad

we have an iPad app crashing without. However it is a universal app using the same Views as an iPhone app and the iPhone isn't crashing. The iPad crashes randomly in the sim and the actual device. And the Console provides ZERO reason or even that it has stopped working. [...] read more
xcode
ipad
ios4
universal-binary
0votes
1answer

GDB Quirks with Thread Process

I am debugging a process with multiple threads in GDB. I compiled the sole source file with the -g flag. However, while running in GDB, the following scenario occurs: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7fe2b70 (LWP 2604)] 0x00000011 in ?? () Prior to the switch, the [...] read more
c
gdb
pthreads
segmentation-fault
sigsegv
-1votes
2answers

C# CIL stloc.1 issue

The former question is solved, please proceed to the end. So I have this code here: using Harmony; using RimWorld; using Verse; using UnityEngine; using System.Collections.Generic; using System.Reflection.Emit; using System; using System.Reflection; namespace RandomPlus { [HarmonyPatch (typeof(Page_ConfigureStartingPawns), "RandomizeCurPawn")] class Patch_RandomizeMethod { static void Prefix () { RandomSettings.ResetRerollCounter (); } static [...] read more
c#
cil
-1votes
2answers

Get lines between starting and ending keywords in text file, then do post processing using python

I have a text file, I would like to extract the lines between starting (Socket:) and ending keywords (Socket:), then do a processing. Input: Socket: 1 Device ID: 0x0B028041 0xCC344007 0x10000834 0x00000011 CB: 3/ID: 0x445DDC13 BIBID: 0x65C A:0xB0000190 D:0x310020FF A:0xB0000194 D:0x00000000 A:0xB0000198 D:0x31002010 A:0xB000019C D:0x00000017 A:0xB00001A0 D:0x31002020 A:0xB00001A4 D:0x00000017 A:0xB00001A8 [...] read more
python
regex
python-2.7
-2votes
1answer

default behaviour for std::streams with unsigned

I think that when using ">>" "<<" stream operators, unsigned integer types are serialized/deserialized as binary data, while signed integer types are serialized as formatted text. My assumption is: uint32_t a= 17; int b= 54321; file_out<<a; //write 0x00000011 to the file according to some endiannes file_out<<b; //write following ASCII characters [...] read more
c++
serialization
stream
-4votes
1answer

Getting "exec format error" while executing binary file

#include <stdio.h> #include <stdlib.h> int main() { volatile int x; printf("without assignment %d", x); x = 100; printf("%d", x); } -------------------------------------------------------------------------------- gcc -c -o volatandconstvolatile volatandconstvolatile.c I got the volatandconstvolatile file but -rw-rw-r-- 1 naveenkumar naveenkumar 1600 Aug 8 05:12 volatandconstvolatile then I changed the permissions chmod 777 volatandconstvolatile then [...] read more
c
gcc

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