Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-11-2008, 03:40 PM
CREvans CREvans is online now
Registered User
 
Join Date: 03-10-2008
Location: Iowa
Posts: 28
prompting for save behavior

I've come across an annoyance, and don't know whether it's a bug, or a feature. :-) Normally when I make changes to a VBPro script and I forget to save my changes, VBPro will ask me if I want to save the project before exiting, no matter whether the script is currently running or not.

However, if I start the build with the right-click "Build" option from Windows Explorer, it will not prompt me to save my project before exiting if the build is running when I exit, and will just exit without prompting for saving of the project script. If I exit this right-click-started build script with it not running, it will still prompt for a save.

It appears to not prompt for a save only if the build has been started by the "Build" explorer extension, and the project is currently running when I exit.

Other than the obvious "save often" mantra, is this a bug, or a feature?

Thanks!
Scott
Reply With Quote
  #2  
Old 12-11-2008, 07:31 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
This is actually a bug. If VBP is started like

VisBuildPro /b project.bld

and exited while a build is running (and the build is aborted), unsaved changes to the project will not get saved.

This apparently isn't a very common scenario (modifying the project after starting in that fashion and then exiting VBP while the build is still running), since it wasn't reported in the last 6 (!) years.

You can work around the problem by either

1) Always stop the build before exiting

or

2) Add a global build done script event like so (View | Other Windows | Script Editor -> Global tab):

Code:
Sub vbld_BuildDone(status)

	' ensure any unsaved changes are saved if the build is aborted
	' since if the build was started via /b filename.bld and VBP v6
	' is exited while building, it won't prompt for unsaved changes
	' to the project
 	If status = vbldStepStatAborted And Project.IsModified Then Project.Save

End Sub
(note that this will save unsaved changes any time a build is aborted).

We'll fix this in the next version of VBP. Thanks.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:05 PM.


Copyright © 1999-2023 Kinook Software, Inc.