草庐IT

checked_handle

全部标签

c# - 从 pid 或 handle 获取进程名称

假设我已经有了一个窗口的句柄,我可以使用GetWindowThreadProcessId获取PID。有没有一种方法可以获取进程名称,而不必获取所有进程并尝试匹配我的PID? 最佳答案 您可以使用Process.GetProcessById获取Process。Process有很多关于正在运行的程序的信息。Process.ProcessName为您提供名称,Process.MainModule.FileName为您提供可执行文件的名称。 关于c#-从pid或handle获取进程名称,我们在S

ruby-on-rails - 为什么安装 Ruby on Rails 会产生错误 "size of array ' ruby​​_check_sizeof_voidp' is negative”?

在安装RubyonRails时(通过geminstallrails),您可能会收到以下错误消息:c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:109:14:error:sizeofarray'ruby_check_sizeof_voidp'isnegative还会有很多这样的警告:c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:1333:12:warning:casttopointerfromintegerofdifferentsize[-Wint-to-pointer-cast]还有一个错误c:/Ruby193

windows - 为什么不能通过添加 "update_check":false in user setting file?关闭Sublime 3更新通知

我想关闭Sublime3更新通知,所以我转到Preferences->Settings-User并像这样编辑它:{"auto_close_tags":true,"font_size":18,"hot_exit":false,"remember_open_files":false,"show_encoding":true,"update_check":false}但它不起作用。 最佳答案 将这一行添加到您的主机文件中。127.0.0.1www.sublimetext.com对于linux,主机文件是/etc/hosts对于Window

windows - Windows HANDLE 在 64 位应用程序上的范围是多少?

在WinAPI上,HANDLE类型定义为void*,因此在64位应用程序上,HANDLE值的范围可能是0到18446744073709551615。但在实践中真的如此吗?是否有文档指定此类HANDLE的整数范围?例如,如果想在32位应用程序上将此HANDLE存储为int32_t,那完全没问题,但在64位应用程序上,问题依然存在。 最佳答案 MSDN声明:InterprocessCommunicationBetween32-bitand64-bitApplications64-bitversionsofWindowsuse32-bit

windows - 我如何指定 C :\Program Files without a space in it for programs that can't handle spaces in file paths?

一个配置文件需要另一个文件的位置,但该文件位于“C:\ProgramFiles”中,并且不识别其中包含空格的路径,有没有另一种方法来指定没有空格的位置? 最佳答案 你应该可以使用"c:\ProgramFiles"(注意引号)c:\PROGRA~1(简称)尝试c:\>dir/x(在dosshell中)Thisdisplaystheshortnamesgeneratedfornon-8dot3filenames.Theformatisthatof/Nwiththeshortnameinsertedbeforethelongname.If

解决docker安装过程报错——Transaction check error: file /usr/bin/docker from install of docker-ce-cli-1:23.0

 在安装docker中报出如下错误(则说明此虚拟机之间安装过docker且没卸载干净),则按照如下操作即可重新安装好docker:Transactioncheckerror:file/usr/bin/dockerfrominstallofdocker-ce-cli-1:23.0.4-1.el7.x86_64conflictswithfilefrompackagedocker-common-2:1.13.1-209.git7d71120.el7.centos.x86_64file/usr/bin/dockerdfrominstallofdocker-ce-3:23.0.4-1.el7.x86_6

node.js - Redis Node : Ready check failed: NOAUTH Authentication required

我正在使用redis从digitalocean指南安装redis后在npm上打包我使用one保护它他们的职位。我将requirepass设置为密码,然后登录到我的redis-cli并成功验证了自己。但是我无法从我的Node.js应用程序中执行相同的操作。这是我在Node中的配置client=redis.createClient({no_ready_check:true,host:'ipaddress',port:port});client.auth('secretPassword',function(err,doc){if(err)throwerr;elseif(doc==="OK")

redis - Laravel 5.2 $this->dispatch 没有调用 handle 函数

Laravel5.2$this->dispatch没有调用句柄函数我使用以下ControllernamespaceApp\Http\Controllers;useApp\User;useIlluminate\Http\Request;useApp\Jobs\SendReminderEmail;useApp\Http\Controllers\Controller;useRedis;classHomeControllerextendsController{/***Sendaremindere-mailtoagivenuser.**@paramRequest$request*@paramin

解决Stable Diffusion TensorRT转换模型报错cpu and cuda:0! (when checking argument for argume

记录StableDiffusionwebUITensorRT插件使用过程的报错:RuntimeError:Expectedalltensorstobeonthesamedevice,butfoundatleasttwodevices,cpuandcuda:0!(whencheckingargumentforargumentmat1inmethodwrapper_CUDA_addmm)拷贝下面的代码覆盖extensions\stable-diffusion-webui-tensorrt里的export_onnx.py文件,将模型和相关的张量移动到GPU,即可解决。importosfrommodu

已解决Error: A JNI error has occurred, please check your installation and try again

已解决Error:AJNIerrorhasoccurred,pleasecheckyourinstallationandtryagain文章目录报错问题解决思路解决方法交流报错问题Error:AJNIerrorhasoccurred,pleasecheckyourinstallationandtryagain解决思路这个错误通常表示JavaNativeInterface(JNI)的安装出现了问题。解决方法下滑查看解决方法以下是解决该错误的一些可能方法:检查Java环境变量:确保正确设置了JAVA_HOME环境变量,并且将Java的安装路径添加到PATH环境变量中。检查Java版本:确保您使用的