Home » U++ Library support » U++ Core » Array problems
Array problems [message #48618] |
Wed, 09 August 2017 13:01  |
rafiwui
Messages: 105 Registered: June 2017 Location: Stuttgart, Germany
|
Experienced Member |
|
|
I have 2 questions concerning arrays:
1. Why can't I add my member to my array like this:
Array<ParentCtrl> array;
WithTestLayout<ParentCtrl> testLayout;
array.Add(testLayout);
If I try this the compiler is not amused so I have to do it like this:
But when I tried to reproduce it with an Array<int> I can use the first snippet.
2. I did it with the working approach but when I close the app it says this:
Exception: C0000005 at 7FF727395F8A
EXCEPTION_ACCESS_VIOLATION
reading at 36705825540
This exception isn't thrown when I reproduced the error in the attached project. Instead there is an Heap is corrupted error.
I encountered both of these things as well when I made an array of a class I created myself.
Any idea or hints for how I get this to work properly?
-
Attachment: Bugtester.7z
(Size: 0.75KB, Downloaded 268 times)
Greetings
Daniel
|
|
|
Goto Forum:
Current Time: Tue May 13 20:55:13 CEST 2025
Total time taken to generate the page: 0.03355 seconds
|