草庐IT

unexpected

全部标签

windows - Qt 造物主 "The program has unexpectedly finished."

昨天我安装了QtCreator和QtLibrary5.0.1。当我创建一个新项目并想看看它的外观时,我构建并运行了程序,但出现了以下错误:StartingC:\Users\Khaled\workspace_qt\Test-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\debug\Test.exe...Theprogramhasunexpectedlyfinished.C:\Users\Khaled\workspace_qt\Test-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\debug\Test.exeexit

c++ - 错误 C2062 : type 'void' unexpected in signal declaration in QT

我是新手,我正在编写一个头文件,在其中声明一个将发出信号的类。所以我用一个构造函数声明我的类,两个int变量,我将它们设为private,然后定义我的signal。这是我的.h文件:#ifndefKEYBOARD_H#defineKEYBOARD_HclassKeyBoard{public:KeyBoard();intkeyboard_update();private:intlevel;intsub_level;signals:voidsend_to_MBU(QStringmessage);};#endif现在在.cpp部分,我只是在构造函数中发出一个信号。这是.cpp部分中的代码:#

c++ - vss 初始化备份失败,返回码为 E_UNEXPECTED

#include"vss.h"#include"vswriter.h"#include#include#defineCHECK_PRINT(result)printf("%s\n",result==S_OK?"S_OK":"error")intmain(intargc,char*argv[]){BSTRxml;LPTSTRerrorText;IVssBackupComponents*VssHandle;HRESULTresult=CreateVssBackupComponents(&VssHandle);CHECK_PRINT(result);result=VssHandle->Ini

windows - Win32 终端 : unexpected printing behavior

在Windows终端中打印此脚本时,额外的空行从何而来?usestrict;usewarnings;use5.10.0;useTerm::Size::Anyqw(chars);my$w=(chars(\*STDOUT))[0];my$string="Y"x$w;say$string;say$string;say$string;say$w;MSWindows控制台的输出:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

windows - For 循环在 makefile : "i was unexpected at this time" 中不起作用

我有一个非常简单的makefile:all:@foriin123;\do\echo"i:$$i";\done然而,当我运行它时,我收到了“此时我出乎意料”的错误。知道为什么会这样吗?我在WindowsXP上运行。上述脚本在Windows中的等效项是什么? 最佳答案 如果您在Windows上运行(可能是因为this),您编写的命令必须是有效的Windows命令。我的意思是您可以在Windowsshellcmd.exe中运行的命令。在这里,您尝试运行的命令是适用于bashshell的有效UNIX命令。它们不适用于Windowsshell

windows - Ubuntu wsl2 git 在大型 repos 上获取 "The remote end hung up unexpectedly"

在Windows上的wsl2中的Ubuntu19.04中执行此操作数天。$gitclonehttps://github.com/gohugoio/hugo.gitCloninginto'hugo'...error:RPCfailed;curl56GnuTLSrecverror(-12):ATLSfatalalerthasbeenreceived.fatal:Theremoteendhungupunexpectedly我尝试重新编译git以使用openssl,但没有做任何事情。我尝试了ssh和https。我尝试修改http的git设置。我修改了各种git内存设置。目前StackOverf

c# - 如何防止显示 "program terminated Unexpectedly"窗口?

我有一个使用AciveX对象并提供WCF服务的C#WPF程序。所以有很多线程,很多对非托管代码的调用。有时在满载应用程序崩溃。我正在调查这个问题-看起来问题出在ActiveX的某处,我无法更改。无论如何,我需要一种在崩溃后恢复程序的方法。至于现在我找到了解决方案:publicpartialclassApp:Application{privatestaticreadonlyLoggerlog=LogManager.GetCurrentClassLogger();boolisClosing=false;[System.Runtime.ExceptionServices.HandleProc

windows - 尝试在 Windows 中启动 Zookeeper 时出现 "log4j.properties was unexpected at this time"

我正在使用从Confluent(http://www.confluent.io/product/kafka-streams/)下载的kafka流。我按照说明在Windows上运行Zookeeper和Kafka。但是当我尝试使用命令启动ZooKeeper时D:\Softwares\confluent-3.0.1\bin\windows>zookeeper-server-start.bat./etc/kafka/zookeeper.properties,我得到错误D:\Softwares\confluent-3.0.1\bin\windows../../etc/kafka/log4j.pr

windows - Selenium 服务器 : Unexpected status SERVICE_PAUSED

尝试在Windows10中将SeleniumServer作为服务(使用nssm)安装失败,并在nssmstartselenium-server上显示UnexpectedstatusSERVICE_PAUSED。Selenium是selenium-server-standalone-2.53.0.jar。nssm为2.24。操作系统是Windows10、1511、32位。事件查看器说Serviceselenium-serverranforlessthan1500milliseconds.Restartwillbedelayedby16000milliseconds.目标是使用codece

c# - "unexpected response code for operation : 1"是什么意思?

我从尝试在Azure表存储中插入记录的应用程序中收到“意外的操作响应代码:1”。基本上是将数据放在TableOperation中,并且已经按100行block对插入进行了批处理。在网络上真的找不到很多关于此Azure错误消息中特定“1”代码的信息。 最佳答案 当批处理操作失败时,表服务返回HTTP状态代码400,同时发送导致该批处理失败的实体的索引。"unexpectedresponsecodeforoperation:1"这意味着在批处理中的位置1处插入实体时出现错误。 关于c#-"u