PRB: HrBackupClose in an Online Backup Becomes Unresponsive

ID: Q182237

The information in this article applies to:

SYMPTOMS

When you perform an online backup of a local Exchange Server, HrBackupRead preceded by HrBackupClose causes the program to become unresponsive.

RESOLUTION

Perform the online backup from a remote computer.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

The Backtest.c sample (part of the Exchange Software Development Kit [SDK]) demonstrates the problem if we change the EcBackupFile function to quit the backup routine before a full store as shown in the example below:

   EcBackupFile(HBC hbcBackupContext,SZ szFile,HANDLE hBackupFile)
   {
     ...
     //  Read the next chunk from the database.
     hrStatus = HrBackupRead(hbcBackupContext,pvBuffer,cbToRead,&cbRead);
     // Close file - call becomes unresponsive if performed locally.
     HrBackupClose(hbcBackupContext);
     //HrBackupEnd(hbcBackupContext);
     if (hrStatus == ERROR_SUCCESS)
     {
       liBytesRead.QuadPart += cbRead;
     }
      ...
   }

Keywords          : kbAPI kbEDK kbMsg kbMAPI100 XGEN 
Version           : WINDOWS:5.0
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: March 13, 1998