Strange issue with Slim Reader Writer lock.
Posted: Mon Oct 16, 2017 9:05 pm
I am getting strange problems with PB 5.45 on Windows 2008 Server using Microsoft's Slim Reader Writer library. So far, I have been unable to recreate the problems, but they occur about one every two weeks. The error number does not appear to be one easily searched.
Here are some examples:
The lines are:
The error happens on the release, afters thousands of successful releases. Does anyone have a clue as to what the error might be?? The service is about 6000 lines long with all of the includes.
Thanks!
Rich
Here are some examples:
Code: Select all
Error Message: Unknown error code
Error Code: C0000264
Code Address: 776E8078
Sourcecode line: 1885
Sourcecode file: M:\Development\PureBasic\Services\OTS_CADData_service.pb
Error Message: Unknown error code
Error Code: C0000264
Code Address: 776E8078
Sourcecode line: 1900
Sourcecode file: M:\Development\PureBasic\Services\OTS_CADData_service.pb
Code: Select all
1875 Repeat
1876 WaitForSingleObject_(thisEvent(eventNumber), monitorTime)
1877 If shutDownNow
1878 Break
1879 EndIf
1880
1881 ; get the data from the list we have built
1882
1883 AcquireSRWLockShared(*runNumberUpdates)
1884 runListSize = ListSize(runUpdates())
1885 ReleaseSRWLockShared(*runNumberUpdates)
1886
1887 If runListSize = 0
1888 Continue
1889 EndIf
1890
1891 ClearList(updateList())
1892
1893 While Not TryAcquireSRWLockExclusive(*runNumberUpdates)
1894 Delay(100)
1895 Wend
1896
1897 CopyList(runUpdates(), updateList())
1898 ClearList(runUpdates())
1899
1900 ReleaseSRWLockExclusive(*runNumberUpdates)
Thanks!
Rich