Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
memory-allocation
- Page 1
memory allocation
Programming
Software Development
20 Years Ago
by dalaharp
hi, in turbo C the maximum array size i am able to specify is array[250][250].. what should i do to enlarge this size to say..array[512][512].. i dont know a thing about
memory
allocation
, so please help me out/.. :-|
Memory allocation for 3D array
Programming
Computer Science
17 Years Ago
by kalpana0611
… method that I can use to find out about the
memory
allocation
for this data. Any theory answer would be helpful too…
Memory allocation error that doesn't make sence!?
Programming
Software Development
15 Years Ago
by DarthPJB
…, a generic and unhelpful"std::bad_alloc at
memory
location" error. Before I get to the… etc), the problem arises when trying to allocate
memory
for the 'compiled' mesh class, this object …XVel,YVel); Physics.SetRotVel(XRotVel,YRotVel); } //Note, the
memory
allocation
error occours on the DisplayObject = //new line, however I…
Re: Memory allocation error that doesn't make sence!?
Programming
Software Development
15 Years Ago
by DarthPJB
… seems to make even less sense. The
memory
allocation
error does occour on that line, however previous…=Salem;984367]Lessons in cause and effect.
Memory
is allocated from one (or more) larger pools… of
memory
. Depending on how badly you screwed up…quote] I'll take a look though the
memory
calls and alike while I cry at my …
Memory Allocation Error, writing past end of heap!
Programming
Software Development
16 Years Ago
by DarthPJB
… come to the understanding that my use of
memory
allocation
is incorrect in some way and turn to…coords etc), and obviously the pointers used for new
memory
are global to the source. [b]constructor[/b]… at first load SprArray=new Sprite*[SprTotal]; //allocate
memory
dynamically NameArray=new LPCWSTR[SprTotal]; SprNum=new int[SprTotal…
Memory Allocation of a Struct
Programming
Software Development
17 Years Ago
by r30028
I'm having some trouble with dynamic
memory
allocation
of a struct. The struct looks like this: [CODE]struct … would cause a crash? It's just a simple dynamic
allocation
of a struct but in my program whenever it reaches…
memory allocation ptr to array? how?
Programming
Software Development
19 Years Ago
by kokopo2
…i am having some problems, perhaps understanding about how dynamic
memory
allocation
works with pointers and arrays. Im trying to get the… string in my program and allocates a certain amount of
memory
to hold the string of the size. Next, i… problem now is how am i going to reference the
memory
pointer to the input array ? Also im having a…
Memory allocation of objects
Programming
Software Development
16 Years Ago
by smileeok
I have a question about the
memory
allocation
of class. My compiler is GCC 4.1.2. I … Foo is only 4? Why does the compiler arrange the
memory
like this? What is the use of the rest 12…
Re: Memory allocation of objects
Programming
Software Development
16 Years Ago
by VernonDozier
[QUOTE=smileeok;687249]I have a question about the
memory
allocation
of class. My compiler is GCC 4.1.2. I … Foo is only 4? Why does the compiler arrange the
memory
like this? What is the use of the rest 12…
memory
sites? Thank you.[/QUOTE] I get gaps of 4, not …
Re: Memory allocation (checking for success)
Programming
Software Development
16 Years Ago
by sid78669
…. In both the case it was to check if the
memory
allocation
was successful. This is where i get stuck. Any suggestions…; } return arraySize; } [/code][/QUOTE] How do i know if the
memory
allocation
was successful or not? do i check the size? how…
Memory allocation (checking for success)
Programming
Software Development
16 Years Ago
by sid78669
…. In both the case it was to check if the
memory
allocation
was successful. This is where i get stuck. Any suggestions…
Dynamic Memory Allocation
Programming
Software Development
14 Years Ago
by VP2
Memory
allocation
. Pretty simple, but I guess there might be some people …
Memory allocation details
Programming
Software Development
14 Years Ago
by vedro-compota
… me - what is the difference between next two ways of
memory
allocation
(as I undestand they both can be compiled...) - 1) [CODE…
Re: Memory Allocation...where? when? how?
Programming
Software Development
16 Years Ago
by MosaicFuneral
You only need
memory
allocation
when you need
memory
for n-objects...
Re: Memory Allocation...where? when? how?
Programming
Software Development
16 Years Ago
by Stinomus
[QUOTE=MosaicFuneral;873314]You only need
memory
allocation
when you need
memory
for n-objects...[/QUOTE] Not only that, stack space is limited so creation of large data structures is generally more suited to the heap.
Re: memory allocation
Programming
Software Development
20 Years Ago
by dalaharp
…sizeof(unsigned char)*256))== NULL) { printf("Not enough
memory
to allocate buffer\n"); getch(); exit(1); /*… terminate program if out of
memory
*/ } } if((fp = fopen("f16.dat"… }[/CODE] this is what i tried to allocate
memory
for the 2d array.. but it gives a error…
Re: memory allocation
Programming
Software Development
20 Years Ago
by dalaharp
hi, is there no procedure wherein you can allocate
memory
by malloc etc.. my whole code is in TorboC and i cant change it to another compiler.(atleast now).. thanks........
Re: memory allocation
Programming
Software Development
20 Years Ago
by Dave Sinkula
[QUOTE=dalaharp]is there no procedure wherein you can allocate
memory
by malloc etc..[/QUOTE]Yes. What have you tried?
Re: memory allocation
Programming
Software Development
20 Years Ago
by vegaseat
… next 64k segment */ /* The two arrays combined exceed 64k bytes
memory
, array1 is global, array2 is local, but array1 is loaded…
Re: Memory allocation problems
Programming
Software Development
13 Years Ago
by alwaysLearning0
… [/CODE] Now about the thread
memory
allocation
, you dont need to allocate any
memory
for the thread as all the thread… libraries take care of
memory
allocation
. If you want to develop any C/C++ project…, first thing you need to read about
memory
allocation
. It will help you to avoid countless hours of debug…
Re: Memory allocation for a char pointer
Programming
Software Development
14 Years Ago
by rubberman
…1517028]Along with the
memory
requested (10 bytes in your example), there is also other
allocation
overhead such as … you destroy the array.[/QUOTE] All that aside,
memory
allocation
and management is a doctoral thesis subject. Been there…I spent a couple of years researching reference counting
memory
management routines for C and C++ back about…
Re: Memory allocation confusion
Programming
Software Development
17 Years Ago
by agrawalashishku
Thank you very much for this enlightening information. I didn't know this much of detail about
memory
allocation
. Do you mean that every single program, however small, lets say just a cout, has a
memory
manager of its own? If yes, in that case, is it provided by the runtime linked libraries?.
Re: Memory Allocation Understanding, new []()
Programming
Software Development
17 Years Ago
by Lerner
… STL vector objects you don't have to bother with
memory
allocation
, it's done for you by the people who implement…
Re: memory allocation in Python
Programming
Software Development
16 Years Ago
by ZZucker
As far as I understand it, Python has a very efficient builtin
memory
manager and user
memory
allocation
is not need or wanted.
Re: Memory allocation problems
Programming
Software Development
13 Years Ago
by alwaysLearning0
… that you need to read some basic C++: reference, pointer,
memory
allocation
. First read a programming book/site to make sure you… understand the basic
memory
handling using c++, Here is a good site to start…
Re: Memory allocation problems
Programming
Software Development
13 Years Ago
by Celtrix
where can i find information about
memory
allocation
then since apparently even DW seems unwilling to help me …
Catching dynamic memory allocation exceptions - need help
Programming
Software Development
15 Years Ago
by dgr231
…[num]; } catch(bad_alloc&) { cout << "Error: Dynamic
Memory
Allocation
Failed. Program Terminating." << endl; cin.get(); return… 0; }[/code] If the program encounters an exception on the
memory
allocation
, I want the program to display the above line and…
2D array memory allocation error
Programming
Software Development
17 Years Ago
by welles
…is something to do with the
memory
allocation
, as before I used dynamic 2D array
allocation
like: WallFuncs = new double…double [7]; and this reports an error of invalid
memory
allocation
with a big value. But when I write all…" for error of invalid
memory
allocation
(for using dynamic 2D array
allocation
) or Runtime error if using std…
Re: 2D array memory allocation error
Programming
Software Development
17 Years Ago
by welles
… when I used to declare the 2D array(either dynamic
allocation
using "new" or using vector, it does… 2D array for its output, then a
memory
allocation
error occurs if use dynamic
allocation
(Runtime error if use vector class). But…just create another 2D array? Is that because the allocated
memory
is not freed? or there is something to do …
Dynamic memory allocation with strings
Programming
Software Development
16 Years Ago
by bops
… My main query is around the
allocation
of the
memory
for msg. I know there are
memory
allocation
functions like malloc and such that… can safely allocate
memory
for you. But what happens… whats the best way to work with strings and
memory
allocation
in C? Cheers, Jonathon.
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