Today, the following two questions are taking some time, so I will record them for later review.
Today’s error record:
Error 1, not found or the last incremental link did not generate it; the full link is being executed
The error is shown in the figure:
after a long time toss, the reason is found, the correct solution is as follows
During incremental linking, LINK updates the .ilk state file created during the first incremental link. This file has the same base name as the .exe file or .dll file and has the extension .ilk. During subsequent incremental linking, LINK updates the .ilk file. If the .ilk file is missing, LINK performs a full link and creates a new .ilk file. If the .ilk file cannot be used, LINK performs a non-incremental link. For more information about incremental linking, see Incremental linking (/INCREMENTAL) option.
Solution:
Properties -> Configuration Properties -> Linker -> General -> Enable Incremental Linking -> No It's
done!
Error two, the execution of the asynchronous task caught the exception: std::bad_alloc
The original error is as follows:
2020-12-28 17:49:32.710 E MediaServer[17312] EventPoller.cpp:240 operator() | EventPoller执行异步任务捕获到异常:std::bad_alloc
It’s actually about Lambda expressions
In the end, the problem was solved in about 10 minutes by classmate Yang. The reason is that the lambda expression captures the list. When capturing a parameter, don't use &. [Of course when to bring & and when not to use it correctly]
For Lambda, please refer to my previous blog post:
Click to enter, on how to use Lambda.
End:
Sharing is also a way to deepen your understanding of the problem again. It may not be comprehensive, but it is definitely useful and will continue to be improved later~