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
13 results in 0.0037 seconds.
Keywords
Members
Tags
-
Return from C extension throws segmentation fault
-
How can I do a "Grouped TOP 1"?
I dont know how to do this, given this table:
Code:----------------------------------- CaseId | User | Timestamp ----------------------------------- 1 | 1 | 01/26/2011 2 | 3 | 03/12/2011 3 | 2 | 03/20/2011 4 | 1 | 04/16/2011 5 | 3 | 05/17/2011 6 | 1 | 05/06/2011 7 | 1 | 08/18/2011
-
Is Object Returned by Reference from Function?
Hello,
This should be a fairly common question, but I haven't found a straightforward answer anywhere.
If I instantiate an object within a function in VB.NET and return it, does it return it be reference or by value. IE - should I be worried about performance if I write something like this:
Code:Public Function ret_obj_func() As big_object Dim ret_obj As New big_obj(<lots of stuff>)
-
warning: assignment from incompatible pointer type
I have the following code
Code:typedef struct _DoublyLinkedNode { int value; struct _DoublyLinkedNode *next; struct _DoublyLinkedNode *prev; }DoublyLinkedNode; typedef struct DoublyLinkedList { int size; struct DoublyLinkedNode *firstnode; struct DoublyLinkedNode *lastnode; }list; list *p; int main(){
-
Please state the error in following program.
Hey ! I am a Semi-pro/Amateur kind of Java Programmer. A student. I use BlueJ to write Java Programs. I was writing a Java Program to display the prime factors of a number entered. However the compiler was constantly showing error of missing return statement. Why ? and can u tell me how to cure it ?
Code:public class Prime_Factorizer { public static void main(int a) { final int l = a ; System.out.println("Prime
-
Why the output is so ?
Code:#include<stdio.h> int f(int x) { if(x<=0) return 1; } main() { int n=0; n=f(10); // there is no effect if we have f(x), where x>0 printf("%d",n); } // why output is 16384 ?
-
VBA Function output
Basic Information
Software: Microsoft Access 2000
OS: Microsoft Windows XP Professional SP3
I've been trying to make some of the behind-the-scenes coding for one of my forms available in a module such as creating a query from certain inputs:
Code:Function EqualsAttachAnd(sField As String, sValue As String, strDelim As String) If sValue = "''" Or sValue = "" Then Exit Function
-
Subroutines called from other subroutines
In an effort to get back into programming, I've decided to tackle an IRC bot in Perl. As some background info, I am using the POE::Component: :IRC module, using strict and warnings, and I'm not intending this to do anything illegal. I can assure you this is simply for my own education. I have already built one that can do some amusing little tricks, but one aspect of my current project is giving me a headache.
I'm having some trouble... -
Return a double variable
I was making a funtion that done some maths and returns a double signed variable with decimal places and I wanted to use return to let me use i once more in the Main function
Basicly can you make return work with a double variable -
Getting rid of module naming
I have this program:
Code:class Cabbage: def __init__(self, height, bobnum): self.h = self.height self.b = self.bobnum x = cabbage(3, 7)
3
I want to remove the need to type cabbage in this,so i can just put
x.h and return
3.
Any help is appreciated
Thanks -
Returning an Oracle generated GUID through an out parameter
I am returning the following error when i try to pass an oracle generated GUID through an out parameter. Here is the following error message from SQL+ worksheet:
BEGIN Project.spm_Dat aInsertTest ( ' ', :out_PPLorgGUID , :out_SubNo); END;
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
Below is the Test Stored Procedure... -
DataSet from Method returns error
Exception Details: System.Argument Exception: DataTable already belongs to another DataSet.
Googling for this error shows several post of people trying to manipulate a table within a dataset. Others suggest using .clone() and .copy(). Neither results in a different error.
Within another class, I've gathered two tables of data for a nested repeater. To return a table, int, string or anything else in C#, one sets their local variable... -
Return all child nodes from an HTML document
Alright. I'm a php developer, working with JAVA. I've had some luck so far, to the point of being able to remove child nodes in my HTML page. What I need now is a way to return all child node's ids.
Example of my HTML
Code:<div id="parent"> <span id="child1"></span> <span id="child2"></span> </div>
Code:document.getElementById('divError').innerHTML