- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
var retriesLeft = 100;
while (true)
{
try
{
return SetRestorePoint(0, pointType, enentType, description);
}
catch (Win32Exception ex)
{
if (ex.NativeErrorCode != ErrorServiceDisabled || retriesLeft < 0)
throw;
Thread.Sleep(500);
retriesLeft--;
}
}
guest 01.02.2013 06:55 # 0
absolut 01.02.2013 07:29 # 0
bormand 01.02.2013 07:51 # 0
absolut 01.02.2013 08:54 # +1
bormand 01.02.2013 10:04 # +1