Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 17 Jul 2008 11:11:16 -0700 (PDT),    group: microsoft.public.win32.programmer.directx.video        back       


An uspecified error occured (0x80004005)   
Hello,

I need an urgent help. We deployed our DirectShow application to our
customer. Task scheduler is set to run this application after user is
logged in. But when application starts we get the error "An uspecified
error occured (0x80004005)". It occurres only during computer startup.
When application was run a little bit later after computer startup, it
was ok. This problem arised with any DirectShow application. But when
we tested this application on different computer, application started
ok after user logged in. Simply said, it is running ok on one group of
computers and makes troubles on the other group of computers. Is it a
problem of the DirectX initialization on different computers? I mean
it takes a different time to initialize DirectX after computer startup
on different computers. Please, can you help me? Have you ever faced
up to this problem?

Best Regards,
Peter
date: Thu, 17 Jul 2008 11:11:16 -0700 (PDT)   author:   Builder

Re: An uspecified error occured (0x80004005)   
On Thu, 17 Jul 2008 11:11:16 -0700 (PDT), Builder wrote:

> Is it a
> problem of the DirectX initialization on different computers? I mean
> it takes a different time to initialize DirectX after computer startup
> on different computers. Please, can you help me? Have you ever faced
> up to this problem?

It's probably associated with the initialization of the graphics driver.  I
recommend that you change your app to test for the failed HRESULT, sleep
for a few seconds and retry.

-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Thu, 17 Jul 2008 13:42:08 -0600   author:   The March Hare [MVP] erland

Re: An uspecified error occured (0x80004005)   
From: "The March Hare [MVP]"

> It's probably associated with the initialization of the
> graphics driver.  I recommend that you change your app to
> test for the failed HRESULT, sleep for a few seconds and
> retry.

I may be wrong, but I think it is more likely to be 
audio-related than graphics-related. Everything related to 
graphics is supposed to be up and running long before the 
services and the interactive sessions are started. On the 
other hand, audio requires a system service which may not 
yet be running when the interactive sessions are started.

The OP should try to trace the E_FAIL to the point when it 
is first returned to try and figure out which component is 
not yet ready, so that he can wait for it. He can also try 
lazily polling for the audio service status using 
QueryServiceStatusEx() and see it that solves the problem.

-- 
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
date: Thu, 17 Jul 2008 16:25:56 -0400   author:   Alessandro Angeli

Re: An uspecified error occured (0x80004005)   
But we don't use audio in our application. What is the OP?


On 17. Júl, 22:25 h., "Alessandro Angeli" 
wrote:
> From: "The March Hare [MVP]"
>
> > It's probably associated with the initialization of the
> > graphics driver.  I recommend that you change your app to
> > test for the failed HRESULT, sleep for a few seconds and
> > retry.
>
> I may be wrong, but I think it is more likely to be
> audio-related than graphics-related. Everything related to
> graphics is supposed to be up and running long before the
> services and the interactive sessions are started. On the
> other hand, audio requires a system service which may not
> yet be running when the interactive sessions are started.
>
> The OP should try to trace the E_FAIL to the point when it
> is first returned to try and figure out which component is
> not yet ready, so that he can wait for it. He can also try
> lazily polling for the audio service status using
> QueryServiceStatusEx() and see it that solves the problem.
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> //http://www.riseoftheants.com/mmx/faq.htm
date: Thu, 17 Jul 2008 22:41:08 -0700 (PDT)   author:   Builder

Re: An uspecified error occured (0x80004005)   
On Thu, 17 Jul 2008 22:41:08 -0700 (PDT), Builder wrote:

> But we don't use audio in our application.

It's not essential to know which component.  With Vista it could be that
D3D9 is not initialized fully when your app starts.  Does using a loop and
sleeping when you get the failed HRESULT help?

> What is the OP?

Original poster (a good newsreader, like Dialog, will let you know what
these abbreviations mean).  

-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Fri, 18 Jul 2008 00:05:43 -0600   author:   The March Hare [MVP] erland

Re: An uspecified error occured (0x80004005)   
I run it on the WinXP, not Vista. I tried to put sleep (30 seconds) in
the begining of this application, but I got the same error. Maybe I
make some simple application, which runs DShow application after a
preset time. But it's an ugly workaround.


