简体   繁体   English

程序在未从代码块运行时关闭 [暂停]

[英]program closes when not running from codeblocks [on hold]

I write a server console application for windows and linux.我为 windows 和 linux 编写了一个服务器控制台应用程序。 I run the program from codeblocks and everything is fine.我从代码块运行程序,一切都很好。 But if i run the program from the release folder, it closes after start.但是如果我从发布文件夹运行程序,它会在启动后关闭。 This happens on both, linux and windows too.这发生在 linux 和 windows 上。

I tried to check the ip.我试图检查 ip。 Its good.很好。 I checked the needed files.我检查了所需的文件。 Everything is there that the program needs in that folder.该文件夹中包含程序所需的所有内容。 If I run the program from a VPS (winows 2016 datacenter), it just works fine...如果我从 VPS(winows 2016 数据中心)运行程序,它就可以正常工作......

Can't show code, its just too big.无法显示代码,它太大了。

no error message.没有错误信息。

oh, god, that was the f**king problem.哦,天哪,那是他妈的问题。 "program closing without error code"... simple answer, "when system is out of memory".... But put this up in your off-ass if you think this is useless... i just delete my account because you are useless and i dont need it anymore. “程序关闭而没有错误代码”......简单的答案,“当系统内存不足时”......但是如果你认为这没用,就把它放在你的屁股上......我只是删除我的帐户,因为你没用,我不再需要它了。 by ban me or remove my account and the message...通过禁止我或删除我的帐户和消息...

The problem is that there was no error code.问题是没有错误代码。 So i just tried everything and made a "clean install", that means I removed all the map files.所以我只是尝试了一切并进行了“全新安装”,这意味着我删除了所有 map 文件。 It runs now.它现在运行。 I just checked all the files and one of them was a "previous version", but i forgot to change the map's version number.我刚刚检查了所有文件,其中一个是“以前的版本”,但我忘了更改地图的版本号。 So its structure changed since then, and it just made some too big allocation.所以从那以后它的结构发生了变化,它只是做了一些太大的分配。

So, the problem occurs when the system is out of memory, the program just stops working without error code.因此,当系统超出 memory 时会出现问题,程序只是停止工作而没有错误代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM