Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
allocate
- Page 1
Allocate memory for an array inside a struct
Programming
Software Development
14 Years Ago
by MarounMaroun
… of this wonderful and helpful site. I'm trying to
allocate
a new array (lets say of size 10) inside a…
Re: Allocate memory for an array inside a struct
Programming
Software Development
14 Years Ago
by MarounMaroun
wow... I can't believe I did that.. Is everything beside that ok? That's how I should
allocate
memory to an array inside a struct?
ALLOCATE MEMORY FOR THREE STRING
Programming
Software Development
12 Years Ago
by general2012
I am trying to
allocate
memory for three string and print it to screen.but …
How to allocate memory dynamically on stack ?
Programming
Software Development
15 Years Ago
by tajendra
…calls Comes into mind. They help us to dynamically
allocate
memory on the heap. For e.g. [… logic …. free(pszLineBuffer); return 1; }[/CODE] Above code would
allocate
1024 bytes on heap dynamically. After the complete use of…stack.So the answer is yes. We can
allocate
variable length space dynamically on stack memory by using…
I need help with dinamicaly allocate and array structures
Programming
Software Development
14 Years Ago
by aquario20
…call getClassData function here to capture user input // Dynamically
allocate
an array of StudentInfo for the number // of … exercises for // each student // now we will
allocate
an array to hold programming exercise scores ptrStudentInfo->…
Re: How to allocate memory dynamically on stack ?
Programming
Software Development
15 Years Ago
by tajendra
Yes very true, above article is specific to Microsoft Visual Studio. Where we get one way to
allocate
memory dynamically on stack.
Re: dynamically allocate memory question
Programming
Software Development
15 Years Ago
by Banfa
… allocating it? Generally the way round to do things is
allocate
the memory for an object and then copy the data… 2 arguments, destination and source. When you
allocate
through malloc you need to
allocate
enough memory for the object you want to… hold. You have
allocate
sizeof(char) or 1 byte but you want to hold…
Re: dynamically allocate memory question
Programming
Software Development
15 Years Ago
by martinjcloud
… allocating it? Generally the way round to do things is
allocate
the memory for an object and then copy the data…2 arguments, destination and source. When you
allocate
through malloc you need to
allocate
enough memory for the object you want to… hold. You have
allocate
sizeof(char) or 1 byte but you want to hold…
Macro for dynamically allocate multidimensional arrays
Programming
Software Development
17 Years Ago
by vidaj
… my first post. I often have the need to dynamically
allocate
memory for arrays with multiple dimensions. In my opinion I… time I need one. I have created this macro to
allocate
memory for a three-dimensional array, regardless of type: [CODE…
Re: Macro for dynamically allocate multidimensional arrays
Programming
Software Development
17 Years Ago
by trinadh1729
… my first post. I often have the need to dynamically
allocate
memory for arrays with multiple dimensions. In my opinion I… time I need one. I have created this macro to
allocate
memory for a three-dimensional array, regardless of type: [CODE…
Re: malloc does not allocate beyond 65872
Programming
Software Development
15 Years Ago
by aflneto
What I was trying to say malloc cant
allocate
that much memory. It can
allocate
a maximum of 64kb of memory in one… question. farmalloc() function on the other hand allows you to
allocate
blocks larger than 64kb.
read() only allows to allocate 32bit on 64bit linux
Programming
Software Development
15 Years Ago
by monkey_king
… on ubuntu64bit, that limits the data you are allowed to
allocate
on a 64bit platform using the c function 'read()' The… following program wont allow to
allocate
more that 2.1gig memory. [CODE=c++] #include <stdio…
dynamically allocate memory question
Programming
Software Development
15 Years Ago
by martinjcloud
… trying to make a copy of the string before i
allocate
it. So im using strcpy(). But im still having issues…
Re: Macro for dynamically allocate multidimensional arrays
Programming
Software Development
17 Years Ago
by vidaj
…-neutral, i.e. the same macro can be used to
allocate
strings, doubles, structs etc, but I have to create separate…
Re: dynamically allocate memory question
Programming
Software Development
15 Years Ago
by martinjcloud
…(); return 0; } [/code][/QUOTE] ok Now that i got to
allocate
the string. Next step is to display the string in…
Help:Allocate 1mb memory and save of different types
Programming
Software Development
16 Years Ago
by ambarisha.kn
hi, i have some data in variables of different types.(short, int, long, float, char, double). now i have to create one pointer, have to
allocate
1mb memory and have to store one by one in that pointer. How to do this.. plz give some clues to start.. which type i have to create a pointer..
Using auto_ptr or shared_ptr to allocate memory to a structure
Programming
Software Development
16 Years Ago
by ronan_40060
… for better memory management. Can some show me how to
allocate
a memory to a structure using auto_ptr or shared_ptr ? Many…
Re: Using auto_ptr or shared_ptr to allocate memory to a structure
Programming
Software Development
16 Years Ago
by ronan_40060
…->recordType, 4); Previously for normal char* i used to
allocate
memory like char *dce_sTabName = (char *)malloc(strlen(sTabName.c_str())+1…
can we allocate a 2d array dynamically in c
Programming
Software Development
16 Years Ago
by bhavya_talluri
i just want to know whether we can
allocate
a 2d array dynamically . Dynamically in the sense can we add both rows n columns when ever we want.
PHP Fatal error: Out of memory (allocated 4295491584) (tried to allocate 8589934593
Programming
Web Development
15 Years Ago
by Shuel
…: PHP Fatal error: Out of memory (allocated 4295491584) (tried to
allocate
8589934593 bytes) the line its complaining about is as following…
malloc does not allocate beyond 65872
Programming
Software Development
15 Years Ago
by AutoC
Hi, I need an array of approx. 2,00,000 elements.But malloc fails to
allocate
beyond 65872. When I give (short int*)malloc(sizeof(short int)*65000); It works but seg faults when I give (short int*)malloc(sizeof(short int)*66000); whatsup with that?
Re: malloc does not allocate beyond 65872
Programming
Software Development
15 Years Ago
by Salem
… of approx. 2,00,000 elements.But malloc fails to
allocate
beyond 65872. Is this the only malloc call in your…
Re: malloc does not allocate beyond 65872
Programming
Software Development
15 Years Ago
by AutoC
… of approx. 2,00,000 elements.But malloc fails to
allocate
beyond 65872. > > Is this the only malloc call…
Re: malloc does not allocate beyond 65872
Programming
Software Development
15 Years Ago
by aflneto
well malloc is defined as [code] void *malloc(size_t size); [/code] and size_t is probably 64kb is your computer. use farmalloc. [url]http://vitaly_filatov.tripod.com/ng/tc/tc_000.78.html[/url] this is a function that allows you to
allocate
more than 64kb hope it helps
dynamically allocate array of object
Programming
Software Development
15 Years Ago
by mike.bauer
… issue is on line 57 when I try to dynamically
allocate
an array to be used as the nodes in the…
any problem if i dynamically allocate memory and use only a small part of it
Programming
Software Development
14 Years Ago
by vineeshvs
1. any problem if i dynamically
allocate
memory and use only a small part of it? 2. can i free the dynamic memory after each time the function is executed?
PHP Fatal error: Out of memory (allocated 80740352) (tried to allocate 14592 bytes)
Programming
Web Development
14 Years Ago
by daza166
…: PHP Fatal error: Out of memory (allocated 80740352) (tried to
allocate
14592 bytes) Something telling me it seems my memory_limit is…
How to allocate memory for structure in java.
Programming
Software Development
13 Years Ago
by m1n1m3
… a; public a; public c; } class WithMainMethod { /* How i can
allocate
array of classes DigitData? How to do it by progressive…
Re: How to allocate memory for structure in java.
Programming
Software Development
13 Years Ago
by NormR1
There are no direct connections to memory usage in java. The JVM takes care of it. [QUOTE]How i can
allocate
array of classes DigitData[/QUOTE] Define the array and then in a loop, fill the array with instances of the class.
Dynamically Allocate Multidimensional Array
Programming
Software Development
13 Years Ago
by NunsBeachSurfer
…, I figure that what I need to do is dynamically
allocate
the size of the array? The array that I need…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC