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 Error compiling project sources (Read 139 times)
fluxanode
Junior Member
**
Offline


Posts: 21
Joined: Oct 5th, 2020
Error compiling project sources
May 12th, 2025 at 10:28pm
Print Post  
Ok so i'm happily coding along and out of the blue this happens after a save and closing VS then later opening the program:

host-mingw32.c*:192: Attempt to access invalid address
Error compiling project sources
Build failed for project 'DAC4_05_06_2025'

This is not the first time.  I always have to, then, open the program and its files with Arduino and do a save as to a new folder with a file name then open the new version in visualmicro.  This does not happen with Arduino (ever)  but is getting to be a common error with VM.  Is this a BUG and/or is there a way i can fix it without having to jump through all the hoops? FYI, i am using the latest version as far as I know...
Using teensy 4.1
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling project sources
Reply #1 - May 13th, 2025 at 12:10am
Print Post  
Thanks for the info. 

Which teensy optimization setting do you have set in the arduino ide compared to Visual Micro?

  
Back to top
IP Logged
 
fluxanode
Junior Member
**
Offline


Posts: 21
Joined: Oct 5th, 2020
Re: Error compiling project sources
Reply #2 - May 13th, 2025 at 4:16pm
Print Post  
Arduino is set to Faster,  VM is set to Fastest.
  
Back to top
 
IP Logged
 
fluxanode
Junior Member
**
Offline


Posts: 21
Joined: Oct 5th, 2020
Re: Error compiling project sources
Reply #3 - May 13th, 2025 at 4:41pm
Print Post  
I found a fix.  Deleting all the files (that i could) in C:\Users\XXX\AppData\Local\Temp.

Not really something the casual user should need to do.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: Error compiling project sources
Reply #4 - May 14th, 2025 at 1:25pm
Print Post  
The build folder can be cleaned using Build > Clean <ProjectName>, or to clear everything for the solution (including the cached shared core) Build  > Clean Solution.

The same problem appears to have affected Arduino IDE in the past as well:
https://forum.pjrc.com/index.php?threads/compilation-fails.75089/

It may be best if we ensure the *.gch file is cleaned every build (as it is generated with the prebuild1 hook), which would avoid the issue recurring in the future.

We will update with any changes, and if desired we can supply a workaround prebuild hook to apply to the project to clear the *.gch file in the interim.
  
Back to top
IP Logged
 
fluxanode
Junior Member
**
Offline


Posts: 21
Joined: Oct 5th, 2020
Re: Error compiling project sources
Reply #5 - May 14th, 2025 at 9:00pm
Print Post  
Thank you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint