Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

App will not close using X button or through my exit event.

$
0
0

Hi All,

I have a major issue with an App that I have been working on for several years here. I recently ungraded my computer from a x86 Windows 7 machine to a 64bit windows 8 machine for my development machine. Ever since then, when I run the app, log into the app and try to use either the X button or my Exit menu code (me.close) . This only happens after I log into the app. This just calls the sql server database to check the users credentials then opens the main working form. This app is an MDI app in case it helps to solve this issue. If I click the X button or my exit menu (on MDI Parent form) before I log in, the app will close without issue. And my MdI parent is set as the startup form.

What is confusing is that I'm using the same code set as before, just moved it over to a 64 bit machine for development. At first I thought that this was just an issue on my machine, so I compiled it and placed it on a text production machine (x86) and it has the same problem. I still have the .Net set to 2.0, could this be the issue? Or did this 64bit version mess with than I though. I've had weird things happening since I moved to this machine, such as not being able to step through code unless I have the Configuration Manager set with x86 option and not "Any CPU". By the way I did try and set this option on either x86 or Any CPU and I still have the same exit issue.

I've gone through the code and as far as I can see, threre should not by any reason this is happening unless there are more issues with a 64bit machine developing for x86.

I sure could use some help here as I'm at an end of what could be causing this issue.

One last thing. In the form closing iven of the Parent MDI form I put the following code in to make sure the Form Closing even was being called:

MsgBox(e.CloseReason.ToString)

I get a meesage Userclosing when I click either the X button or my exit menu option. Also tried adding the line below based on another forum message I saw, but it didn't help either.

        e.Cancel = true

THanks for any help that you can provide.



Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>