简单的“Hello World!”由 Windows TaskScheduler (1.0) 运行时控制台应用程序崩溃
我有一个批处理文件,它启动简单控制台应用程序的多个实例(Hello World!)。我在 Windows Server 2008 64 位上工作。我将其配置为在启动时在 TaskScheduler 中运行,无论用户是否登录。后面的配置意味着实例将在没有 GUI 的情况下运行(即没有窗口)。
当我运行此任务时,某些实例在消耗 100& 之后失败了。中央处理器。应用程序事件日志显示以下错误: “故障模块 KERNEL32.dll,版本 6.0.6002.18005,时间戳 0x49e0421d,异常代码 0xc0000142,故障偏移量 0x00000000000b8fb8,进程 ID 0x29bc,应用程序启动时间 0x01cae17d94a61895。”
直接运行批处理文件就可以了。在我看来,当没有窗口显示时,操作系统加载太多应用程序实例时出现问题。但是 - 我不明白为什么......
知道吗?
I have a batch file which starts multiple instances of simple console application (Hello World!). I work on Windows server 2008 64-bit. I configure it to run in TaskScheduler, at startup, and whether user is logged-in or not. The later configuration means that the instances will run without GUI (i.e. - no window).
When I run this task, some of the instances just fail, after consuming 100& CPU. Application event-log shows the following error:
"Faulting module KERNEL32.dll, version 6.0.6002.18005, time stamp 0x49e0421d, exception code 0xc0000142, fault offset 0x00000000000b8fb8, process id 0x29bc, application start time 0x01cae17d94a61895."
Running the batch file directly works just fine. It seems to me that the OS has a problem loading too many instances of the application when no window is displayed. However - I can’t figure out why...
Any idea??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢 Microsoft 专家的帮助,此问题已得到修复:
http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/9102531c-cf60-4682-b014-c11a190b00f1?prof=required
This issue has a fix, thanks to Microsoft expert:
http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/9102531c-cf60-4682-b014-c11a190b00f1?prof=required