On 18. Júl, 08:05 h., "The March Hare [MVP]"
<themarchh...@alice.in.wonderland> wrote:
> On Thu, 17 Jul 2008 22:41:08 -0700 (PDT), Builder wrote:
> > But we don't use audio in our application.
>
> It's not essential to know which component.  With Vista it could be that
> D3D9 is not initialized fully when your app starts.  Does using a loop and
> sleeping when you get the failed HRESULT help?
>
> > What is the OP?
>
> Original poster (a good newsreader, like Dialog, will let you know what
> these abbreviations mean).  
>
> --
> Please read this before replying:
> 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> 2. Trim & respond inline (please don't top post or snip everything)
> 3. Benefit others:  follow up if you are helped or you found a solution
date: Thu, 17 Jul 2008 23:55:35 -0700 (PDT)   author:   Builder

Re: An uspecified error occured (0x80004005)   
[ Please trim and quote inline as requested ]

On Thu, 17 Jul 2008 23:55:35 -0700 (PDT), Builder wrote:

> I run it on the WinXP, not Vista. I tried to put sleep (30 seconds) in
> the begining of this application, but I got the same error. Maybe I
> make some simple application, which runs DShow application after a
> preset time. But it's an ugly workaround.

What is the source snippet of the code that is failing?

I use variants on this macro to trace the line number and file in release
builds:

#define HR_MESSAGE(id, hr, xx) { CString s; s.Format(id, __FILE__ ,
__LINE__, hr, CUtility::GetDirectXError(hr), xx); ::AfxMessageBox(s,
MB_ICONWARNING); }

or, if the application pauses when the message box shows up, you can use a
debug build and connect to the process at that point with Visual Studio.

-- 
Please read this before replying:
1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others:  follow up if you are helped or you found a solution
date: Fri, 18 Jul 2008 01:21:07 -0600   author:   The March Hare [MVP] erland

Re: An uspecified error occured (0x80004005)   
"The March Hare [MVP]" wrote:

