Search Result

Collapse
13 results in 0.0037 seconds.
Keywords
Members
Tags
return
  •  

  • Tale
    started a topic Return from C extension throws segmentation fault

    Return from C extension throws segmentation fault

    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...
    See more | Go to post

  • amilcar
    started a topic How can I do a "Grouped TOP 1"?

    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
    What I need to do...
    See more | Go to post

  • 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>)
    ...
    See more | Go to post

  • thatos
    started a topic warning: assignment from incompatible pointer type
    in C

    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(){
    ...
    See more | Go to post

  • Amiya Maitreya
    started a topic Please state the error in following program.
    in Java

    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
    ...
    See more | Go to post
    Last edited by Stewart Ross; Sep 4 '10, 08:02 PM. Reason: e-mail address removed from post

  • eofhari
    started a topic Why the output is so ?
    in C

    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 ?
    See more | Go to post

  • thelonelyghost
    started a topic VBA Function output

    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
    ...
    See more | Go to post

  • goatboy
    started a topic Subroutines called from other subroutines
    in Perl

    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...
    See more | Go to post

  • thatgu
    started a topic Return a double variable
    in C

    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
    See more | Go to post

  • 360monkey
    started a topic Getting rid of module naming

    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)
    If i put in cabbage.x.h, it returns
    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
    See more | Go to post
    Last edited by bvdet; Feb 2 '10, 11:08 PM. Reason: Add code tags

  • 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...
    See more | Go to post

  • leviwatts
    started a topic DataSet from Method returns error

    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...
    See more | Go to post

  • chemlight
    started a topic Return all child nodes from an HTML document

    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>
    I've tried this:
    Code:
    document.getElementById('divError').innerHTML
    ...
    See more | Go to post
    Last edited by Dormilich; Jan 23 '09, 06:33 AM. Reason: added [code] tags
Working...