computer-graphics-raster-images
computer-graphics-raster-images copied to clipboard
segfault at write_ppm.cpp
what can i try besides fiddling with i, j, height, width?
@zero-coole Segfaults mean your'e writing to / reading from a location of memory that the computer thinks you shouldn't be accessing. See if your trying to read from a bad index of data
weird, my i went back to 0 after the loop's final iteration and then kept going until segfault

That would most likely be because its writing multiple files so it happens multiple times. But its hard to tell.