Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > BITS Code forever in transient state

Reply
Thread Tools Display Modes

BITS Code forever in transient state

 
 
Edward Estrada
Guest
Posts: n/a

 
      05-05-2005
Hi I'm using BITS in an program to download certain files. The
download works on most machines (usually winxp), however when used in
one of our test machines (win2k.sp2) it isn't working. I have traced
the problem down to a never ending BG_JOB_STATE_TRANSIENT_ERROR state
of the download. Calling IBackgroundCopyJob::Resume doesn't seem to
continue the download.

Below is a pseudocode of the download loop

while( !m_isCancelled ) {
m_downloadJob->GetState( &jobState );

if( jobState == BG_JOB_STATE_TRANSFERRED ) {
// download is done get out of loop
break;
}
else if( jobState == BG_JOB_STATE_TRANSIENT_ERROR ) {
m_downloadJob->Resume()
}
// else handle other conditions

::Sleep( pollingLength );
// ... other code
}

What could be the problem in this scenario?

Thanks,
Edward

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error code 633 after low power state eddieg Windows Vista Hardware 2 04-16-2007 10:00 AM
Vista Shutdown takes forever -- 10 min+ or forever DaveS Windows Vista Performance 5 04-06-2007 08:54 PM
BITS has been failing since October, Error Code: 800700C1 Jeff Windows Update 0 05-01-2005 05:44 PM
Error Code: 80072EE2 - can't update BITS 2.0 AMG Windows Update 2 12-13-2004 12:45 PM
BITS download fails error code 80246002 denys Windows Update 7 09-08-2004 12:48 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59