Hi all,
I have been making a C extension to Python recently. This extension has a function that takes a 3D array (as made by pygame.surfarra y.pixels3d), is going to do operations on this array, and then return it.
My problem is, that the most basic form of this function is throwing a segmentation fault after 58 calls from my program. The input is always a 3D array of integers, 1st dimension of size 70, second of size...
Search Result
Collapse
2 results in 0.0015 seconds.
Keywords
Members
Tags
-
Return from C extension throws segmentation fault
-
General protection fault/stack fault
Well I had an assignment to sort an array of structures so i went about trying but always some strange fault come about. Now not only does the main program fail but also another program. What i want to know is that is it a problem in my code, or something else is happening?? Below are the two programs!!
...Code:#include<stdio.h> #include<conio.h> #include<string.h> main() { struct boy {Last edited by Meetee; Jun 20 '11, 04:40 AM. Reason: Please add code tags while posting a code i.e. [CODE][/CODE]