Skip to main content
Participant
April 8, 2021
Question

DDE Method AppExit() does not exit Adobe Reader DC 2021

  • April 8, 2021
  • 2 replies
  • 1072 views

when [Enable Protected Mode at startup] turn off
We have code using AppExit() method to exit Adobe Reader DC 2020 after printing using DDE.
Now with Adobe Reader DC 2021, the same AppExit() method does not exit , Adobe Reader DC 2021 application is still opened.

how should we exit the application using DDE? Much appreciated!

This topic has been closed for replies.

2 replies

Legend
April 9, 2021

It can take a very long time for a bug to be fixed, and Adobe will count votes on your bug report. So I suggest you look for alternative ways to close an app in the mean  time.

BarlaeDC
Community Expert
Community Expert
April 9, 2021

Totally Agree with above, I would look for an alternative, perhaps with some kind of check around it.

 

Something like

 

AppExit()

// Check if App still running.

// Run alternative exit strategy

 

That way if the bug does get fixed you can use it, but until then you have code to cope.

mitsukadoAuthor
Participant
April 28, 2021

Thank you very much.

I will implement it to send a close as follows.

if(WaitForSingleObject(pinfo.hProcess, 1000) == WAIT_TIMEOUT) {
  hWnd = GetWinHandle(pinfo.dwProcessId, pinfo.dwThreadId);
  ::PostMessage(hWnd, WM_CLOSE, 0, 0);
}

 

BarlaeDC
Community Expert
Community Expert
April 8, 2021

Hi ,

 

That sounds like a bug, I would go here and check if it is already raised, if not raise it  - https://www.adobe.com/products/wishform.html

mitsukadoAuthor
Participant
April 9, 2021

Thank you very much. I will wait for it.

If you find anything, please let me know.