About Store Forum Documentation Contact



Post Reply 
UNION and Mem container bug?
Author Message
SamNainocard Offline
Bronze Supporter

Post: #1
UNION and Mem container bug?
Hi, I'm try to use UNION and UNION_ELM that have some nested memory container inside, but it's result in a crash.

It either just plain app crash or will message, depends on class structure,
it's "Attempting to create an object of zero size in Memc container. The container is not initialized. blahblah"

Attached file should contains 5 apps sample,
while those 1 class, 2 class, 2 class nested are nothing special and just plain app crash, the Attribute Application is something else,
As moving extra class attribute from top to below doesn't produce error.

Is it some kind of Union restriction or a bug?
Thanks in advance.


Attached File(s)
.7z  Union and Mem.7z (Size: 2.11 KB / Downloads: 1)
06-20-2014 04:29 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: UNION and Mem container bug?
Hi,

No you can't use unions for complex classes/objects smile
Only for simple classes that nothing will happen if you will change their raw memory values.
06-21-2014 12:32 AM
Find all posts by this user Quote this message in a reply
Post Reply