> On Thu, 17 Jul 2008 11:11:16 -0700 (PDT), Builder wrote:
> 
> > Is it a
> > problem of the DirectX initialization on different computers? I mean
> > it takes a different time to initialize DirectX after computer startup
> > on different computers. Please, can you help me? Have you ever faced
> > up to this problem?
> 
> It's probably associated with the initialization of the graphics driver.  I
> recommend that you change your app to test for the failed HRESULT, sleep
> for a few seconds and retry.
> 
> -- 
> Please read this before replying:
> 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> 2. Trim & respond inline (please don't top post or snip everything)
> 3. Benefit others:  follow up if you are helped or you found a solution
>
date: Fri, 22 Aug 2008 12:25:02 -0700   author:   supoch14

RE: An uspecified error occured (0x80004005)   
"Builder" wrote:

> Hello,
> 
> I need an urgent help. We deployed our DirectShow application to our
> customer. Task scheduler is set to run this application after user is
> logged in. But when application starts we get the error "An uspecified
> error occured (0x80004005)". It occurres only during computer startup.
> When application was run a little bit later after computer startup, it
> was ok. This problem arised with any DirectShow application. But when
> we tested this application on different computer, application started
> ok after user logged in. Simply said, it is running ok on one group of
> computers and makes troubles on the other group of computers. Is it a
> problem of the DirectX initialization on different computers? I mean
> it takes a different time to initialize DirectX after computer startup
> on different computers. Please, can you help me? Have you ever faced
> up to this problem?
> 
> Best Regards,
> Peter
>
date: Fri, 22 Aug 2008 12:25:03 -0700   author:   supoch14

Re: An uspecified error occured (0x80004005)   
"The March Hare [MVP]" wrote:

> On Thu, 17 Jul 2008 22:41:08 -0700 (PDT), Builder wrote:
> 
> > But we don't use audio in our application.
> 
> It's not essential to know which component.  With Vista it could be that
> D3D9 is not initialized fully when your app starts.  Does using a loop and
> sleeping when you get the failed HRESULT help?
> 
> > What is the OP?
> 
> Original poster (a good newsreader, like Dialog, will let you know what
> these abbreviations mean).  
> 
> -- 
> Please read this before replying:
> 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> 2. Trim & respond inline (please don't top post or snip everything)
> 3. Benefit others:  follow up if you are helped or you found a solution
>
date: Fri, 22 Aug 2008 12:26:01 -0700   author:   supoch14

Re: An uspecified error occured (0x80004005)   
"Alessandro Angeli" wrote:

> From: "The March Hare [MVP]"
> 
> > It's probably associated with the initialization of the
> > graphics driver.  I recommend that you change your app to
> > test for the failed HRESULT, sleep for a few seconds and
> > retry.
> 
> I may be wrong, but I think it is more likely to be 
> audio-related than graphics-related. Everything related to 
> graphics is supposed to be up and running long before the 
> services and the interactive sessions are started. On the 
> other hand, audio requires a system service which may not 
> yet be running when the interactive sessions are started.
> 
> The OP should try to trace the E_FAIL to the point when it 
> is first returned to try and figure out which component is 
> not yet ready, so that he can wait for it. He can also try 
> lazily polling for the audio service status using 
> QueryServiceStatusEx() and see it that solves the problem.
> 
> -- 
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> // http://www.riseoftheants.com/mmx/faq.htm 
> 
> 
>
date: Fri, 22 Aug 2008 12:26:08 -0700   author:   supoch14

Re: An uspecified error occured (0x80004005)   
"Builder" wrote:

> But we don't use audio in our application. What is the OP?
> 
> 
> On 17. Júl, 22:25 h., "Alessandro Angeli" 
> wrote:
> > From: "The March Hare [MVP]"
> >
> > > It's probably associated with the initialization of the
> > > graphics driver.  I recommend that you change your app to
> > > test for the failed HRESULT, sleep for a few seconds and
> > > retry.
> >
> > I may be wrong, but I think it is more likely to be
> > audio-related than graphics-related. Everything related to
> > graphics is supposed to be up and running long before the
> > services and the interactive sessions are started. On the
> > other hand, audio requires a system service which may not
> > yet be running when the interactive sessions are started.
> >
> > The OP should try to trace the E_FAIL to the point when it
> > is first returned to try and figure out which component is
> > not yet ready, so that he can wait for it. He can also try
> > lazily polling for the audio service status using
> > QueryServiceStatusEx() and see it that solves the problem.
> >
> > --
> > // Alessandro Angeli
> > // MVP :: DirectShow / MediaFoundation
> > // mvpnews at riseoftheants dot com
> > //http://www.riseoftheants.com/mmx/faq.htm
> 
>
date: Fri, 22 Aug 2008 12:26:13 -0700   author:   supoch14

Re: An uspecified error occured (0x80004005)   
"Builder" wrote:

> I run it on the WinXP, not Vista. I tried to put sleep (30 seconds) in
> the begining of this application, but I got the same error. Maybe I
> make some simple application, which runs DShow application after a
> preset time. But it's an ugly workaround.
> 
> 
> On 18. Júl, 08:05 h., "The March Hare [MVP]"
> <themarchh...@alice.in.wonderland> wrote:
> > On Thu, 17 Jul 2008 22:41:08 -0700 (PDT), Builder wrote:
> > > But we don't use audio in our application.
> >
> > It's not essential to know which component.  With Vista it could be that
> > D3D9 is not initialized fully when your app starts.  Does using a loop and
> > sleeping when you get the failed HRESULT help?
> >
> > > What is the OP?
> >
> > Original poster (a good newsreader, like Dialog, will let you know what
> > these abbreviations mean).  
> >
> > --
> > Please read this before replying:
> > 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> > 2. Trim & respond inline (please don't top post or snip everything)
> > 3. Benefit others:  follow up if you are helped or you found a solution
> 
>
date: Fri, 22 Aug 2008 12:26:16 -0700   author:   supoch14

Re: An uspecified error occured (0x80004005)   
"The March Hare [MVP]" wrote:

> 
> [ Please trim and quote inline as requested ]
> 
> On Thu, 17 Jul 2008 23:55:35 -0700 (PDT), Builder wrote:
> 
> > I run it on the WinXP, not Vista. I tried to put sleep (30 seconds) in
> > the begining of this application, but I got the same error. Maybe I
> > make some simple application, which runs DShow application after a
> > preset time. But it's an ugly workaround.
> 
> What is the source snippet of the code that is failing?
> 
> I use variants on this macro to trace the line number and file in release
> builds:
> 
> #define HR_MESSAGE(id, hr, xx) { CString s; s.Format(id, __FILE__ ,
> __LINE__, hr, CUtility::GetDirectXError(hr), xx); ::AfxMessageBox(s,
> MB_ICONWARNING); }
> 
> or, if the application pauses when the message box shows up, you can use a
> debug build and connect to the process at that point with Visual Studio.
> 
> -- 
> Please read this before replying:
> 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> 2. Trim & respond inline (please don't top post or snip everything)
> 3. Benefit others:  follow up if you are helped or you found a solution
>
date: Fri, 22 Aug 2008 12:27:00 -0700   author:   supoch14

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us