StrataFrame Forum

Possible "Application Stopped Working" message on Windows 8

http://forum.strataframe.net/Topic31637.aspx

By Ivan George Borges - 12/3/2012

Under Windows 8, when your application is closed by the user, they might get a "Stopped working" message as below:

http://forum.strataframe.net/Uploads/Images/deef5258-c0c0-4c7f-8137-7a6e.png

This can be caused by the Security SessionLock if you have started it.
To fix it, add code to stop the Session Monitoring right after the RunApplication line in your AppMain.vb / Program.cs:

        '-- Run the application
        StrataFrameApplication.RunApplication()

        '-- stop SessionLock Monitoring to avoid error on exit on Windows 8
        SessionLock.StopSessionMonitoring()


This should stop Windows 8 complaining.