Windows error 0x00000020, 32

Detailed Error Information

SHARING_VIOLATION[1]

MessageThe process cannot access the file because it is being used by another process.
Declared inwinerror.h

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

KERNEL_APC_PENDING_DURING_EXIT[2]

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

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 Code32 (0x0020)

Questions

41votes
10answers

Drawing on top of controls inside a panel (C# WinForms)

I know this question had been asked more than a few times, but so far I haven't been able to find a good solution for it. I've got a panel with other control on it. I want to draw a line on it and on top of all the controls [...] read more
c#
.net
winforms
37votes
1answer

Getting Symbols from debugged process MainModule

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
c#
debugging
pinvoke
debug-symbols
34votes
5answers

DeadObjectException on android app

Sometimes I start an Activity of my app, or switch fast between Fragments of a ViewPager which is in that specific Activity, I got DeadObjectException like this: W/ActivityManager( 669): android.os.DeadObjectException W/ActivityManager( 669): at android.os.BinderProxy.transact(Native Method) W/ActivityManager( 669): at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:660) W/ActivityManager( 669): at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:776) W/ActivityManager( 669): at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2501) W/ActivityManager( 669): at [...] read more
java
android
memory-management
android-activity
20votes
4answers

PowerShell launch script in new instance

I have a Master script that has several options. When you select 1 in the menu, action 1 will be executed and afterwards you'll get back to the menu. This is working fine but I would like to be able to select for example 8, which launches the code block [...] read more
powershell
10votes
1answer

Modular arithmetics and NTT (finite field DFT) optimizations

I wanted to use NTT for fast squaring (see Fast bignum square computation), but the result is slow even for really big numbers .. more than 12000 bits. So my question is: 1. Is there a way to optimize my NTT transform? I did not mean to speed it by [...] read more
c++
performance
optimization
modular-arithmetic
ntt
9votes
1answer

Understand U-Boot memory footprint

I don't understand what is happening in RAM when loading U-Boot. I'm working on a Xilinx Zynq ZC702 evaluation kit and I'm trying to load a Linux kernel on it using U-Boot. So I used the Xilinx tool Vivado and the SDK to generate a BOOT.bin file that is written [...] read more
linux-kernel
arm
u-boot
zynq
7votes
1answer

Does .NET Standard normalize HResult values across every platform it supports?

