Search:

Type: Posts; User: SasDutta

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: FUM error

    by SasDutta
    Replies
    6
    Views
    1,530

    If i try to unallocate, then it would report...

    If i try to unallocate, then it would report memory leaks.
  2. Thread: FUM error

    by SasDutta
    Replies
    6
    Views
    1,530

    Thanks for your reply. I am running in Linux....

    Thanks for your reply.

    I am running in Linux. I get FUM with purifier.
    Is it posible to get a FUM , that if you allocate memory in one function, and try to free that memory in outside of that...
  3. Thread: FUM error

    by SasDutta
    Replies
    6
    Views
    1,530

    FUM error

    Hi All,

    I am getting some memry leaks in one function. In that function i am allocating memroy for string using calloc and populating that memory with string and using that string om other part of...
  4. Address getting changed after coming out of function

    Hi

    I have following structure.





    struct Leg
    {
  5. Ok.. Here is the real code int...

    Ok..

    Here is the real code




    int generateLegKey(struct Leg* flight)
    {
  6. Yes..This is not actual code. I just wanted to...

    Yes..This is not actual code. I just wanted to show the prototype of the code.
  7. Accessing structure element through pointer reference

    Hi

    I have following structure



    struct Leg
    {

    int fltNo;
  8. Replies
    8
    Views
    4,249

    While i am trying to assign integer value to the...

    While i am trying to assign integer value to the first element it is showing code dump
  9. Replies
    8
    Views
    4,249

    Assigning integer to char array.

    Hi

    I am trying to write a function whihc will convert lower case string to upper case string. I have written the function as below





    char* toUpper(char* str)
    {
  10. Replies
    11
    Views
    1,194

    Why it is not safe to use memset apart from int...

    Why it is not safe to use memset apart from int and char?
  11. Replies
    11
    Views
    1,194

    Thank you

    Thank you
  12. Replies
    11
    Views
    1,194

    I am defining the string in a structure. like...

    I am defining the string in a structure. like below



    struct RunParam
    {

    char redEyeExcp[RED_EYE];
    int upperTimeLimit;
    }
  13. Replies
    11
    Views
    1,194

    Not populating a string

    Hi

    I have declared a string. If i dont populate the string, can i check this string for NULL? If i dont populate the string, then with what value it contains? Does it contains gurbage value?
    ...
  14. Replies
    4
    Views
    1,237

    The problem is, i issued the code just before...

    The problem is, i issued the code just before leaving function B. It worked fine. I issued the statement between B and C. It worked fine. I ssued the statement just after entering C. It is printing...
  15. Replies
    4
    Views
    1,237

    Structure element not printing

    Hi ALL

    I am facing an issue with pointers. I am calling function in following order


    A()
    {

    B()
  16. Then why it is running without gdb, it is running...

    Then why it is running without gdb, it is running fine? I am making some JNI call.
  17. Program showing SIG fault when running with gdb

    Hi

    I am running my program without gdb, it is running fine. But when i am running it with gdb, it is showing segmentation fault. What could be the reason for this?

    Thanks
    Sas
  18. Replies
    3
    Views
    1,501

    I am having jni call from my code It is...

    I am having jni call from my code

    It is showing error like this

    Program received signal SIGSEGV, Segmentation fault.
    0x00002aaaac3dd66e in checked_jni_DeleteLocalRef () from...
  19. Replies
    3
    Views
    1,501

    GDB showing memory error

    Hi

    I am facing a peculiar problem. When i am running my binary it is running fine. But when i am running with gdb it is showing some memory error. Can anyone tell what could be the reason for...
  20. Replies
    2
    Views
    826

    Accessing pointer of another pointer

    Hi

    I structure like below




    struct station
    {
    char code[4];
  21. Thanks a lot for pointing out the error.

    Thanks a lot for pointing out the error.
  22. Referencing pointer inside a structure pointer

    Hi


    I have a structure as follows




    struct arptCd
    {
  23. Replies
    3
    Views
    1,631

    Thanks for your reply. The logic of my program...

    Thanks for your reply.
    The logic of my program is almost same as yours logic...
  24. Replies
    3
    Views
    1,631

    Assiging value to char pointer

    Hi,

    I am writing a C program to remove leading and trailing spaces from a string. to acomplish this i wrote following program.



    1 #include<stdio.h>
    2 #include<ctype.h>
    3
    4 char...
  25. Replies
    2
    Views
    3,536

    Thanks for you reply.. What i am trying to...

    Thanks for you reply..

    What i am trying to acomplish is i am fetching some records from database and putting that records in dynamically generated pointer array and returning the pointer to main...
Results 1 to 25 of 50
Page 1 of 2 1 2