Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/11/2008 at 07:07, xxxxxxxx wrote:
User Information: Cinema 4D Version: 11 Platform: Language(s) :
--------- Hi!
I have a small problem with GeAutoDynamicArray - can anyone help me?
I use a struct:
> \> typedef struct iDialogElement{ \> iDialogElement() : name(""), type(0) {} \> GeData name; \> LONG type; \> }DialogElement; \>
\> typedef struct iDialogElement{ \> iDialogElement() : name(""), type(0) {} \> GeData name; \> LONG type; \> }DialogElement; \>
as template in GeAutoDynamicArray. When I want to push something to the end of the array, this happens:
ge_dynamicarray.h <- occurs at line [627] Do i have to set the blocksize manually?
Thanks for your help.
Good bye
On 18/11/2008 at 00:19, xxxxxxxx wrote:
I can not confirm this, it is working fine here. My code:
> \> struct iDialogElement \> { \> iDialogElement() : name(""), type(0) {} \> GeData name; \> LONG type; \> }; \> \> typedef iDialogElement DialogElement; \> \> \> Bool MenuTest::Execute(BaseDocument \*doc) \> { \> DialogElement dlgelmt; \> \> GeAutoDynamicArray<DialogElement> dlgelmtarr; \> \> dlgelmtarr.Push(dlgelmt); \> \> return TRUE; \> } \>
\> struct iDialogElement \> { \> iDialogElement() : name(""), type(0) {} \> GeData name; \> LONG type; \> }; \> \> typedef iDialogElement DialogElement; \> \> \> Bool MenuTest::Execute(BaseDocument \*doc) \> { \> DialogElement dlgelmt; \> \> GeAutoDynamicArray<DialogElement> dlgelmtarr; \> \> dlgelmtarr.Push(dlgelmt); \> \> return TRUE; \> } \>
cheers, Matthias
On 18/11/2008 at 00:25, xxxxxxxx wrote:
Hi!
Thats really strange, sometimes I believe Cinema 4D has an anti-shawni setting.
I will check it again and fix my bug.
Thanks Matthias..