Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Array problems
Array problems [message #48618] Wed, 09 August 2017 13:01 Go to previous message
rafiwui is currently offline  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:
array.Add(&testLayout);

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 218 times)


Greetings
Daniel
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a U++ function to copy a String contents to the clipboard
Next Topic: Missing ArrayIndex and AIndex
Goto Forum:
  


Current Time: Thu Apr 25 10:54:33 CEST 2024

Total time taken to generate the page: 0.03618 seconds