I'm getting a fatal error when compiling using function templates. I created a new project from the 'Blink' sketch, and I added the following code:
template<unsigned int Index>
void InterruptHandler(void)
{
//interruptCounters[Index]++;
}
When compiled, i get the following error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Visual.Micro.Processing.Sketch.SketchCompilerCTagsRunner.addPrototype(CTag tag)
at Visual.Micro.Processing.Sketch.SketchCompilerCTagsRunner.addPrototypes()
at Visual.Micro.Processing.Sketch.SketchCompilerCTagsRunner.TagsParse(String mainFile)
at no ctx, String sourceFilePath, Board brd, List`1 includePaths, SketchLibraryListUnSorted knownLibs)
at Visual.Micro.MiroAppAPI.SketchCompilerArduino.TryRunCTags(Board brd, List`1 includePaths, SketchLibraryListUnSorted knownLibs)
at Visual.Micro.MiroAppAPI.SketchCompilerArduino._compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
at Visual.Micro.MiroAppAPI.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
at Visual.Micro.Visual.Studio.Arduino.AddInApp._CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Object oProject, Boolean IsDebugStartCommand, Boolean IsRebuild, Boolean UseGdbIfAvailable)
The complete build log is attached.