home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle      Overblown overpriced overengineered SHIT      2,288 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 304 of 2,288   
   kpriya80 to All   
   pro*C segmentation fault!!!!!!!!   
   02 Sep 03 02:49:11   
   
   From: member37703@dbforums.com   
      
   Hi,   
      
   I am using a make file to compile a pro*C program.I am able to compile   
   and generate the executable.However while I am executing the program I   
   am encountering a segmentation fault.It gives this falut on encountering   
   a EXEC SQL statement.The following is a part of the code that is giving   
   this fault.   
      
      
      
   memset((char*)username.arr, 0x00, 20);   
      
   strcpy((char*)username.arr, "user/pwd");   
      
   username.len = strlen((char*)username.arr);   
      
      
      
   fprintf(stdout, "DEBUG=Connect to database\n");   
      
      
      
   EXEC SQL CONNECT :username;   
      
   if (sqlca.sqlcode != OK) {   
      
   fprintf(stderr, "\nUnable to connect - sqlca.sqlcode[%d]\n\n", s   
      
   qlca.sqlcode);   
      
   exit(NOTOK);   
      
   }   
      
      
      
   Can anyone please help me with this?   
      
      
      
   Priya   
      
      
   --   
   Posted via http://dbforums.com   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca