Search:

Type: Posts; User: gkkmath

Search: Search took 0.00 seconds.

  1. problem initializing a double array for large array

    Hi, Silly question from a new C programmer... I get a segmentation fault in the following code:

    #include <stdio.h>
    int main(void)
    {
    double YRaw[4000000]={0};
    return 0;
    }

    Using GDB, I get...
  2. Replies
    3
    Views
    1,965

    Hi Brewbuck, OK, I commented out those...

    Hi Brewbuck,

    OK, I commented out those struct's and now it's working fine. THANK YOU so much!!!

    -gkk
  3. Replies
    3
    Views
    1,965

    Thanks Brewbuck, That's very useful to know....

    Thanks Brewbuck,

    That's very useful to know. When I change the line to:

    if(connect(MySocket,(struct sockaddr *) &MyAddress,
    sizeof(struct sockaddr_in))==-1) perror("connect()");

    I get...
  4. Replies
    3
    Views
    1,965

    problem establishing TCP socket connection

    Hi Experts, I'm writing a C program (attached) to establish a TCP socket connection from my Mac Pro to a Windows XP-based test instrument sitting next to it over LAN (Ethernet). The program compiles...
Results 1 to 4 of 4