views:

34

answers:

1

basically im getting an allocation limit error/warning when i create a float** array. the function i am calling to fill the float** retrieves data from a struct loaded from a file. The function works fine when i use one object but when i load 2 objects into memory i get the limit error. I am pretty sure this is to do with byte alignment or a similar thing because my struct is saved with a float** member which i am sure you are not susposed to do !?! Please confirm this!

The next question i have now is how to save/serialize the float** member of this struct? I cant really afford to put an upper bound on the array ie "float [10000][3]" because i need/want to use this structure as a base for many other types of objects that may have well under the upper bound. Stroking my chin here!

Any help/advice will recieve my highest gratitude.

BTW these said struct objects will be used in a game/graphics package, the float** is a float[3] array for storing vertices in a model.

Much thanks in advance

A: 
jmgunn
You should add this to your question body rather than posting it as an answer. Answers are for answers to questions.
danben