-
When I create a window approximately greater than 800x800, calling
I am not so familiar with lower level languages but from what a quick google search tells me this is a segmentation fault, any tips on how to fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Interesting. SIGSEGV means that the program tried to read an illegal place memory, due to an error coding, usually a null dereference or use-after-free. I tried WIDTH, HEIGHT = 1000, 1000 just now and it worked fine on my machine. My guess is your code has a bug that the surfaces you're copy to and from via SDL_BlitSurface have different dimensions. |
Beta Was this translation helpful? Give feedback.
Interesting. SIGSEGV means that the program tried to read an illegal place memory, due to an error coding, usually a null dereference or use-after-free.
I tried WIDTH, HEIGHT = 1000, 1000 just now and it worked fine on my machine.
My guess is your code has a bug that the surfaces you're copy to and from via SDL_BlitSurface have different dimensions.