I'm using your library in the front end of an experimental solder paste dispenser. Generally it works very well but today I stumbled over an issue with a Gerber file containing aperture macros. The library throws an exception during parsing the file.
To exclude any issues with my application, I tried the file in your "TINRS Gerber Viewer" example which also throws an exception (see below).
Here the problematic file MM32-Bottom.zip which was generated by KiCad. It works if I disable generation of aperture macros in KiCad. The parser stumbles over these two macro definitions (line 15ff)
I'm using your library in the front end of an experimental solder paste dispenser. Generally it works very well but today I stumbled over an issue with a Gerber file containing aperture macros. The library throws an exception during parsing the file.
To exclude any issues with my application, I tried the file in your "TINRS Gerber Viewer" example which also throws an exception (see below).
Here the problematic file MM32-Bottom.zip which was generated by KiCad. It works if I disable generation of aperture macros in KiCad. The parser stumbles over these two macro definitions (line 15ff)
Specifically it tries to parse the $1 parameter definitions as double which fails (see line 1040ff in gerber.cs).
Here the error message of your Gerber viewer: