[solved] hasattr at LinkGroup.ViewObject causes FreeCAD crash ?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
dprojects
Posts: 722
Joined: Mon Mar 06, 2017 6:02 pm
Location: Poland
Contact:

Re: [solved] hasattr at LinkGroup.ViewObject causes FreeCAD crash ?

Post by dprojects »

wmayer wrote: Wed Jul 20, 2022 2:33 pm That's not possible. If there is a C++ function that doesn't do correct error-checking and thus causes a segmentation fault or a failing assert() then the application crashes. And it doesn't make a difference whether this function is called from another C++ function or from Python.
FreeCAD is cool software, the python scripting freedom is great and this allows to do nice things. However, the stability is really important, nobody like crashing. There is no perfect software anywhere, all software has bugs. Maybe there is some way to improve FreeCAD stability somehow? I don't know maybe by changing C++ approach, write more things, features in python and leave the C++ only for C++ masters like you, and make the C++ engine in one place... to get better control over the C++ code? Maybe C++ coding should not be for all, and for every feature? I don't know... maybe it is worth to think about it?

Thanks
Darek
github.com/dprojects

workbench for woodworking is available at: github.com/dprojects/Woodworking
Post Reply