Hi Raghuram,
Its Working!!!
Thanks a lot!!!:)
Regards,
Am_Rich...![/QUOTE]
User Profile
Collapse
-
Thanks Raghuram,
Will try implement this.
Regards,
Am_Rich...!Leave a comment:
-
Sorry for the improper formatting Raghuram,
I had been accidentally hitting on the Tab Key for some formatting and this has as such resulted to the submission of the post:(
Appology for the inconvenience caused,
Am_Rich...!Leave a comment:
-
Hi Raghuram,
Thanks a lot for your response.
This is in fact the piece of code which ive been using for the combination purpose:
swap_64(u_int32 _t x, u_int32_t y)
{
u_int64_t int64a = x;
u_int64_t int64b = y;
return(int64a<< 32)|(int64b);
}Leave a comment:
-
splitting u_int64_t into 2 u_int32_t in c++
Hi,
I have a c++ code in which i have combined 2 u_int32_t data into a single u_int64_t data initially.
Now, i need to split this u_int64_t data into their 2 corresponding u_int_32_t data?(I need to gather the values of the 2 u_int32_t as they were before the combination to that u_int64_t).
Can anyone provide me with a piece of code which would help to do this?
Thanking you,
Am_Rich...! -
Thanks a lotweaknessforc ats...
There's been some great modification on the code today and it has been decided that this part of reallocation needs to be removed. Things are now pending for the time being. But will try implement your example and will let you know if it works.
Thanks a real lot dear
Regards,
Am_Rich...!Leave a comment:
-
Dear sicarie,
Thanks a lot for your help.
Its in fact difficult for me to post more than this sample code as it is indeed something really bulky and there are further functions associated with that piece of code. In some other part of the program, ive been able to allocate memory to some other structures but i find it really strange that i can't do so at this particular place.
Thanks,
Am_Rich...!...Leave a comment:
-
Dear weaknessforcats ,
Im really grateful to you for your concern once again.
Will it be possible to provide me with an example of it or rather modify the sample code which ive been providing you so that i can have a better idea of what you mean exactly...
Ive been trying to implement whatever you have explained to me but it's still not working correctly and i find it really strange as i guess it is not that complicated.
...Leave a comment:
-
Thank You Ahmedyo...
I'll try modify my program as such.
Kind Regards,
Am_Rich...!Leave a comment:
-
Hi Gentleman...
Thanks a lot for your concern... Indeed thats what ive been wondering. Can any of you provide me with a slight example of how reallocation can be made possible using the new operator?
Thanking you,
Am_Rich...!Leave a comment:
-
Hi Dear,
Thanks a lot for your concern. Can you please provide me with additional details as to where i should free the memory coz i do assign values to the members of the struct within that while loop and the if condition is just to reallocate memory in case my the value of my counter exceed the initial value of my struct. As it is of now, my program is still crashing.
Thanking you...
Am_Rich...!...Leave a comment:
-
Reallocation of memory in c++
Hi,
Does anyone know a simple way of reallocating memory in c++ apart from using vectors?
Regards,
Am_Rich...! -
Hello Ganon11,
Its indeed c++ code. However ive been given the code as it is with the calloc function already written within it as such. The task is about reallocating memory dynamically to avoid the assignment of a big memory size at the beginning.
The way the code has been written, i can't use vectors to reallocate memory and in some other part of the program, realloc has been indeed successful. I just cant understand why i am unable...Leave a comment:
-
Hi Xoinki,
Thanks for your support.
Ive indeed tried this out as well...but the program is still not allocating further memory. Do you have anything else to suggest me?
Thanks,
Am_Rich...!Leave a comment:
-
Can Anyone Help Me
Hi All,
Below is a sample code of a problem which im facing actually. I am in fact unable to reallocate additional memory to the struct AmChart.
Below are the variables and declarations which ive been using as such in programs
[code=cpp]
//******Declarati ons
Am *AmTemp;
Am *AmChart;
#define S_SIZE 512;
AmChart = (Am*)calloc(S_S IZE,sizeof(Am)) ;
int SizeAmCount...
No activity results to display
Show More
Leave a comment: