This is probably not the correct interpretation of this error.
The Win32 error above is more likely to indicate the actual problem.
Flags
Severity
Success
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
$ 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
So I am doing the protostar challenges from exploit exercises and I'm completely stumped. Protostar runs on a virtual machine emulating an i686 processor. uname -a Linux protostar 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux The challenge involves injecting a malformed user provided input to allow [...] read more
I want to mount: remote:/media/user/directory into: /media/user/directory But the mount fails when the remote and local dir names are identical. Issuing the mount command reflects this. Yet if I use ANY other variation of the same target dir name it works as expected. Examples: /media/user/.directory # Succeeds. /media/user/_directory # Succeeds. [...] read more
I'm trying to replicate a CTRL + UP ARROW message but it's like ignoring the CTRL key, the result is like only sending UP ARROW, without sending CTRL This is how the Spy++ results looks: enter image description here [https://i.stack.imgur.com/XwIWW.png] CTRL KEYDOWN: enter image description here [https://i.stack.imgur.com/yjIuk.png] UP ARROW KEYDOWN: [...] read more
My list contains 49 entries. The size of the entries varies. For example, the first entry consists of 3032 rows and 27 columns. This corresponds to 27 signals with 3032 data each. The data is currently in binary. The size of the column also varies within an entry (the 27 [...] read more
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
I would like to configure tim3 ch1 ch2 as encoder mode, I have the same code on tim2( it's also general purpose timer) and it's working good. Maybe there's another bits should I set but I cant find them. I was trying to configure this timer to work without any [...] read more
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
I crosscompile AWS Embedded CSdk through gnueabigcc and put it in the device. But when I run it, there's an error that says I can't run it because I don't have a library. When I tried ldd "file name" with Linux, the phrase "not a dynamic Executable" appears. I think [...] read more
I want to print out the last two digits of a hexadecimal number in MIPS. I have this code but the output is 0x00000000 when I expected the output to be 0x00000021. Where am I going wrong? .data num: .word 0x00654321 .text la $s0, num # make s0 equal to [...] read more
So i have this logitech c920 camera 1920x1080 h264 capable and i would like to record the camera to file while at the same time copying/encoding the stream to a loopback device so the camera can be still used by other apps. here is the code i got so far: [...] read more
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
I am trying to inject a Frida gadget into an Android App which is already installed on an emulated (MEmu) Android 7.1 rooted system. When I connect to the device using adb, I can see that the files are store here: ASUS_Z01QD:/data/app/com.turtle.foo.bar-1 # ls base.apk lib oat split_config.armeabi_v7a.apk The MEmu [...] read more
There is something strange going on here. In the log, it mentions two other private IPs that I definitely do not use. Especially since it's on a different IP subnet. I've noticed this the other day and was actually able to ping them. Still can. The other thing I seen [...] read more
I am trying to discover details about C Linux Socket filter or C Linux BPS sockets. The network filter for socket on this link and other places on this link https://www.kernel.org/doc/Documentation/networking/filter.txt is something like this /* From the example above: tcpdump -i em1 port 22 -dd */ struct sock_filter code[] [...] read more
The following data is added to a bitstream bitstream.add(BYTE_OFFSET_SIZE_FLAG, 1) # value = 0 bitstream.add(NON_OVERLAPPING_AU_RANGE_FLAG, 1) # value = 0 bitstream.add(POS_40_BITS_FLAG, 1) # value = 0 bitstream.add(BLOCK_HEADER_FLAG, 1) # value = 1 bitstream.add(MIT_FLAG, 1) # value = 1 bitstream.add(CC_MODE_FLAG, 1) # # value = 1 bitstream.add(0, 2) # to make [...] read more
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
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
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
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
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
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 [...] read more
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
#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