The results on the client machine, found that it just won't work, the code is as follows:
The class SysMisc
{
The static BOOL GetScreenShotLQ ()
{
Auto InitFx=[& amp;] () - & gt; ULONG {/*... */};
Auto fInit=async (InitFx);
FInit. The get ();//because the thread doesn't perform, jams,
}
};
The function called about this
The class streamControl {
The static BOOL ProcessFunction ()
{
Auto fSc=async (& amp; SysMisc: : GetScreenShotLQ);//do not perform, will only assign future
//...
FSc. The get ();//jam
}
};
All above async do not perform in Windows Server 2016 and 10 normal completely, but in the use of XP, 08 r2 virtual machine or physical problem has appeared in a physical machine,
Replace the SDK cannot be solved, either 64 or 32 bit compilation, has problems in 08 r2, XP is SDK7.1 A, 32-bit compiler,
Wonder whether where there is a problem, is the BUG or XP MSVC, Server08R2 problem?
Novice small white, also met the socket under XP will always return 1, judging by removing solve temporarily,
Images:
Above the red line for Windows 10 under all normal (tablet computers, laptops, all-in-one PC, desktop several devices), and so on, but the virtual machine or physical machine XP, 08 problems under the r2,
The above problem is the same/
And is clearly a list of erase operations, it is impossible to appear problem, but it happened that imploded under XP and r2, this is the runtime, kernel problems or compiler generates code for the optimized Win10 do? Under 10 will not collapse, no matter how to erase all no problem (iterator erase every time point after the begin of the list), and do a red-black tree, erase operation in Win10 no problem,
All the above problems are using VS2017 (the latest version 15.8), MSVC14.1, this is a compiler BUG or system problem?
CodePudding user response:
Try the assembly level debuggingCodePudding user response:
The compiler should have to choose the with XP on the rightCodePudding user response:
Vs a list of the weird, version different erase, two vs validated,
About the thread, the old machine running failure, need to debug, run the process first hit the log, key parameters also log, to see where there is a problem,
CodePudding user response:
There is a problem what is mean? Don't run? Collapse or something? The lack of related library,CodePudding user response: