|
Yes Alok Gupta ....U are welcome to party ...;)
|
|
|
|
|
http://www.codeproject.com/threads/loop_buffer_-_Linux_versi.asp
http://www.codeproject.com/threads/sm.asp
http://www.codeproject.com/threads/SharedMemory_IPC_Threads.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
i have nothing more than others to say about shared memory
See the below articles
http://www.codeproject.com/threads/SharedMemory_IPC_Threads.asp
http://www.garret.ru/~knizhnik/shmem/Readme.htm
-Sarath
|
|
|
|
|
Sarath C wrote: See the below articles
First Link of yours match with third link of mine
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
There used to be a C function that any programmer could use for allocating memory off the stack. The memory was automatically deallocated when the calling function returned. This was a dangerous function to call. it’s not available anymore.
What is he possibly talking about?? AnyIdea?
he=A C programmer.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
|
Got it.Thanks !!
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
VuNic wrote: Got it.Thanks !!
Is the coding in C itself or you can use C++ Classes there, if yes the try Auto_ptr
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks Alok!
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
The memory is deallocated automatically when program terminates
In case of java there is special garbage collecter for deallocation of the memory during run time
So its better that when you allocates memory inside the function then before returning allocated memory must deallocate.
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: The memory is deallocated automatically when program terminates
A_Laxman wrote: So its better that when you allocates memory inside the function then before returning allocated memory must deallocate.
alloca doesn't require that.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
A_Laxman wrote: In case of java there is special garbage collecter for deallocation of the memory during run time
Sorry for Sounding Rude, this is not JAVA forum and C++ doesn't have Inbuild Garbage Collector!
A_Laxman wrote: So its better that when you allocates memory inside the function then before returning allocated memory must deallocate.
Sometime its necessaey to allocate the Memory inside Function and Deallocated at Calling side, its wholly on design!.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Yaa Alok,
Agreed ,even C# also provides Garbage Collector
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: even C# also provides Garbage Collecto
yeap, but C++ don't have one
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Due to that C++ developers have to take care of Memory mangement/Leaks
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: Due to that C++ developers have to take care of Memory mangement/Leaks
Yeap, but its month I have used new and delete, instead of that i use STL and wrapper classes as it increase Development speed and you don't need to worry about Memory leak due to same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Cool,
its all depends on developer's Choice what he/she prefer
As well its regarding development where we have to use dynamic allocation for efficient programing and memory utilization
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: As well its regarding development where we have to use dynamic allocation for efficient programing and memory utilization
Isn't STL is effcient?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have not used STL more , so don't know which one more efficient
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: I have not used STL more , so don't know which one more efficient
then Have a try , you will love it!, try cppreference.com for reference on STL classes!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi Alok,
Thanks ,from now I love STL as well
very good information provided by the site.
Thank a lot.
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
VuNic,
Have you have simple common sense?
Just write something sensible relevant to the matter of your post in the subject line than just "???"
May be thats why you are just stuck with "C" )
ppatel
|
|
|
|
|
---Sorry for making it look like the SB ----
|
|
|
|
|
VuNic wrote: Take your as* of my thread now, ****** if you dont understand what a "?" means, go join your kid and learn what's a "?", the perfect a**h*le I've ever seen.
Control you Anger Vunic!... thats doesn't suits you! and rest,leave it to Tox, he will handle it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 7:33 Tuesday 16th May, 2006
|
|
|
|
|
ThatsAlok wrote: Control you Anger Vunic!...
Glad I am not the one surprised by this thread ! Never thought Vunic could "post" like that.
ThatsAlok wrote: lets Tox to do the work
~RaGE();
|
|
|
|