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.
I started writing a debugger in C#, to debug any process on my operating system. For now, it only can handle breakpoints (HW, SW, and Memory), but now I wanted to show the opcode of the process. My first attempt was with nidsasm (NASM), but this is not suitable, because [...] read more
I'm making a Rebar wrapper for .NET. Here's how I've made my control. public class Rebar : Control { public Rebar() : base() { //Control won't even work if I let UserPaint enabled SetStyle(ControlStyles.UserPaint, false); } protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ClassName = "ReBarWindow32"; [...] read more
I'm trying to use the Windows API to set the primary monitor. It doesn't seem to work - my screen just flicks and nothing happens. public const int DM_ORIENTATION = 0x00000001; public const int DM_PAPERSIZE = 0x00000002; public const int DM_PAPERLENGTH = 0x00000004; public const int DM_PAPERWIDTH = 0x00000008; public [...] read more
I am unable to connect USART_1 with bluetooth hc-05. The Microcontroller is STM32F103RB. Here's the code (I am not using any library) #define APB2_FREQ 72000000 void USART1_Send(char* data) { unsigned int length = 0; while(data[length] != '\0') ++length; int i = 0; while(i < length) { while((USART1_SR & 0x00000080) == [...] read more
I am trying to run a simple instance after a fresh installation of OpenStack. The instance cannot start and in the log I found "libvirtError: internal error Cannot find suitable CPU model for given data". Please help. Some info: libvirt.x86_64 0.10.2.6-5.el6.centos.alt qemu-kvm.x86_64 2:0.12.1.2-2.355.0.1.el6.centos.6 CentOS release 6.4 (Final). (Linux 3.4.54-8.el6.centos.alt.x86_64 #1 [...] read more
I am trying to create application that get the list of processes that have systray icon. I searched alot and found number of references: 1. http://www.raymond.cc/blog/find-out-what-program-are-running-at-windows-system-tray/ 2. https://superuser.com/questions/708674/how-to-find-out-what-process-a-system-tray-icon-corresponds-to 3. Which Windows process is displaying a given taskbar system tray icon? 4. https://social.msdn.microsoft.com/Forums/vstudio/en-US/53e27f60-37af-406f-bbdc-45db2bd3dee6/how-to-find-a-system-tray-process 5. https://social.msdn.microsoft.com/Forums/vstudio/en-US/4c4f60ce-3573-433d-994e-9c17f95187f0/finding-which-applications-and-services-are-listed-in-the-system-tray?forum=csharpgeneral 6. http://www.codeproject.com/Articles/10497/A-tool-to-order-the-window-buttons-in-your-taskbar 7. Get ToolTip Text [...] read more
I have been getting a sizeable number of BADREQ entries in my HAProxy log (10+ per minute). Example: > Oct 1 19:46:00 LB haproxy[19022]: 69.171.251.8:57356 [01/Oct/2018:19:46:00.903] sitename sitename/ -1/-1/-1/-1/5 400 187 - - PRNN 19/19/0/0/5 0/0 "" Almost all of them seem to be coming from Facebook's crawler. The crawler [...] read more
One of "my" DL165 G7 Proliants has rebooted out of the blue for the second time this month. The reboot was accompanied by these system event log entries in LightsOut: Event Type Date Time Source Description Direction OEM -- -- -- 00 00 00 00 01 02 00 00 00 [...] read more
I am trying to send the sms by both adb shell am and adb shell service call .I am getting error for both . a)I am trying to send the sms following adb shell am command adb shell am start -a android.intent.action.SENDTO -d sms:"phoneNumber" --es sms_body "SMS BODY GOES HERE" [...] read more
I am installing the I2CTools USB-to-I2C Elite driver for Win 10 x64, but I got a dialog saying ”Jungo Connectivity: a digitally signed driver is required.” In device manager the two drivers JungoConnectivity WinDriver1251 and USB-to-I2C Elite drivers are marked with yellow triangles and Details says: Not digitally signed. I [...] read more
System description: CentOS 7. SuperMicro X9DRW-iF board. Latest BIOS (and SCU option ROM), using SCU option ROM. Four 300GB WD HDDs connected to the board's SCU. Six HDDs connected to the six individual SATA ports. Normal software running for our business. I set up this system and twice in two [...] read more
I need to check whether a file (on a remote server via UNC path) exists or not (permission is not a problem here; I make a required impersonation etc.). I use CreateFileW function for creating file handle. I've also tried GetFileAttributesEx but the behavior is the same. HANDLE CreateFileW( LPCWSTR [...] read more
I am working on lpc2468 ARM-based microcontroller. I am not able to configure the UART1 of the controller. Previously I was using UART0 for the same purpose, but due to some changes in hardware now I have to use UART1. I want to connect GPRS module (SIMCOM 300) to the [...] read more
I'm using JNA to try and get access to a process that is ran as admin. I did some research and noticed that Access is denied is returned when you dont have SeDebugPrivilege. I enabled SeDebugPrivilege but I'm still getting the same error. Any help? Processes.enableDebugPrivilege(Kernel32Direct.GetCurrentProcess()); } catch (Exception e) [...] read more
I know this is a well known issue, but I've tried everything I can find online and I still can't get 1607 or 1703 to deploy to my Windows 10 clients using WSUS on Server 2012 R2. Originally I synchronised WSUS without installing KB3159706 which meant that none of my [...] read more
I have a program which reads 200byte packets from a queue and writes them to a series of two minute files. Data arrives at 6MB/s which equates to 30,000 calls to fwrite() per second. Once in a while the queue would overflow because fclose() would take 10-30 seconds to close [...] read more
I have a C# application handling touch by hooking to the Windows API message loop and listening to WM_TOUCH event. It work perfectly except when the screen is disconnected or switch off. Windows OS still has touch but the application don't receive touch event anymore. Here the code used. On [...] read more
Im currently learning to build my own bootloader. I was able to setup a gdt and get into protected mode. But when i tried to move 0x18 (third segment in gdt) into ds most of my registers are destroyed and eip gets something random Code that causes error: (im already [...] read more
I have a header file (not written by me, which I cannot change) which contains definitions in the following format: #define SPC_TMASK0_NONE 0x00000000 #define SPC_TMASK0_CH0 0x00000001 #define SPC_TMASK0_CH1 0x00000002 #define SPC_TMASK0_CH2 0x00000004 #define SPC_TMASK0_CH3 0x00000008 #define SPC_TMASK0_CH4 0x00000010 #define SPC_TMASK0_CH5 0x00000020 #define SPC_TMASK0_CH6 0x00000040 #define SPC_TMASK0_CH7 0x00000080 #define SPC_TMASK0_CH8 0x00000100 [...] read more
I am having problems debugging a multi-threaded C++ application on an ARMv7 targets. The issue shows up on two different ARM targets, and I use different toolchains for them: Backtrace stopped: previous frame identical to this frame (corrupt stack?) I've checked some threads, but (due to having the same issue [...] read more
I am trying to get file owner using GetSecurityInfo, but get GetSecurityInfo is always returning 5, "ACCESS DENIED" even if I have access to get ownership of the file. The .NET method "GetOwner" works, but I need long filename support, and am restricted from using .NET 4.6.2 or 3rd party [...] read more
I have a multi-threaded process for which I wanted to generate core dump. gcore ran, gdb started, the process went to "t" state according to ps. However, it got stuck there. As it was already being traced, I could not attach another gdb session to see what was going on. [...] read more
I could drive a servo by using PWM0 channel on GPIO 18 of Raspberry Pi with following c code: #define BCM2708_PERI_BASE 0x3F000000 #define PWM_BASE (BCM2708_PERI_BASE + 0x20C000) #define CLOCK_BASE (BCM2708_PERI_BASE + 0x101000) #define GPIO_BASE (BCM2708_PERI_BASE + 0x200000) #define PWM_CTL 0 #define PWM0_RNG 4 #define PWM0_DAT 5 #define PWM0_MS_MODE 0x0080 // [...] read more
so when I try to iterate over the "ObserverTree"(typedef std::map<std::string, std::vector<std::string>> ChannelTree; typedef std::map<std::string, ChannelTree> ObserverTree;) im getting this error > unknown location(0): fatal error in "LoadTest": memory access violation at address: 0xfffffffffffffff8: no mapping at fault address in the line observerIndicatorMap.insert(std::pair<std::string, int>(observerIterator->first, i)); if this line is commented out [...] 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 previously had a working RAID 1 array. I think as a result of running grub-install /dev/sdb and grub-install /dev/sdc I somehow wiped my computer of md0 and md1. I need to set them up again. When I try to create the md0 array, I am getting the following error. [...] read more
The issue we are seeing is that some of our NFS mounted directories are disappearing. Literally just disappearing. They continue to exist at the server end. At the client (CentOS 7.4, using el-repo's kernel-ml at version 4.16.6, nfs-utils-1:1.3.0-0.48.el7) end the drive is non-responsive. Calls to ls /mountpoint just hang. The [...] read more
I've installed WSUS on a Windows server 2012 R2 and configured the workstations and clients via Group Policy to install updates automatically from WSUS. The servers are detected by WSUS and report to the WSUS server. In the WSUS server I can see that the server is missing 53 updates. [...] read more
All, I run a java application container with resource limit, as lots of oom kill events happen every 2 or 3 minutes, then execute ps aux, the command hangs. this problem is easy to reproduced when run docker instance with kubernete, and khugepage was already set disabled. Would anyone can [...] read more
I'm writing a python script to delete files on MacOS, and I run into SIP protected files. I know the presence of st_flags more than likely mean I can't delete the file. Like here: >>> os.stat(f).st_flags 524288 But I'm curious to know what that actually means. I looked in stat.h [...] read more
I am using 16bit microcontroller which uses gcc4.5 compiler, 32kbyte flash/1kbyte ram. compiling is fine without error, memory is reaching to it's limit but it has some vacancy on both flash/ram and works just fine However, when i define static array without initialization it causes system to die. I cannot [...] read more
I'm working on converting what was originally a web forms .NET application to UWP. The application is for using company-issued badges to record meeting attendance instead of our current paper sign in sheets. The original program uses an Omnikey 5427 CK in keyboard wedge mode and has no problems. For [...] read more
I have some code which retrieves the 128bit NTFS Ids from files at specific paths. Then I attempted to retrieve the file path using this ID. The code works as long as when retrieving the paths I run as admin. This is not going to be possible in production. Unfortunately [...] read more
I'm implementing variable lenght encoding and reading wikipedia about it. Here is what I found: 0x00000080 0x81 0x00 It mean 0x80 int is encoded as 0x81 0x00 2 bytes. That what I cannot understand. Okay, following the algorithm listed there we have. 1. Binary 0x80: 00000000 00000000 00000000 10000000 2. [...] read more
The legacy interrupt assignment for a PCI interface is receiving interrupt 0. We are evaluating the Xilinx Zynq UltraScale+ MPSoC ZCU102 Evaluation Kit. We have a PMC interface that is on a PCI-e carrier inserted into the PCI-e slot on the board. When the driver is loaded the interrupt for [...] read more
So I have a small C# app that has a host and a password and wants to connect to that host, which is running out of the box Windows 10. The problem is that I get a dialog saying the > host requires a password. Previously connecting to Windows 7 [...] read more
Using Visual Studio 2015 I've recorded a web test which includes uploading a file to the website. This site doesn't allow to upload files with the same name. In webtest scenario I have a File Upload Parameter with the property Generate Unique Name set to True: enter image description here [...] 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've copied the following class from stack overflow. /// <inheritdoc /> /// <summary> /// Provides access to a network share. /// </summary> public class NetworkShareAccesser : IDisposable { private string _remoteUncName; private string _remoteComputerName; public string RemoteComputerName { get { return _remoteComputerName; } set { _remoteComputerName = value; _remoteUncName = [...] read more
Does anyone know how to play the sound through the speaker that we normally use during the phone conversation (not the loud speaker, but the ear speaker)? I have developed the app similar to Skype and my only problem is that when the sound is played through the loud speakers, [...] read more
I'm currently working on a project for university that really grinds my gears, because it keeps on crashing without giving me any Error in Logcat. I'm using a Huawei Honor 7. What I want to achieve: I want to connect 2 Adafruit Feather BLE Boards with my Phone, gather some [...] read more
I want to make some simple OpenGL animation on my tkinter window. I dont want to include any needless dependencies so I'm writing everything from scratch with ctypes. So far I have this: #!/usr/bin/env python3 import tkinter import ctypes from ctypes import cdll GLX_PIXMAP_BIT = 0x00000002 GLX_WINDOW_BIT = 0x00000001 GLX_PBUFFER_BIT [...] read more
We are running docker 1.7.1, build 786b29d on RHEL 6.7. Recently we have had multiple times when the docker daemon locked up and we had to reboot the machine to get it back. A typical scenario is that a container that has been running fine for weeks suddenly starts throwing [...] read more
I'm getting an error with the Socket 8ci after idle time on iOS. The error is: connection to service 0x00000080 on device failed with error 305. The only way to get it to work again is to 'forget' the bluetooth device and reconnect it. Any insights on this problem appreciated. [...] read more
With this code can be detect color of pixel and click on that pixel. I want to detect color of pixel after click Login button in infinite loop that each time color found program automatically play sound! For example, in an infinite loop or any one second! And finally, I [...] read more
The Android 4.4 device (radxa rock) in question has a broken ethernet socket due to forcing a slightly oversized plug in it. Im replacement I have a Usb-ethernet dongle connected fairy successfully - using adb I can do stuff like: netcfg eth0 down netcfg eth1 up netcfg eth1 dhcp setprop [...] read more
I am trying to set an integer variable to a combination of an enum values, the enum is: public enum WebBrowserDownloadControlFlags : uint { DLIMAGES = 0x00000010, VIDEOS = 0x00000020, BGSOUNDS = 0x00000040, NO_SCRIPTS = 0x00000080, NO_JAVA = 0x00000100, NO_RUNACTIVEXCTLS = 0x00000200, NO_DLACTIVEXCTLS = 0x00000400, DOWNLOADONLY = 0x00000800, NO_FRAMEDOWNLOAD = [...] read more
I am trying to program the logomatic by sparkfun, and yes I have used their forum with no responses, and having some issues. I am trying to send characters to the UART0 and I want the logomatic to respond with specific characters and not just an echo. For example, I [...] read more
I want to create a dropdown control which should be inactive and have keyboard input focus. So I created a control as below. public class DropDownEdit : UserControl { [DllImport("user32.dll")] public static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); private const int WS_EX_TOOLWINDOW = 0x00000080; private const int WS_EX_TOPMOST = 0x00000008; [...] read more
I've been working on a small application that basically runs off bitmap screenshot images. The bitmap is then detecting a certain pixel from a Resources.GrabPixel .bmp I loaded in. This method doesn't seem reliable in certain ways when many similar pixels are involved. If I was to use this in [...] read more
Why does the same code in .Net (C#) hangs, but in C++ it isn't? The really problem is in System.IO.FileStream, but I reduced it down to CreateFile, nevertheless it still hangs in .Net (while being almost 100% analogue to C++ code): using System; using System.Runtime.InteropServices; using System.Threading; namespace ConsoleApplication1 { [...] read more
I'm writing a program with the ARMv7-A assembly language. I want to use Virtualization Extension and make the processor mode PL2 in the non secure world. > Therefore, I use hvc instruction as follow: 1. start in secure PL1(SVC) mode. 2. set MVBAR and VBAR. 3. use smc instruction and [...] read more
Windows Update is giving me this error: > We couldn't install updates because there's a problem with the date and time information on your device. Make sure your date, time, and time zone settings are correct and we'll try again later. My date and time settings are correct. I found [...] read more
I've recently started experiencing some issues with a couple of workstations on my network getting the above-mentioned errors when trying to check for and download updates for Windows 7 (x64). Sometimes I get the 8024402F error, and sometimes I get the 80072EFE error. I've attempted to resolve the problem myself [...] read more
I see error 0x80072ee2, and the following from windowsupdate.log 2014-09-27 02:26:45:866 480 69c AU Triggering AU detection through DetectNow API 2014-09-27 02:26:45:866 480 69c AU Additional Service {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} with Approval type {Scheduled} added to AU services list 2014-09-27 02:26:45:866 480 69c AU Triggering Online detection (interactive) 2014-09-27 02:26:45:867 480 c30 [...] read more
I've got a WSUS 3SP2 with all patchs on Windows 2008 R2. It updates all servers. all works but servers 2012R2 on a remote site. All others Win2012R2 on other sites works. In the site which have issue, there's only 3 2012R2 servers. There are seen by WSUS console, and [...] read more
My server was working fine for 173 days then it started to happen. Upgrading CentOS 6.6 kernel to latest one didn't helped. Rebooting helps for about 10 minutes then it starts all over again. I'm running dedicated server Intel Core i7 980X, MSI X58-E Pro board, 2x Intel SSD 240 [...] read more
I am currently learning how debuggers function and I am trying to program one myself following the book 'Gray Hat Python' by Justin Seitz. I am quite new to python and using the Windows API so any help is appreciated. I am using python 2.7 and Windows 10 64bit (in [...] read more
There are some macro about nginx upstream and What is 'FT' means in these definitions? #define NGX_HTTP_UPSTREAM_FT_ERROR 0x00000002 #define NGX_HTTP_UPSTREAM_FT_TIMEOUT 0x00000004 #define NGX_HTTP_UPSTREAM_FT_INVALID_HEADER 0x00000008 #define NGX_HTTP_UPSTREAM_FT_HTTP_500 0x00000010 #define NGX_HTTP_UPSTREAM_FT_HTTP_502 0x00000020 #define NGX_HTTP_UPSTREAM_FT_HTTP_503 0x00000040 #define NGX_HTTP_UPSTREAM_FT_HTTP_504 0x00000080 #define NGX_HTTP_UPSTREAM_FT_HTTP_403 0x00000100 #define NGX_HTTP_UPSTREAM_FT_HTTP_404 0x00000200 #define NGX_HTTP_UPSTREAM_FT_HTTP_429 0x00000400 #define NGX_HTTP_UPSTREAM_FT_UPDATING 0x00000800 #define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK [...] read more
We have a problem with file sharing when processes on several hosts accesses the same file. All hosts are running the same version of Windows 2012 R2. (host A mentioned below is a node in HA Failover Cluster, not sure if that is relevant.) One of our service engineers was [...] read more
I have been trying to install a custom tap adapter using the tap-windows6 repos on github (https://github.com/OpenVPN/tap-windows6) on windows 10. After building a custom tapinstall and replacing my inf file I tried to use the tapinstall command with a custom id. I have changed everything in OemVista.inf to the correct [...] read more
I was trying to extract tables from a PDF file with Camelot. Here is my code: import camelot tables = camelot.read_pdf('foo.pdf') print(tables) and I am getting the error while running this script as follows: File "C:/Users/gibin/PycharmProjects/ML/Table_Tester.py", line 20, in <module> table=tables = camelot.read_pdf(r"C:\Users\gibin\PycharmProjects\ML\Doc_downloader\GWC_Docs\781313686.pdf") File "C:\Users\gibin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\camelot\io.py", line 117, in read_pdf **kwargs [...] read more
I have a .NET WinForms application written in C#. The application has two operational modes: * Regular GUI mode. * Possibility to execute calls with a CLI. When I run my application from a Cmd window, the output appears on screen, but the application does not close until I press [...] read more
I'm trying to create an OpenGL Overlay window (using C# and OpenTK). I've managed to get the transparency working using DWM BlurBehind with an invalid region> I then set the owner of the form to another process so it only overlays over the top of that. This is working great, [...] read more
I am using IVONA library to text-to-speech, everything works fine but I am facing one issue on keyboard space key press I need to speak the written word before space, this is also working fine when user type slowly, but when user type word fast at that time ivona crash [...] read more
I have a problem accessing a shared folder with a webservice. In IIS I have configured a user like "IIS_USER", but he can not see the shared folder because it can only be seen by accounts in our domain. I need to request that file with another user like (domain\user)+pwd [...] read more
in windows 10 I am trying to invoke context menu commands like "Share" and "Edit with Photos" but I am not having any luck. My code ends with the error: $ python context.py Traceback (most recent call last): File "context.py", line 41, in <module> CM.InvokeCommand(CI) pywintypes.com_error: (-2147023741, 'No application is [...] read more
I'm having a problem with loading printer dll. I have a dll file from the printer manufacturer (JniPrinterStatusLib.dll). I wrote code like printer manufacturer suggested. The code is: package com.printer.test public class JniPrinterStatus { static{ System.loadLibrary("JniPrinterStatusLib"); } public native int GetStatus(String printer); } package com.printer.test public class TestSample { public [...] read more
I have made a PE+ UEFI application in nasm and have been able to use EFI_BOOT_SERVICES to print text, to load the GOP, and when I call GetMemoryMap the return value is EFI_SUCCESS (0) and I can return safely to the EFI shell and I can reboot the (virtual) machine [...] read more
I provide files with different Attributes in the projected file system. I do this in the enumeration callback and also for the placeholders: // GetDirectoryEnumerationCallback() PRJ_FILE_BASIC_INFO fileBasicInfo = { 0 }; auto file = &holder->files[holder->index]; fileBasicInfo.IsDirectory = file->IsDirectory; fileBasicInfo.FileSize = file->IsDirectory ? 0 : file->FileSize; fileBasicInfo.ChangeTime = file->ChangeTime; fileBasicInfo.CreationTime = [...] read more
Just starting out with boost test framework. Using Ubuntu + gcc (running on Windows through the new thing if that matters). When I run my tests, I get this: unknown location(0): fatal error: in "PhraseListTest/everythingEqual8": signal: SIGSEGV, si_code: 0 (memory access violation at address: 0x00000080) /mnt/c/projects/matching/matching-native/src/test/cpp/phrase_list_test.cpp(70): last checkpoint *** 1 [...] read more
related to:Confusing ReturnLength from Windows GetLogicalProcessorInformationEx function I have read the documentation for GetLogicalProcessorInformationEx. It states > Buffer [out, optional] A pointer to a buffer that receives an array of SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX structures. If the function fails, the contents of this buffer are undefined. Nowhere is the number of elements defined. [...] read more
I would like to write an integer(just one value, it can be also other type) to a specific register (for example: 0x60006666) on a Linux machine using the ARM platform. There are many examples using the mmap(2), but it is not clear how to write just one value to a [...] read more
Does any people know what error message is this means? I unable to run the Google Calendar in my apps. I take the source code and put in my project it show this message. Source: How to integrate google calendar api in android application Sorry for if there was lack [...] read more
I am working on executing MIPS instructions by hand and I am not really understanding how it works. In the example given below, the contents in $t0 changes from 0x00001117 to 0x00000080. I do not understand why though. Any help would be great. lbu $t0, 5($s0) lbu (i-type, load byte [...] read more
This question may have been asked, but I've got a toy program that exemplifies the issue fairly well. SYNOPSIS When compiling with gcc -g using gcc 4.9, the debug symbols included, especially for externally declared global variables, is at an expected and familiar amount. When switching to gcc 6.3, the [...] read more
Recently i had copied this code (Thanks CristiFati): Python- How to communicate with printer While its working on its own, i can't figure out how can i get total page counting to work, i added it to DEFAULT_FIELDS var and to NotifyData method, without luck as follow: def NotifyData(self): if [...] read more
I've managed to develop an AppBar which stays in top of the screen, and maximized windows don't overlap with it. Now, i want tohave the same behavior with applications running in fullscreen mode : for exemple if i run chrome or ie in fullscreen my appbar stays on top but [...] read more
I've created my own OpenGL context using native API calls and NativeWindow in C#. I based on WIN32 OpenGL examples and got this: public class OpenGLControl : System.Windows.Forms.NativeWindow{ private IntPtr HDC; //private Form Parent; #region Imports [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true, ExactSpelling = true)] static extern IntPtr GetDC(IntPtr [...] read more
this is quite a long post. I don't know very much about Android, but had to write an app. The app (handling a couple of intents and managing connectivity) runs smoothly and without problems. Now I have to add an UI. I tried to create an activity containing both some [...] read more
Device - IPAD running IOS 9.3.3 ( ARM architecture 64 bit - jailbroken) When i try to disassemble the function , i get weird output with unrecognized instruction set such as vqrshl, svcge. How do i fix it? I would really appreciate your help. Please see the gdb output below [...] read more
> Can a section in a Win32 PE contain a combination of both executable code, initialized data and unitialized data? Is it possible for a section to contain any combination of code and (un)initialized data as section data, or can the section only contain one type of data? It is [...] read more
Hoping to use a windows shell API call that can accept wild cards to change attributes programmatically. Utmost thanks/blessings for any/all thoughts. Borrowing code from http://www.resolvinghere.com/sm/how-do-i-change-an-attribute-of-a-file-from-within-a-visual-foxpro-program.shtml RUN /N ATTRIB +H "c:\test.txt" && Hidden causes dos window to noise itself RUN /N ATTRIB -H "c:\test.txt" && UnHidden Tom recalled this ... [...] read more
I have been trying to create a PE file with NASM (sometime ago I also asked something related to it here: Create and use sections for PE file in assembly (NASM)). Finally I managed to build a nicely small-sized running executable showing a message on a console. At that time, [...] read more
Our partner started using custom properties for messages being sent over IBM WebSphere MQ and our application developed using XMS.NET started to fail because of that. It turned out that the error is being thrown inside parsing the JMS envelope and inside the ParseJmsFolder method. This is the exception we [...] read more
I am trying to run a demo program in C provided by a company (US Digital) in a software package. I have downloaded all of the software properly and am using the exact demo program and header file provided by the company, so I am assuming that nothing is wrong [...] read more
I ran into this error and I don't quite understand what happens here. I hope the codesnippet is sufficient to make my point. I am modifying a callback to inject my own data into a response to a server. Basically the callstack looks as follows: mainRoutine(browseFunction(browseInternal), myBrowseFunction)) ^ takes response [...] read more
Most of what I have found just has people using a similar block of code as what I have done below (which I use to custom draw my border with a specific color on a user control): // PInvoke declaration [DllImport("User32.dll", EntryPoint = "GetDCEx")] internal static extern IntPtr GetDCEx(IntPtr hWnd, [...] read more
I'm using Windows API To Hide 3rd Party Application form from alt-tab using this piece of code : [DllImport("user32.dll")] public static extern int SetWindowLong(IntPtr window, int index, int value); [DllImport("user32.dll")] public static extern int GetWindowLong(IntPtr window, int index); int GWL_EXSTYLE = -20; int WS_EX_TOOLWINDOW = 0x00000080; int WS_EX_APPWINDOW; private void [...] read more
I'm trying to have an empty form window, but using the tool window style. However, calling Show() results in the following exception: > Win32Exception: The parameter is incorrect. NativeErrorCode: 87 > at System.Windows.Forms.Form.UpdateLayered() at System.Windows.Forms.Control.WmCreate(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmCreate(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, [...] read more
I am trying to implement the SHA-1 algorithm in Java 11, and while testing the hashing algorithm I get different hashes than when hashing with the java.security implementation of SHA-1. The pseudocode I attempted to follow can be found on Wikipedia. public static byte[] hash(byte[] message) { int h0 = [...] read more
This code is written by someone and this function code is as follows: According to color pixel location can be found and click on position was found, so far, the performance is excellent but a problem with this code, quickly find the position and the color is too low that [...] read more