svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
669 stars 177 forks source link

Source code issues with version 1.6.9.4 #341

Closed lianzaozi closed 1 year ago

lianzaozi commented 1 year ago

Click G-Code Creation=>Create Text. The following error message is displayed:"Object reference not set to an instance of an object"

image

1

svenhb commented 1 year ago

Did you install a new font? I don't know how to help, I put the funstion already in a try/catch function.

I think you need just to proceed the program (press the green arrow "Continoue") , to select a valid font. image

lianzaozi commented 1 year ago

It is normal to start compiling; The problem occurred after I clicked on the visual studio software menu bar "build"=>"Rebuild Solution"

image

svenhb commented 1 year ago

No idea. Just run the program without debugger....

lianzaozi commented 1 year ago

No idea. Just run the program without debugger....

Run file path "bin\Debug\GRBL-Plotter.exe" separately; Nothing unusual appears.

I guess the problem has something to do with the IDE, maybe it has nothing to do with the source code. I am actively verifying my guess

svenhb commented 1 year ago

I think it the usual behavior with debugger: Inside the "try"-branch the error occurs, the debugger tells you this. After "Continue" the program continue in the "catch"-branch.