After
When I wrote a few codes and heavily parallelized a IVectorView & lt and hit an error, StorageFile ^ & gt; ^ & Gt;
. The debug output was: 0x40080201 ::
The first chance to generate WinRT error in tool.exe at 0x76e86118
The first chance exception is in tool.exe on 0x76e86118: Microsoft C + + Exception:. Something like the code: FailureException ^
on the Platform :: Memory Location 0x02daec60:
work & Lt; Vector & lt; Longer & gt; & Gt; GetDatesTakenFromFiles (IVectorView & lt; storagefile ^ & gt; ^ filesInFolder) {Vector & lt; Work & lt; Longer & gt; & Gt; DatesTakenTasks; {DatesTakenTakenTasks.push_back (create_task (File & gt; Properties & gt; GetImagePropertiesAsync ()) for each file (AutoFile in filesInFolder) then ([FileProperties :: ImageProperties ^ Attribute] {Properties & gt; DateTaken. UniversalTime;})); } When to return (starting date deeds), expiry (dayTentcutus); } After some investigation I came to know that file
work < Vector & lt; Longer & gt; & Gt; GetDatesTakenFromFiles (IVectorView & LT; StorageFile ^ & gt; ^ filesInFolder) {Vector & LT; Work & lt; Long & gt; & Gt; DatesTakenTasks; For each of the files (automatic file in the files folder) {datesTakenTasks.push_back (create_task (file-> Properties-> gtImagePropertiesAsync ()). ([=] (FileProperties :: ImageProperties ^ properties) {// I do not know Why, but the file was being cleaned. This prevents it. UNREFERENCED_PARAMETER (File); Return Properties-> DateTaken.UniversalTime;});} When Returns (Start (Dates, Taker Tasks), Termination (Datacentacatak));}
As a side note, I have to tell that this error happened only when FolderDepth :: Uth
, but FolderDepth :: Deep
.
No comments:
Post a Comment