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
Normal Topic Is there some option to enable removing extra spaces in Release mode? (Read 727 times)
Lookingooder
Newbies
*
Offline


Posts: 2
Joined: Aug 21st, 2019
Is there some option to enable removing extra spaces in Release mode?
Aug 21st, 2019 at 6:48am
Print Post  
Hello to all.

In Debug mode, when outputting text to the Serial, leading spaces are removed. 
In Release mode, they are not removed.  
Serial output is not important for me, but the same happens when html page is sent to the browser by command:
server.send(200, "text/html", output_buffer);

The result is extra traffic, and in a large program this causes even more Memory Usage in release mode than in debug mode (maybe by another reason)
Release:
Program size: 370 328 bytes (used 35% of a 1 044 464 byte maximum) (55.32 secs)
Minimum Memory Usage: 61780 bytes (75% of a 81920 byte maximum)

Debug:
Program size: 372 652 bytes (used 36% of a 1 044 464 byte maximum) (34.19 secs)
Minimum Memory Usage: 59800 bytes (73% of a 81920 byte maximum)

Is there some option (or another way) to enable removing extra spaces in Release mode too and decrease Memory Usage?
I use VMicro with Visual Studio 2013 for programming ESP8266 chip (D1 mini).
« Last Edit: Aug 21st, 2019 at 7:37pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Is there some option to enable removing extra spaces in Release mode?
Reply #1 - Aug 21st, 2019 at 7:40pm
Print Post  
I suspect that some #define in your code is removing the spaces because I can not relate the http send to anything Visual Micro does other than some define being set.

What board options selection have you made between the two types of build?

If you re unsure then follow the guide in the yellow box above and submit two .txt files one for Release and one for Debug.

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint