473,409 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Scheduled Tasks c0000005 error

Hi All

I have written a C# console based program. The first line of code simply
writes to the event log and this works 99% of the time, whether being run
manually or kicked off by Windows Scheduled Tasks. However, the other 1% of
the time Windows Tasks will return the following error (from the SchedLgU.txt
log file)

Started 20/03/2006 08:20:01
"ServerInfoService.job" (ServerInfoService.exe)
Finished 20/03/2006 08:20:03
Result: The task completed with an exit code of (c0000005).

Does anybody know what this error means / if there is a public chart of the
error codes?

Thanks
Mar 20 '06 #1
7 10440
Hello, Dave!

DM> I have written a C# console based program. The first line of code
DM> simply writes to the event log and this works 99% of the time, whether
DM> being run manually or kicked off by Windows Scheduled Tasks. However,
DM> the other 1% of the time Windows Tasks will return the following error
DM> (from the SchedLgU.txt log file)

DM> Started 20/03/2006 08:20:01
DM> "ServerInfoService.job" (ServerInfoService.exe)
DM> Finished 20/03/2006 08:20:03
DM> Result: The task completed with an exit code of (c0000005).

DM> Does anybody know what this error means / if there is a public chart of
DM> the error codes?

c0000005 usually means access violation, memory read or write error, this may happen if you pass null pointers or null references.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Mar 20 '06 #2
I've seen similar problems when a screen saver kicks at the same time
as the scheduled task.

Mar 20 '06 #3
I don't think an access violation is possible in managed code. I
suspect the fault is coming from unmanaged code. The Dr. Watson log
may provide more information.

Vadym Stetsyak wrote:
Hello, Dave!

DM> I have written a C# console based program. The first line of code
DM> simply writes to the event log and this works 99% of the time, whether
DM> being run manually or kicked off by Windows Scheduled Tasks. However,
DM> the other 1% of the time Windows Tasks will return the following error
DM> (from the SchedLgU.txt log file)

DM> Started 20/03/2006 08:20:01
DM> "ServerInfoService.job" (ServerInfoService.exe)
DM> Finished 20/03/2006 08:20:03
DM> Result: The task completed with an exit code of (c0000005).

DM> Does anybody know what this error means / if there is a public chart of
DM> the error codes?

c0000005 usually means access violation, memory read or write error, this may happen if you pass null pointers or null references.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com


Mar 20 '06 #4
Hello, Brian!

Yes, you're right, AVs do not happen in managed world, only "Object reference not set...".
And if you pass nulls to the unmanaged world via P/Invoke or interop you may obtain AV.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Mar 20 '06 #5
The Dr Watson log yielded the following:

function: CoInitializeCor
791cfe80 5e pop esi
791cfe81 7408 jz CoInitializeCor+0xb6eb (791d9f8b)
791cfe83 a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
791cfe88 ff4048 inc dword ptr [eax+0x48]
ds:00819ee6=????????
791cfe8b a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
791cfe90 ff4074 inc dword ptr [eax+0x74]
ds:00819ee6=????????
791cfe93 e86341feff call Ordinal71+0x3ffb (791b3ffb)
791cfe98 5d pop ebp
791cfe99 c20400 ret 0x4
791cfe9c a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
FAULT ->791cfea1 397850 cmp [eax+0x50],edi
ds:00819ee6=????????
791cfea4 53 push ebx
791cfea5 8b1d10121b79
ds:791b1210=7c573a71
mov ebx,[Ordinal71+0x1210 (791b1210)]
791cfeab 56 push esi
791cfeac 0f856e6f0700 jne DllGetClassObjectInternal+0x100cd
(79246e20)
791cfeb2 68b0010000 push 0x1b0
791cfeb7 e88af5ffff call CoInitializeCor+0xba6 (791cf446)
791cfebc 59 pop ecx
791cfebd 8945f0 mov [ebp+0xf0],eax
ss:0094994a=????????
791cfec0 3bc7 cmp eax,edi
791cfec2 897dfc mov [ebp+0xfc],edi
ss:0094994a=????????
791cfec5 0f8496000000 je CoInitializeCor+0x16c1 (791cff61)

A bit of a google reveals a few others have experienced similar issues, but
without resolution posted:

http://dotnet247.com/247reference/msgs/37/187561.aspx
http://www.thescripts.com/forum/thre...7068-1-10.html

Most ideas are geared around the code, but I am pretty sure that isn't the
issue here, as the first line isn't being called, it is bombing out on start
up.

Thanks for the responses from all the gurus thus far, any more thoughts?

"Brian Gideon" wrote:
I don't think an access violation is possible in managed code. I
suspect the fault is coming from unmanaged code. The Dr. Watson log
may provide more information.

Mar 21 '06 #6
Dave,

Strange. The fault appears to be in CLR initialization code or
something.

Brian

Mar 21 '06 #7
I've a problem bellow in the scheduled tasks:

Result: The task completed with an exit code of (c0000005)
---
Posted via DotNetSlackers.com
Nov 10 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg Bryant | last post by:
I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul, so I'm looking at redoing it, and while I'm at it,...
5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
3
by: Lenn | last post by:
Hi, I developed a console .exe application which is going to run on scheduled basis, it will be scheduled to run in Windows Scheduled tasks. Client wants some kind of utility that would help them...
0
by: Satish | last post by:
Scheduled Tasks (.Net ) does not run when server is logged off (Windows 2003): I have a .net executable (command line exe) which performs certain business operations. I can run the program...
2
by: Tatter | last post by:
I have a simple .NET 1.1 console application, written with Visual Studio .NET 2003, that needs to be run on a Windows XP system as a scheduled task. When run on its own, the program executes with no...
3
by: kj7ny | last post by:
How can I access and manipulate Scheduled Tasks in Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on...
1
by: naveensrirangam | last post by:
We want to do a total 10 number of scheduled tasks daily. These tasks will run in certain time in daily and every task application developed in different technologies . Now we are looking to do...
0
by: BD | last post by:
I'm running 8.2 on Windows. I have a situation where several scheduled tasks were created in Task Center, under an ID of a person who is leaving the organization. This person's ID is to be...
2
by: thj | last post by:
Hi, Is it possible to start an scheduled task on a server from ASP.NET? Thanks in advance. Tommy.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.