Using Visual Studio, I’ve developed a Windows Forms app that communicates with another app via SendMessage(). After much head scratching it now works well in debug mode.
But when I switch to release mode it doesn’t work at all. According to DebugView the messages simply aren’t sent. I can’t see any error messages and I’ve tried running the .exe with elevated privileges but no joy.
Before I set about creating a minimal project to demonstrate this phenomenon, does anyone have the explanation? Or ideas to try because I’m stumped.
Windows 11, .Net Framework 4.8.1, Visual Studio 2019, VB.net.
I guess one simple solution is to distribute it in debug!
Eventually I resorted to setting up a new project, adding the form from the original project, renaming the root namespace and it worked perfectly in both debug and release! No code changes.
What can I say except thank you for your comments.