Jump to content
Welcome to our new Citrix community!
  • 0

application crash at shutdown when citrix vda is installed


I have a very C++ simple application that crashes at application shutdown when citrix VDA is installed. It might be related specific windows versions. I have windows 20H2 and reproduced the crash on more than one pc with that version but a colleague on 1909 doesn't crash.

My version of VDA is VDA 7 1912 LTSR


Here is the application C++ code:

int main(int, char **)
    return 99; // test will check this

Here is the callstack when it crashes(crashes during app shutdown):
>    MfApHook64.dll!00007ff8e6282583()    Unknown
     MfApHook64.dll!00007ff8e629e7fa()    Unknown
     SCardHook64.dll!00007ff8e604eae3()    Unknown
     SCardHook64.dll!00007ff8e60ad137()    Unknown
     ntdll.dll!LdrpCallInitRoutine()    Unknown
     ntdll.dll!LdrShutdownProcess()    Unknown
     ntdll.dll!RtlExitUserProcess()    Unknown
     ntdll.dll!RtlExitUserThread()    Unknown
     kernel32.dll!BaseThreadInitThunk()    Unknown
     ntdll.dll!RtlUserThreadStart()    Unknown

Exception thrown at 0x00007FF8E6282583 (MfApHook64.dll) in testexe.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

I attached to this message a .bat + sourcecode for reproducing the problem. What is also weird is that the crash occurs when compiling with MSVC as in the .bat but if compiling with clang-cl the application won't crash at shutdown. Note that compiling with clang-cl is not a valid workaround for my problem but is instructive.

Thanks for your help

Edit: I replaced the .zip. It had wrong content!


Link to comment

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...