Hello,
Don't know what is going on here.
I had changed the programming so that I could pass a value in and that it would hopefully get assigned the correct data.
I changed it as follows:
Code:
main ()
{
int returncode;
[snip]
retval = TransHist_Create( merchant_id, &trans_hist_id, transact_id, from_step_id, num_proc, num_succ, num_fail, num_user_err, todays_date, proc_user_id, addendum, getlocalhost(), getpid(), 0, __FILE__, __LINE__, &returncode);
}
Code:
Now, in the function : TransHist_Create(...., *returncode)
{
....... [snip] ...
*returncode = 0;
return 0;
}
BUT ..
in main, the returncode is set to --> 1 <-- ?!?!
Why??
I do not understand how return codes can be returned to the caller INCORRECTLY when they are implicitly set to a value in the function.
The function is in a static library. I got rid of the references to dynamic libraries because of the problems.
Has anyone seen anything like this? Is it memory corruption or something? How can I find out what is going on?
TIA