If i try to unallocate, then it would report memory leaks.
Type: Posts; User: SasDutta
If i try to unallocate, then it would report memory leaks.
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...
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...
Hi
I have following structure.
struct Leg
{
Ok..
Here is the real code
int generateLegKey(struct Leg* flight)
{
Yes..This is not actual code. I just wanted to show the prototype of the code.
Hi
I have following structure
struct Leg
{
int fltNo;
While i am trying to assign integer value to the first element it is showing code dump
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)
{
Why it is not safe to use memset apart from int and char?
Thank you
I am defining the string in a structure. like below
struct RunParam
{
char redEyeExcp[RED_EYE];
int upperTimeLimit;
}
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?
...
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...
Hi ALL
I am facing an issue with pointers. I am calling function in following order
A()
{
B()
Then why it is running without gdb, it is running fine? I am making some JNI call.
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
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...
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...
Hi
I structure like below
struct station
{
char code[4];
Thanks a lot for pointing out the error.
Hi
I have a structure as follows
struct arptCd
{
Thanks for your reply.
The logic of my program is almost same as yours logic...
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...
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...