Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

MFC-MDI Application problems

Single Click discussions / bugs
Post Reply
akrobit
Posts: 1
Joined: 2010-06-30 11:04

MFC-MDI Application problems

Post by akrobit »

An MFC MDI application does not end normally, when it was started or used by VNC (SC).
The error occurs also with a simple, wizard-generated application in VS2005 (default settings, but no unicode and static linked mfc) without any line of own code!

Details: if the application opens a new document window while VNC is running, AfxOleLockApp() is called (olelock.cpp, line 53) as a result of a call to CWnd::CreateAccessibleProxy(...), (wincore.cpp, line 3635, wincore.cpp, line 3196, ...). But there is no call to AfxOleUnlockApp(). The result is, that the mainframe of the application is not closed and destroyed, but only hidden. The process must terminated in the task manager.

If the hook option at the sc-proerties-page is disabled, the software works very well.

Where is the error? SC-hook.dlls? MFC? Any ideas or solutions?
Post Reply