Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Extraneous Prompting when Closing Solution or Closing VS (Read 2177 times)
Richard4562
Junior Member
**
Offline


Posts: 21
Joined: Oct 10th, 2016
Extraneous Prompting when Closing Solution or Closing VS
Jul 11th, 2019 at 3:29am
Print Post  
Definitely, not a biggie...but some peculiar behavior.

This peculiar behavior only happens in Release mode.
I have not witnessed it in Debug mode.

These first two examples use a BUILD in Release Mode.

#1 File > Recent Projects and Solutions...Make Selection...Build...Builds fine and we get Teensy Loader...Close Solution...then you're back to where you expect.

#2 File > Recent Projects and Solutions...Make Selection...Build...Builds fine and we get Teensy Loader...Close Visual Studio...Visual Studio closes as expected.

Now in these next two examples we are going to do REBUILDS instead of BUILDS.

#3 File > Recent Projects and Solutions...Make Selection..."RE-BUILD"...Builds fine and we get Teensy Loader...Close Solution...Now we get a MessageBox "Save changes to the following items?" SolutionName.sin and SolutionName*...after making a choice, you're back to where you expect.

#4 File > Recent Projects and Solutions...Make Selection..."REBUILD"...Builds fine and we get Teensy Loader...Close Visual Studio...Now we get a MessageBox "Save changes to the following items?" SolutionName.sin and SolutionName*...after making a choice, Visual Studio closes as expected.

So the extra prompting seems extraneous.
None of this extraneous prompting happens in Debug Mode.

In both #3 and #4 I tried to use a "Clean Solution" before doing the "Rebuilds"...but the anomaly persists.

In working with WPF programs, the only time I get this sort of prompting is when I make edits to the source code, and then try to Close the Solution, or Close Visual studio... without doing some sort of Build.

I don't know the details...but I would assume they are asking if I want to save the edited files...or cancel everything and go back to the original Solution Image that I started with.
Builds and Rebuilds, I assume, lock in and save your edits.

I'm attaching two files named Output_Dump_3.txt and Output_Dump_4.txt each of which includes a "Clean Solution" up front before the "Rebuild".

Update: I've found other Teensy apps that do it in all cases.
The issue is present in debug and release
« Last Edit: Jul 11th, 2019 at 8:53am by Richard4562 »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #1 - Jul 11th, 2019 at 1:29pm
Print Post  
Can you please show screen shot of the prompt.

Thanks
  
Back to top
WWW  
IP Logged
 
Richard4562
Junior Member
**
Offline


Posts: 21
Joined: Oct 10th, 2016
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #2 - Jul 11th, 2019 at 2:48pm
Print Post  
I'm attaching a picture of the prompt.

I experimented a bit by creating a new the Generic "Blink Led Example" Program off the main Splash Screen.
I named the Solution Blink_001.
 
I immediately Built it.
Then I hit Close Solution...and it threw up the message box prompt...I answered Yes...and it Closed.

Then I'd Reopened it using the Recent Projects and Solutions...Build...Close Solution...again the Prompt...and it Closed.

I did this for a number of iterations...4 or 5...until it finally stopped prompting.
And in doing further iterations...it never displayed the prompt.

So, I left the original Blink_001 Solution intact...and created a whole new Blink_002 Solution.
In doing Builds to Blink_002...it started out prompting.
I didn't continue but tried something different...

I began to interleave the two Blink Solutions...and I got the prompt consistently:

I'd open Blink_001 using Recent Projects and Solutions...Build...Close Solution...Prompt Displays...answer Yes to the prompt.
Then I open Blink_002 using Recent Projects and Solutions...Build...Close Solution...Prompt Displays...answer Yes to the prompt.


I don't know if your setup will display this behavior or not.





« Last Edit: Jul 11th, 2019 at 2:53pm by Richard4562 »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #3 - Jul 11th, 2019 at 2:57pm
Print Post  
Thanks, we will look into it.

The difference between Visual Micro and WPF, for example, is that in WPF you set the project properties yourself but Visual Micro sets the C++ project properties automatically for you. 

This is because, for intellisense to work, when you add libraries, change board, board options and add files we have to pump the information VS does not natively know about into the project properties (include paths, compiler defines etc).

We do try to check if the properties have changed but are obviously failing in some cases. There have been a lot of changes in this area recently to support the ability to save board/port settings per project and configuration. 

Can you confirm if you have the "vMicro>General>Save board/port per configuration" on or off.




  
Back to top
WWW  
IP Logged
 
Richard4562
Junior Member
**
Offline


Posts: 21
Joined: Oct 10th, 2016
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #4 - Jul 11th, 2019 at 3:12pm
Print Post  
I have it turned off.

I turned it on and repeated the experiment.
There is no change in the prompting.
« Last Edit: Jul 11th, 2019 at 3:16pm by Richard4562 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #5 - Jul 11th, 2019 at 3:13pm
Print Post  
Thanks
  
Back to top
WWW  
IP Logged
 
Richard4562
Junior Member
**
Offline


Posts: 21
Joined: Oct 10th, 2016
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #6 - Jul 11th, 2019 at 3:18pm
Print Post  
I turned it on and repeated the experiment.
There is no change in the prompting.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #7 - Jul 12th, 2019 at 4:26am
Print Post  
I don't think this is something new, I've always had this message pop up, I just click ok and forget about it. 

I just checked an old VS2015 with 1711.19.0 and it's the same so it's been like this forever..

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #8 - Jul 16th, 2019 at 1:00am
Print Post  
@Acuario I think your report might be different although sounds the same. It's correct that you are prompted to save after some usage, switching between release/debug, any change to libraries or compiler defines and anytime you add files. Lots of things can cause the prompt to save.

@Richard it is not expected that simply opening a previously saved project and closing it again should cause prompt to save. It's not easy to reproduce. Please say which version of VS you are using from Help>about.

Thanks

  
Back to top
WWW  
IP Logged
 
Richard4562
Junior Member
**
Offline


Posts: 21
Joined: Oct 10th, 2016
Re: Extraneous Prompting when Closing Solution or Closing VS
Reply #9 - Jul 19th, 2019 at 7:00pm
Print Post  
Sorry haven't checked in for a while...

Microsoft Visual Studio Community 2019
Version 16.1.6
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint