Desktop 32 bit client application is not getting launched in Windows Server 2019

James J 586 Reputation points
2021-03-27T02:26:40.297+00:00

Hi,

I am able to launch my desktop 32 bit application in Windows 10, Windows Server 2012 R, 2016. But I am not able to launch the same application when I deploy into Windows server 2019. When I debugged my application I can see WaitForMultipleObjects is going for infinite, which resulted not launching client application. Find the below code snippet for your reference. Can you please suggest me.

HANDLE hWait[2];
hWait[0] = CreateEvent( NULL, TRUE, FALSE, NULL );
hWait[1] = pApp->m_hThread;

DWORD waitForObjects = WaitForMultipleObjects( 2, hWait, FALSE, INFINITE );

Note Using VS 2019 IDE and .NET framework 4.8

Thanks,
James J

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,389 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,484 questions
{count} votes