A
AntoninHofmann
Guest
VS 2017 V 15.8.5
// EXE
int main()
{
int i = FceAsync().get();
printf("%d", i);
}
// DLL
__declspec(dllexport) concurrency::task<int> __cdecl FceAsync(void)
{
return concurrency::task<int>([]()
{
return 22;
});
}
When I compile both modules EXE and DLL as Debug ( or both as Release ), everything is OK.
But when one module is compiled as Debug and the other as Release, the wrong number is returned.
( Tested for
i = co_await FceAsync();
with the same result too )
Thx
Ant
Continue reading...
// EXE
int main()
{
int i = FceAsync().get();
printf("%d", i);
}
// DLL
__declspec(dllexport) concurrency::task<int> __cdecl FceAsync(void)
{
return concurrency::task<int>([]()
{
return 22;
});
}
When I compile both modules EXE and DLL as Debug ( or both as Release ), everything is OK.
But when one module is compiled as Debug and the other as Release, the wrong number is returned.
( Tested for
i = co_await FceAsync();
with the same result too )
Thx
Ant
Continue reading...