Memory Problem in Called function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bethapudivk
    New Member
    • Jun 2007
    • 1

    Memory Problem in Called function

    hi,

    i am facing a problem with memory allocation in called function for production EXE

    for example

    f1(value1, value2);
    in calling the values are correct but in the origina lfunction

    int f1(char *h, char*h2);
    {
    /* Here the values are corruopted and getting some junk values */
    }

    can any one help me in resolving this issue
  • dumparun
    New Member
    • Feb 2007
    • 26

    #2
    Originally posted by bethapudivk
    hi,

    i am facing a problem with memory allocation in called function for production EXE

    for example

    f1(value1, value2);
    in calling the values are correct but in the origina lfunction

    int f1(char *h, char*h2);
    {
    /* Here the values are corruopted and getting some junk values */
    }

    can any one help me in resolving this issue

    Paste your original code for a correct answer.

    you may pass the address while calling the function.
    the function call will look like
    f1(&value1, &value2);

    Comment

    • svlsr2000
      Recognized Expert New Member
      • Feb 2007
      • 181

      #3
      Probably you are running out of stack. Try increasing your stack size. Have a look at all the compiler warnings when its compiled. If possible post the code.

      Comment

      Working...