StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Manual update of a clickonce deploymentExpand / Collapse
Author
Message
Posted 06/12/2008 11:25:12 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 4:41:02 PM
Posts: 427, Visits: 1,683
After my application is running, I have a timer that periodically checks for new updates.  When it finds that there are updates available, the application updates the status bar alerting the user to the new update.  The user can choose to update the application by simply clicking the menu item, "Help" - "Get Updates."  When they click that menu item, I throw up a WaitWindow (love these little guys) letting the user know that an update is in progress.  After the update is complete, I am hiding that WaitWindow, then I send the command to the application to restart.  Everything seems to be ok, except I get a small, standard Windows message box that is titled "MicroFour StrataFrame Base" and a message that says "Disposed..."  The application restarts just fine, but this message box hangs around until I click the OK button.  Looks like there is no other damage anywhere.  Why is this message box popping up?  Can I do anything about this?  Is it related to the WaitWindow somehow?

Thanks!
Bill

Post #17023
Posted 06/12/2008 11:27:17 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 8:00:28 PM
Posts: 4,534, Visits: 4,522
Well, something is being referenced that is already disposed.  I would need more details before I could give you any type of direction, stack-trace, etc.
Post #17024
Posted 06/12/2008 1:01:38 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 4:41:02 PM
Posts: 427, Visits: 1,683
Here is the code snippet:

waitWindow1.ShowWaitWindow();
ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
ad.Update();
waitWindow1.HideWaitWindow();
Application.Restart();

The anomaly only appeared after I decided to throw in a WaitWindow for aesthetic purposes.  I removed the wait window and it works fine...no message box.  Like this:

ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
ad.Update();
Application.Restart();

I'll see if I can work up a stack trace for you.

Thanks,
Bill

Post #17025
Posted 06/14/2008 10:51:10 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 4:41:02 PM
Posts: 427, Visits: 1,683
This works:

waitWindow1.ShowWaitWindow();
ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
ad.Update();
Application.Restart();

For some reason, calling HideWaitWindow() bothers the application restart sequence.


Bill

Post #17060
Posted 06/16/2008 9:42:32 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 8:00:28 PM
Posts: 4,534, Visits: 4,522
Glad you got it going.
Post #17090
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:14pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.