I am creating a simple function that creates a random file. To be thread safe, it creates the file in a retry loop and if the file exists it tries again. while (true) { fileName = NewTempFileName(prefix, suffix, directory); if (File.Exists(fileName)) { continue; } try { // Create the file, [...] read more
c#
.net
.net-standard
hresult
6votes
1answer

Can't get STM32F103RB usart1 to communicate with hc-05

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
stm32
uart
keil
hc-05
5votes
6answers

Can't write and save a video file using OpenCV and Python

I'm trying to process frames from a video stream, and it as a new video. This is what I'm doing : fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('Videos/output.mp4',fourcc, fps, (1080,1080)) I keep getting : OpenCV: FFMPEG: tag 0x44495658/'XVID' is not supported with codec id 13 and format 'mp4 / MP4 (MPEG-4 [...] read more
python
opencv
5votes
1answer

"Anomaly" in signed integer in C

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

Android Studio 3.0 and app freezing

I've updated my android studio from 2.x to android 3.0 stable. Since then when I try to push an application to my Nexus 7 2012 with cyanogenmod 12.1 (android 5.1.1) the entire system freeze and crash. At the reboot the system show the launcher but it's all friezed until I [...] read more
android
crash
freeze
android-studio-3.0
4votes
4answers

robocopy error with ERROR 32 (0x00000020)

I have two drives A and B. Using a python script I am creating some files in "A" drive and I am running a powerscript which copies all the files in the drive A to drive B in the interval of 1 sec. I am getting this error in my [...] read more
robocopy
4votes
0answers

How to get the clipboard content in adb shell?

I run the command service call clipboard 1 in adb shell to get the clipboard content, but it returns: Result: Parcel(fffffffc ffffffff '........'), while I make sure it has content in the clipboard. I don't know how to run the service clipboard successfully. It looks the command run failed. I [...] read more
android
adb
emulation
clipboard
3votes
1answer

How i can Change ownership for to shared folders to Domain administrator

This is on a small bussiness server 2008 (windows server standard FE copyright on 2007) with SP1 and powershell version 1 for some strange reason the server cannot update to sp2 and no longer updates work it reports (80072EFE error though it directly connected to internet without a firewall) so [...] read more
windows
network-share
3votes
1answer

How to specify to createfilew function get uncached result?

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
c#
c++
.net
filesystems
3votes
2answers

C++ OpenCV 3.4 / FFMPEG 3.4.1 VideoWriter and MP4 Output File Format

I'm running on an ARM BeagleBone X-15 Debian machine with Linux Kernel 4.9.35-ti-r44. In my C++ ( Qt 5 ) application, I want to save my cv::Mat frames to an MP4 format video. I have libx264 installed and compiled from scratch both ffmpeg and OpenCv. I can successfully record and [...] read more
c++
opencv
ffmpeg
3votes
0answers

python opencv videoWriter fps rounding

I am trying to measure some event in an input video file: "test.mp4". This is done by processing the video in several steps, where each step performs some operations on the video data and writes the intermediate results to a new video file. The fps of the input video is: [...] read more
python
mp4
frame-rate
cv2
2votes
1answer

How to read "fsutil usn readjournal C:" output

There is a utility that can be run on the Microsoft Windows command line called fsutil. One of the commands that it accepts is fsutil usn readjournal <volume pathname> along with several other arguments. Is there documentation on how to read the data produced by the program? My specific interests [...] read more
windows
documentation
journaling
fsutil
2votes
0answers

Opening a H264 stream from DVR using VLC/FFmpeg

I've been tinkering with ITX's DVR for the past few days, trying to connect to its RTSP stream using the SDK that manufacturer provides. The official syntax goes like this: PLAY rtsp://192.168.100.134/live?Live_video_channel_mask=0x0000FFFF&Live_audio_channel_mask=0 x00000000&Iframe_only=0&Stream_index=2/ RTSP/1.0\r\n Video channel mask declares the number of video channels one wants to see, e.g. if I [...] read more
ffmpeg
vlc-media-player
rtsp
dvr
cctv
2votes
1answer

Blue Screen of Death when accessing a mapped network drive

I'm facing a hard time solving a BSOD which happens whenever I access a mapped network drive. It only happens when I access a particular folder in this drive. The error code is: BAD_POOL_HEADER STOP : 0x00000019(0x00000020, 0x88EE2E28, 0x88EE2ED8, 0x0A160001) Is there any way to fix this besides formatting my [...] read more
windows-xp
bsod
network-drive
2votes
2answers

VSS writer NTDS State 11 failed and other writers state 5

We use Altaro VMBackup V7.0.20.3 to back up some VMs hosted on a single Hyper-V Host running Windows Server 2012 R2. One of the VMs running Windows Server 2008 gets the following error after the backup completes: > A Shadow Copy of the host was taken successfully, but an internal [...] read more
windows-server-2008
backup
windows-server-2012-r2
hyper-v
vss
2votes
1answer

Powershell: set Registrykey owner to SYSTEM user

I have to add an exclusions path to Windows Defender registry key. I am aware that there are Cmdlets provided from Windows Defender to use them directly for these kinds of purposes. But unfortunately, in Windows 7 and Powershell v2, they are not available. So I am trying to build [...] read more
powershell
access-control-list
windows-registry
2votes
0answers

Is there a way to audit file deletion on Solaris?

Can the timestamp and user+process that performed the file delete be tracked? I have now setup solaris auditing and have made the following audit_control, audit_class and audit_event entries: $ grep pf /etc/security/audit_control flags:pf,fd $ grep pf /etc/security/audit_event 6:AUE_UNLINK:unlink(2):fd,pf 48:AUE_RMDIR:rmdir(2):fd,pf 286:AUE_UNLINKAT:unlinkat(2):fd,pf 6182:AUE_filesystem_delete:delete filesystem:as,pf 6185:AUE_network_delete:delete network attributes:as,pf $ grep pf /etc/security/audit_class 0x10000000:pf:rems [...] read more
solaris
solaris-10
2votes
2answers

How to detect robocopy's failure to delete from source?

On my SQL Server instance I use SQL Agent to run a daily backup job in two steps. One of the steps uses Robocopy to move local backup files to network storage. The command to move the files looks like this: robocopy M:\backups \\NAS\backups$\Database /MOV /MIR /XJ /NP /COPY:DT The [...] read more
windows-server-2008
robocopy
sql-server
2votes
2answers

Julia language: Redirecting stdout does not affect every println // How to extract value from stdout

My original aim was to perform a ttest and gaining a pvalue. I used OneSampleTTest which looked promising yet the results ended up in stdout like this: julia> OneSampleTTest([1,2,3,4,5],3.1) One sample t-test ----------------- Population details: parameter of interest: Mean value under h_0: 3.1 point estimate: 3.0 95% confidence interval: (1.0368, [...] read more
julia
stdout
p-value
t-test
2votes
0answers

calling (kinect) functions in DLL using ctypes

I'm trying to write a wrapper for the MSoft Kinect function which are exposed in the MSRKINECTNUI.DLL. I am converting the Skeletal Viewer example that ships with the official drivers. This example is using C++ and is using the same function from the DLL. The original C++ doc that describes [...] read more
python
kinect
ctypes
2votes
0answers

Different results when using different cl.exe compiler options

I'm on Windows 7 64bit, using VS2013 Express for Desktop. Compile as default (using SSE) D:\Work>cl printf-test.c Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86 D:\Work>printf-test.exe FPU control word 0x0000037f 0. FPU status 0x00000000 1. 0x43380000 0x00000000 1. FPU status 0x00000000 2. 0x43380000 0x00000001 2. FPU status 0x00000000 3. [...] read more
visual-c++
sse
inline-assembly
fpu
x87
2votes
1answer

Alternative to dynamic creation of variable names

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
c++
2votes
1answer

Transparent Custom Graphing User Control: Turning Black on Runtime

I have a custom graphing usercontrol which has support for transparent backcolor. During design, the usercontrol shows properly. However, on runtime, the backcolor turns black. Chart on Runtime [https://i.stack.imgur.com/mjHth.png] I have searched stackoverflow for a solution, but most of the articles refer to WPF or controllers. :( Things I have [...] read more
c#
winforms
user-controls
transparency
graphing
2votes
1answer

c# Windows Shutdown process weirdness

I need help on an issue which is kind of simple but weird. The problem is with the shutdown and restart windows from my app. I know its simple and there are many examples online, but here's the deal. The shutdown/restart performed by these methods like process.start() or win api [...] read more
c#
wpf
windows
wcf
2votes
1answer

JNA in Windows: auto terminate child processes using Windows Jobs

I need to launch a child process in my java application in Windows, and eventually my java app can be killed/terminated via task manager. So I need to "link" this child process with the parent process, to both be terminated if the parent process terminate. In windows API we have [...] read more
winapi
subprocess
jobs
jna
2votes
0answers

GetSecurityInfo always returns Access Denied

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
c#
winapi
pinvoke
2votes
2answers

Is it possible to create a case insensitive custom locale for Windows 7 and/or 8?

Motivation: I would like to work with strings in PostgreSQL in a case insensitive manner. I am aware of the CITEXT data type and I am also aware of functional indexes where I can use the LOWER function. Still, the most efficient solution seems to be using a case insensitive [...] read more
windows
postgresql
locale
collation
case-insensitive
2votes
0answers

Bluetooth Enable Disable ADB command and Opening Android Activity with Android Driver not working in Some Android 7 devices

Result: Parcel( 0x00000000: ffffffff 0000006e 0065004e 00640065 '....n...N.e.e.d.' 0x00000010: 00420020 0055004c 00540045 004f004f ' .B.L.U.E.T.O.O.' 0x00000020: 00480054 00410020 004d0044 004e0049 'T.H. .A.D.M.I.N.' 0x00000030: 00700020 00720065 0069006d 00730073 ' .p.e.r.m.i.s.s.' 0x00000040: 006f0069 003a006e 004e0020 00690065 'i.o.n.:. .N.e.i.' 0x00000050: 00680074 00720065 00750020 00650073 't.h.e.r. .u.s.e.' 0x00000060: 00200072 00300032 00300030 006e0020 'r. .2.0.0.0. [...] read more
java
automation
adb
appium
2votes
1answer

CryptoAPI AcquireContext fails to retrieve key container

I am porting an old VB6 application to .NET and I am having an issue since yesterday afternoon with some CryptoAPI calls. In particular I can't retrieve a key container which is already defined. I use the CryptAcquireContext() function. I use some test code where I create the container. Then [...] read more
c#
.net
cryptoapi
1vote
0answers

RunOnceEx not generating log files (Windows 7)

I'm following the RunOnceEx documentation from here: https://support.microsoft.com/en-ie/help/310593/description-of-the-runonceex-registry-key and I want it to generate a log file, so I use both log-file flags: > 0x00000010 Create Error Log File Create C:\Windows\RunOnceEx.err file if errors occur 0x00000020 Create Execution Log File Create a C:\Windows\RunOnceEx.log file with status of commands But no [...] read more
windows-7
boot
automation
logging
1vote
1answer

Multiple BSOD Windows 7

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

Spacebar not working (Ubuntu server / MAC client)

I am having the following problem. When I press spacebar on the server, the client receives this sequence META+SHIFT+Z. Thus, I can't input any space in the client. Server is an Ubuntu 11.10, client is a MACBOOK pro with Lion. I have the same problem both with latest 1.4.x and [...] read more
keyboard
synergy
key-binding
1vote
1answer

Troubleshooting NIC Logs by NETDEV WATCHDOG

I have a CentOS 6.6 server (Linux 2.6.32-504) running on a brand new Dell PowerEdge R320. Just the other day, I began noticing problems in /var/log/messages related to one of my NICs. Note: this is a server cluster that requires eth0 to be used in a crossover network to a [...] read more
linux
centos6
dell-poweredge
nic
broadcom
1vote
1answer

bond failing to start the backup network card on failure of main one

Our production server has 4 network cards, linked 2 by 2 on 2 bonds. External network: bond0 : eth0 up & running, eth1 active-backup Internal network: bond1 : eth2 up & running, eth3 active-backup We got at the same time failure of eth0 and eth2 : Mar 3 10:38:16 localhost [...] read more
networking
linux-networking
ethernet
bonding
1vote
1answer

Altaro backup warning

I have a VM, which was originally running on Windows Server 2008 R2 with the Hyper-V role. The guest was a Server 2012 which was just serving as a domain controller (a backup one to the SBS 2011 server running on another physical machine). I moved the VM by shutting [...] read more
backup
virtualization
windows-server-2012-r2
domain-controller
hyper-v-server-2016
1vote
1answer

Registering a touch screen HID with RegisterRawInputDevices does not work

I am trying to get raw input data from a Surface touch screen, using RAWINPUT API. Getting the devices list works good. But when I want to register the touch screen device with RegisterRawInputDevices, I have issues : the function returns false with 87 (ERROR_INVALID_PARAMETER) in GetLastError... I have tried [...] read more
c#
windows-8.1
touchscreen
raw-input
1vote
1answer

How to make a panel with a truly transparent background

I have a transparent image that I have made in Photoshop which has a 30% opacity to it. Now I am trying to put that as background image for a panel. But an ordinary panel even if putting the background color to transparent, shows a white/control background. The panel doesn't [...] read more
c#
winforms
transparent-control
1vote
0answers

Explanation of st_flags bits

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
objective-c
linux
macos
file
unix
1vote
1answer

Trouble Converting Smart Card Program to UWP

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
uwp
raspberry-pi
smartcard
windows-10-iot-core
smartcard-reader
1vote
1answer

Trouble implementing code example using PInvoke Declarations

I am referencing the following thread here for my question: Get ToolTip Text from Icon in System Tray I basically want to do the same thing as the OP, but unlike some other users who responded to this thread, I am having trouble getting the code to work after adding [...] read more
c#
tooltip
pinvoke
tray
1vote
1answer

How to debug LoadLibraryEx when used from C#

I am trying to load a win32 dll in C# using the LoadLibraryEx. It is not working - I get a message stating in visual studio "vshost32.exe has stopped working". No exceptions or any clue as to why it doesn't work. I don't believe it is a dependency problem because [...] read more
c#
pinvoke
loadlibrary
1vote
0answers

How i change console application project to windows form app. project

I made a console application project for my project but its console application so how I change it to Form application... can anyone help me to change this console application to Windows form application. Who know change console application codes to form application codes. Please help me.. i want put [...] read more
c#
process
console
mutex
pid
1vote
1answer

ADC interrupt not getting called

I want ADC Interrupt Service Routine to be called after each End of Conversion. However it is not being called. Here's is my code: #define RCC_APB2ENR (*((volatile unsigned long*) 0x40021018)) #define ADC1_CR1 (*((volatile unsigned long*) 0x40012404)) #define ADC1_CR2 (*((volatile unsigned long*) 0x40012408)) #define ADC1_SMPTR2 (*((volatile unsigned long*) 0x40012410)) #define ADC1_SQR1 [...] read more
c
keil
adc
isr
1vote
2answers

does the loader modify relocation information on program startup?

I have always believed that resolving absolute addresses is completely the linker's job. That is, after the linker combines all object files into one executable, it will then modify all absolute addresses to reflect the new location inside the executable. But after reading in here that the loader does not [...] read more
linux
compilation
linker
loader
virtual-memory
1vote
0answers

How to Get IMEI Number From Adb Command of Higer Level Api Devices

I am working on Adb with my Samsumng Galaxy Device. I want to Get IMEI number of Device using Adb Command but Unable to do that. I Tried Following:- adb shell dumpsys iphonesubinfo but it returns nothing I also tried with Service Call Command:- adb shell service call iphonesubinfo but [...] read more
android
adb
1vote
2answers

How to upload a file with unique name in Visual Studio Webtest

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
visual-studio
load-testing
web-testing
webtest
1vote
1answer

Programming and configuring the U-boot

First of all, this question is related to the creation of embedded Operating System and, to be exact, with Linux Kernel + u-boot + FSBL + device tree + FS compiled to run on an arm A9. Context: After booting this (just created) OS upon a Zynq device (specifically, a [...] read more
linux-kernel
embedded-linux
hardware
u-boot
device-tree
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

Android FCM badge didn't working in background

I want to update badge in background and I use notification style, but it didn't work. I don't want to use data style because only one notification appeared. Please help I want check push in back ground and update badge public void zzm(Intent intent) { Set<String> keys = intent.getExtras().keySet(); for [...] read more
android
firebase
push-notification
firebase-cloud-messaging
badge
1vote
3answers

How to check if a TRUSTEE is me

I'm using the GetSecurityInfo funtion to get my own process's Discretional Access Control List (DACL): PACL oldAcl; Pointer se; GetSecurityInfo(GetCurrentProcess, SE_KERNEL_OBJECT, DACL_SECURITY_INFORMATION, null, null, ref oldAcl, nil, ref se); And then i can use the GetExplicitEntriesFromAcl to crack open the ACL to get at it's list of Access Control Entries [...] read more
windows
security
winapi
1vote
0answers

Proximity and Wakelock in background service Android

I need help to stop a WakeLock in a service. Here is what i have tried: public class SensorSevice extends Service implements SensorEventListener { Sensor registerListener; SensorManager sensorManager; private PowerManager powerManager; private PowerManager.WakeLock wakeLock; private int field = 0x00000020; @Override public IBinder onBind(Intent intent) { return null; } @Override public [...] read more
android
wakelock
proximity
1vote
0answers

How do I turn on the screen programmatically during call while proximity sensor's value is zero in Android?

I just want to develop a background service for android in which i can disable the functionality of proximity sensor.i dont want to turn off the display during call. following codes samples are not working. 1. PowerManager powerManager; PowerManager.WakeLock wakeLock; int field = 0x00000020; try { // Yeah, this is [...] read more
android
android-sensors
1vote
1answer

PrintWindow on inactive desktop in Windows 10

So, I've run into a problem while trying to take a picture of a window located in an inactive desktop using the PrintWindow API and it is starting to get on my nerves. The problem is that with a specific window, even though PrintWindow succeeds and I get the image [...] read more
c++
c
windows-10
1vote
0answers

How do I make catching generic IOExceptions reliably portable across platforms?

I was trying to make the below code work on .NET Standard 1.5, which implies it should be portable across all platforms .NET Standard 1.5 supports. try { channel = new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite); } catch (IOException e) when ((e.HResult & 0xFFFF) == 0x00000020) // ERROR_SHARING_VIOLATION { // no [...] read more
c#
.net
.net-standard
hresult
0votes
0answers

Upgrading to Windows 10 fall creator fails

This is the setuperr.log. 2018-01-23 16:43:24, Error MOUPG CDlpActionImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class CUnknownImpl<class IMoSetupDlpAction> > > >::Suspend(1066): Result = 0xC1800104 2018-01-23 16:43:24, Error MOUPG CSetupManager::ExecuteInstallMode(723): Result = 0x800705BB 2018-01-23 16:43:24, Error MOUPG CSetupManager::ExecuteDownlevelMode(347): Result = 0x800705BB 2018-01-23 16:43:24, Error MOUPG CSetupManager::Execute(237): Result = 0x800705BB 2018-01-23 16:43:24, Error MOUPG CSetupHost::Execute(375): Result = [...] read more
windows-10-v1703
0votes
1answer

How to display the Command prompt during Logon with a batch file

I have a logon script which runs the 'sc config winrm type= own' command. This command changes the registry value at this location: HKLM\SYSTEM\CurrentControlSet\services\WinRM From this Type = 0x00000020 (32) To This Type = 0x00000010 (16) How do i get the changed Registry entry to display in the command prompt [...] read more
command-line
0votes
0answers

Ubuntu 14.04 Digital Audio stops working

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

Database file is being used by another process

We are running an Exchange 2010 SP3 UR27 environment on Windows Server 2008 R2. I am aware that support for Exchange 2010 is ending soon, and we are planning to migrate to a newer platform before then. I am seeing issues with database files being in use by another process, [...] read more
windows-server-2008-r2
exchange-2010
0votes
0answers

STM32F103xxxx In Application Programming Using Arduino

I am using Arduino_STM32 rogerclark's library. https://github.com/rogerclarkmelbourne/Arduino_STM32 . Now I want to Develop an In Application Programming(IAP) like a bootloader. Take Code from SD card and Store in Controller flash at 0x8010000 and then jump to that location and run the loaded new application. the code took from SD and [...] read more
arduino
stm32
0votes
2answers

System Error Code 0x32 when trying to attach debugger to calc.exe

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
python
ctypes
0votes
1answer

What is 'FT' means in Nginx NGX_HTTP_UPSTREAM_FT_* macro/const

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
nginx
0votes
1answer

How can I treat bit mask graceful in C++?

I have met code like this. #define JOB_STATUS_PAUSED 0x00000001 #define JOB_STATUS_ERROR 0x00000002 #define JOB_STATUS_DELETING 0x00000004 #define JOB_STATUS_SPOOLING 0x00000008 #define JOB_STATUS_PRINTING 0x00000010 #define JOB_STATUS_OFFLINE 0x00000020 #define JOB_STATUS_PAPEROUT 0x00000040 #define JOB_STATUS_PRINTED 0x00000080 #define JOB_STATUS_DELETED 0x00000100 #define JOB_STATUS_BLOCKED_DEVQ 0x00000200 #define JOB_STATUS_USER_INTERVENTION 0x00000400 #define JOB_STATUS_RESTART 0x00000800 DWORD func(); The func return a dword which [...] read more
c++
0votes
0answers

how to change HyperLink style and textColor into richtextbox c# winform

How can I change HyperLink into RichTextBox ? I want to change HyperLink ForeColor and Remove UnderLine . I use this codes for this problem but I don't to change I tried to change with this code , but I don't successful .enter image description hereIf any change for this [...] read more
c#
winforms
hyperlink
0votes
0answers

How to define interrupt service routine for lpc2138 in IAR EWARM 8.4?

I am developing a project using lpc2138 in IAR for ARM 8.4. I have been going to use Timer0 interrupt for getting 1ms period, so I have written code and simulated in proteus 8.9. But interrupt is not occured. Please fix my code error. External crystal oscillator - 20MHz #include [...] read more
c++
c
embedded
iar
nxp-microcontroller
0votes
0answers

Make my WinForms application behave just like a Console application when using Console.WriteLine()

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

Link Error during Rust compilation (Cargo)

I'm calling some WinAPI functions with the Rust FFI (in this case MessageBoxA). My code was working until I did a little variable change and the compilation gave me an error as: = note: Non-UTF-8 output: WinAPI-dd8845a539e186b8.4ojwfrbxjnkzuhga.rcgu.o : er ror LNK2019: symbole externe non r\xe9solu MessageBoxA r\xe9f\xe9renc\xe9 dans l a [...] read more
winapi
rust
linker
ffi
rust-cargo
0votes
1answer

Code executes correctly only if prints are present (C)

I'm setting up a prototype for a DAQ system for Zynq FPGAs. I receive data from a server through ethernet, write it to a FIFO using the DMA and viceversa using two different pthreads. However, threads work correctly only if printf are executed. I expect there is a memory leak [...] read more
c
pointers
memory-leaks
shared-memory
mmap
0votes
1answer

How to save Bitmap from ActiveX component

Try to save screen of AxMsTscAxNotSafeForScripting (Microsoft Terminal Services Client Control), but cant find any information about it... I try one code, but it screen only field of element... https://i.imgur.com/fo6jKDT.png [Flags] private enum DrawingOptions { PRF_CHECKVISIBLE = 0x00000001, PRF_NONCLIENT = 0x00000002, PRF_CLIENT = 0x00000004, PRF_ERASEBKGND = 0x00000008, PRF_CHILDREN = 0x00000010, [...] read more
c#
bitmap
activex
0votes
0answers

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

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

Proximity sensor stop working after one minute

I am building a app in which using proximity sensor i detect the object is near of far from the screen and when as per that i am doing screen on or off. Proximity sensor works perfectly but after one minute proximity sensor stops working and i am not able [...] read more
android
0votes
0answers

How to implement poll function into Linux kernel module?

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

Window on top of everything like mouse cursor

I am programming a mouse cursor to be used in the operating system that has motion blur on Windows 10. I decided to use Unity3D for this because of Unity3D has very powerful in terms of effects and hardware rendering. I coded an overlay window to be rendered as top [...] read more
c#
windows
winforms
unity3d
0votes
2answers

How to set bits on the TI TM4C123G launchpad

I have a question about how bits are set(or cleared) on the TI launchpad registers. It seems sometimes they are bitwise or'd and other times they are set by just an assignement statement. For example, there is the register that is the clock gate and bit 5 must be set [...] read more
embedded
0votes
0answers

Placeholder will always have Attribut `Archive`

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
attributes
file-attributes
projfs
0votes
1answer

Controlling brushless dc motor with using stm32f407 board

By the way, I am so sorry about my english if I couldn't explain properly what I am doing .I am making a project that controls brusless dc motor with stm32f407 development board. First, I controlled brushless dc motor with arduino and observed pwm output pin on the oscilloscope screen. [...] read more
c
stm32f4discovery
0votes
0answers

How can I convert an integer to a character in MIPS?

I want to convert an integer value into a character, and then want to print that character as a 'character'. # convert an word into bye and print it .data integer: .word 1 .text la $a0, integer # load the address of 'integer' into $a0 lw $t0, ($a0) # load [...] read more
assembly
integer
character
mips
0votes
1answer

python ctypes and C++ pointers

C++ funtion: DLLENTRY int VTS_API SetParamValue( const char *paramName, void *paramValue ) //will return zero(0) in the case of an error { rtwCAPI_ModelMappingInfo* mmi = &(rtmGetDataMapInfo(PSA_StandAlone_M).mmi); int idx = getParamIdx( paramName ); if (idx<0) { return 0; //Error } int retval = capi_ModifyModelParameter( mmi, idx, paramValue ); if (retval == [...] read more
python
c++
pointers
ctypes
0votes
0answers

Why does platform_get_irq fail to get irq in my mailbox-altera driver?

I'm new to do Linux driver development. I encounter the problem of failing to get irq when I try to use driver mailbox-altera. On my platform DTS related to mailbox is as follows: hps_bridges: bridge@0xc0000000 { compatible = "altr,bridge-17.1", "simple-bus"; reg = <0xc0000000 0x20000000>, <0xff200000 0x00200000>; reg-names = "axi_h2f", "axi_h2f_lw"; [...] read more
linux-device-driver
device-driver
intel-fpga
device-tree
0votes
0answers

C# - OpenGL Not Rendering But No Errors From glGetError

I'm trying to use DllImport to load OpenGL and WinApi functions in C#. For some reason though OpenGL just won't render. I tried using glGetError but there are no errors (excluding error 1282 before the glContext is created but I'm pretty sure this is expected). The window just stays white. [...] read more
c#
opengl-1.x
0votes
1answer

Python: record video on motion, but release VideoWriter when motion not present

My goal of this script is to start recording to a video file when motion is detected. When motion is no longer detected, the writer will be released and the script will create a new video the next time that motion is detected...and so on. With the below script, I'm [...] read more
python
python-3.x
opencv
0votes
1answer

GetLogicalProcessorInformationEx SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX array size

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
c++
windows
0votes
0answers

PE Section Flags

For example Characteristics of section .text is 60000020, seems that is IMAGE_SCN_CNT_CODE 0x00000020 IMAGE_SCN_MEM_EXECUTE 0x20000000 IMAGE_SCN_MEM_READ 0x40000000 How to clearly identify which characteristics hide this field? read more
java
memory
portable-executable
0votes
0answers

How to cause Windbg to download the compressed versions of MS public symbols

Microsoft state here: > The Microsoft Symbol Server provides compressed versions of the symbol files. The files have an underscore at the end of the filename’s extension to indicate that they are compressed. For example, the PDB for ntdll.dll is available as ntdll.pd_. I have 2 questions here: 1. The [...] read more
debugging
windbg
debug-symbols
0votes
1answer

Writing to socket fails with the addition of any single line of code to c program

I'm writing a c program designed to transfer data over a socket to python client. I've encountered a really strange issue where writing to the created socket stops working with the addition of virtually any line of code after a certain point in the program. To expand on the issue: [...] read more
c
sockets
memory
embedded
0votes
1answer

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

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

Why does LoadLibrary fail while DllImportAttribute works?

I'm creating a .NET application for a client that performs I/O with one of their third-party systems. As they regularly change the password of this system, I should retrieve it dynamically by calling a native DLL that they provide in a dedicated directory (not besides my EXE file). However, I [...] read more
c#
.net
dll
interop
pinvoke
0votes
1answer

Identically configured urxvt has different width/font rendering on different X servers

I have two different desktop hosts connected via their DisplayPort outputs to two DisplayPort inputs on the same 4K monitor: * idyllic, a small-form-factor PC using the onboard Intel HD Graphics 500 of its Celeron N3350 processor. (I've also a similar system at another location with a Pentium N4200 processor [...] read more
fonts
x11
xorg
urxvt
0votes
1answer

CUDA - Malloc inside kernel ( compute_50,sm_50 )

I had a problem while running a program with the CUDA Memory Checker. In other threads on stackoverflow, the main problem with using malloc inside a kernel was that the "compute_50,sm_50" was not set properly. Here the code compiles so this is not the problem. The problem is now solved, [...] read more
cuda
0votes
1answer

Access is denied from WinAPI OpenProcess

So I decided I want to inject a DLL into a notepad process for educational purposes. IntPtr hProcess = OpenProcess(ProcessAccessFlags.VirtualMemoryWrite | ProcessAccessFlags.VirtualMemoryWrite | ProcessAccessFlags.VirtualMemoryOperation, false, process.Id); _log.Info({0}, new Win32Exception(Marshal.GetLastWin32Error()).Message); This seems to fail with "Access is denied". The strange thing is that hProcess is not IntPtr.Zero and it looks like [...] read more
c#
winapi
pinvoke
0votes
1answer

Why is the process I am writing the memory to crash?

So I recently stumbled onto a blog that described how to run your WinForms application from another process. I instantly thought this was something really cool an unique and wanted to test it out myself. While there was no code it explained how to do so and this is what [...] read more
c#
.net
process
0votes
0answers

PEVerify Defect: It reports "Type load failed" on valid class compiled with csc.exe for compact framework

A trivial class: public class TestClass : System.ServiceModel.Security.SecurityCredentialsManager { } When compiled using csc against the MS CompactFramework v3.5 will result in a dll that fails to pass peverify, resulting in a "Type load failure". It appears to be an issue with inheriting from the SecurityCredentialsManager class which is part [...] read more
c#
compact-framework
cil
csc
peverify
0votes
0answers

About USB boot from usb

I want to make ipl and boot os from my usb. I just want to read 360 sectors(512 bytes per sector).I checked code for several times and cannot find some mistakes.I have already debug it on qemu but it always returns "load error"(as in this code, it jumps to error [...] read more
assembly
usb
nasm
boot
bios
0votes
1answer

STM32 RTX Usage Fault PSP 0x00000020

I have a project with an STM32F446, with RTX, 3 threads (main + 2 declared by me) + of course the idle one. The main thread enters wait state after starting the two threads so i have just two threads running. The RTX has round robin disabled. What the application [...] read more
arm
stm32
rtos
cortex-m
rtx
0votes
0answers

Total pages printed on python and winspool.drv

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
python
ctypes
pywin32
0votes
1answer

C# make form hide and then show again

I am trying to make a Windows Forms Application be able to repeatedly show and then hide itself. The idea is to create a small app that overlays an image on the screen every time a modifier key like Num Lock or Caps lock is pressed. I have the detection [...] read more
c#
winforms
0votes
0answers

Windows Form WinAPi custom Savefiledialog - Manage lost focus on control edit

I need to create on my windows form c# application a custom save file dialog. I'm used this example as starting point https://www.codeproject.com/Articles/8086/Extending-the-save-file-dialog-class-in-NET I have modified the code and add 2 edit control for Width and Height. I'd like that when change text on width and lost focus, the height [...] read more
winapi
savefiledialog
lostfocus
0votes
2answers

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

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

C# Winform-Custom Control not being painted while form is being resized

I'm working on a base for a small simple game-style program and I'm using Form1_Resize to control the scale and location of the premade controls i've placed. Currently they're just a picturebox and two blank buttons for testing however they scale and work perfect when the screen is being resized [...] read more
c#
winforms
resize
0votes
1answer

ClientToScreen API functions returns not the expected point

I'm currently designing a function that searches a subpicture on a picture of a window. If the search was successful, it clicks on the center of this subpicture. Strangely, it always clicks a below the expected position. The search algorithm works correct - I still checked it. The provided coordinates [...] read more
c#
winapi
0votes
0answers

ProcessShellCommand throws "Access is denied"

Due the migration from Win7+VS2015 to Win10+VS2017 we face following issue in our old MFC tool: > from afxwin.h: CWnd* m_pMainWnd; // main window (usually same AfxGetApp()->m_pMainWnd) CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CIFX_LogViewDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CIFX_LogViewView)); AddDocTemplate(pDocTemplate); // Parse command line for standard shell [...] read more
c++
visual-studio
mfc
visual-studio-2017
0votes
1answer

NSIS GetVolumeInformation Results

Ok I found this code from another question asked and I'm a newbie for NSIS. Question Below !define FILE_SUPPORTS_ENCRYPTION 0x00020000 !define FILE_READ_ONLY_VOLUME 0x00080000 !define FILE_VOLUME_QUOTAS 0x00000020 !macro MakeBitFlagYesNo flags bit outvar IntOp ${outvar} ${flags} & ${bit} ${IfThen} ${outvar} <> 0 ${|} StrCpy ${outvar} "Yes" ${|} ${IfThen} ${outvar} == 0 ${|} [...] read more
nsis
ntfs
-1votes
0answers

How to save a video in mp4 format in python

I need to save a video in mp4 format using python. I searched many articles available and also went through many question on stackoverflow but did not find them helpful. I used different codec like MP4V, H264 etc. but they are throwing FFMPEG error. Any help will be appreciated. Error: [...] read more
python
video-capture
-1votes
0answers

I patched the binary to inject a shellcode, but it will break when I execute it

I want to inject code into a binary, so the way that I tried is to add a section in the end of the file, and then add the whole program headers at the end of the file, then change the elf header's e_phoff, e_shnum, e_phnum, e_shoff. Then add a [...] read more
linux
elf
-1votes
2answers

Binary edit leading to erase of previously binary added number

I have a C firmware for a device which sends a set of 6 flags encoded in binary to a desktop application. In a given moment, the firmware creates an unsigned int variable where it tries to add six numbers varying from 0 to 30 encoded in 5 bits to [...] read more
c
binary
integer-overflow
-1votes
1answer

How can I convert binary to hex and write the value at a certain address?

I have the following lines of code: u8 SW = Xil_In8(XPAR_AXI_GPIO_0_BASEADDR); Xil_Out32(XPAR_AXI4STREAM_TPG_0_S00_AXI_BASEADDR, 0x00000020 + SW); What I am doing here, is reading from the address XPAR_AXI_GPIO_0_BASEADDR and store the value in SW. The relevant data for me is stored only in the last 4 bits. What I would like to [...] read more
c
sdk
fpga
xilinx
-4votes
1answer

c# an object reference is required for the non static field in main

when attempting to debug this, even after asking help from friends and of course google, i cant seem to debug this stupid simple problem. namespace BO2_Console { class Program { #region Mem Functions & Defines [Flags] public enum ProcessAccessFlags : uint { All = 0x001F0FFF, Terminate = 0x00000001, CreateThread = [...] read more
c#

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