discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Custom File Exporter

GB
Glenn Butcher
Mon, Oct 16, 2023 6:34 PM

Your copied code is reporting 'no file found', then I'd bet subsequent
code is segfaulting because there's no file to open. That colon looks
suspicious, no such character in linux file paths, windows only uses it
with hard driver letters, so where's that?

Copying file-open statements is fraught with potential problems, in that
you also need to appropriately trap and handle possible errors like
'file-not-found'...

gdb with a debug-compiled program will tell you specifically what line
the segfault occurred in, as well as provide a calling trace to find
where in your code it was instigated if the segfault happened in some
library.  Yep, you're on the teetering edges of learning programming...  :D

On 10/16/2023 12:23 PM, Trevor Orr via Discuss wrote:


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Your copied code is reporting 'no file found', then I'd bet subsequent code is segfaulting because there's no file to open. That colon looks suspicious, no such character in linux file paths, windows only uses it with hard driver letters, so where's that? Copying file-open statements is fraught with potential problems, in that you also need to appropriately trap and handle possible errors like 'file-not-found'... gdb with a debug-compiled program will tell you specifically what line the segfault occurred in, as well as provide a calling trace to find where in your code it was instigated if the segfault happened in some library.  Yep, you're on the teetering edges of learning programming...  :D On 10/16/2023 12:23 PM, Trevor Orr via Discuss wrote: > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org