Thread: Printf error "address pointing at code space is taken"

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    32

    Question Printf error "address pointing at code space is taken"

    Code:
     if (l->resultGIL != 0){
             printf("FILENAME_RESOLVE_ ERROR #:%d -Error occured.  ", l->resultGIL);
              exit(EXIT_FAILURE);
              }
    Last edited by KMAN999; 07-04-2011 at 08:44 AM.

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Code:
     l->resultGIL = PROCESS_GETINFOLIST_ (/*cpu*/,/*pin*/,/*nodename*/,/*length*/,/*prcoesshandle*/,
     l->attr_listX, l->ret_attr_count,&l->ret_vals.paid, l->ret_values_maxlen,
     &l->ret_val_length);
    You just cant have end paramters list, like putting just ,,,,. This might be allowed other languages but not in C. Dont you get an syntax error? And also printing shorting with format specifier '%d' Should that be %h

    ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    So after you edited your post after ssharish gave you some tips, do you still have errors?


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-20-2010, 04:50 PM
  2. An interesting code of "printf"
    By meili100 in forum C++ Programming
    Replies: 11
    Last Post: 02-20-2008, 12:54 PM
  3. Replies: 46
    Last Post: 08-24-2007, 04:52 PM