Home » U++ Library support » U++ Core » Array & Gdiplus::Pen problem
Re: Array & Gdiplus::Pen problem [message #10864 is a reply to message #10854] |
Wed, 01 August 2007 19:53   |
|
I understand now why , Array gives me reference to inside element so they cannot be null , SetCount causes this to happen
Hoever there is a very wrong thing in MSVC8/NTL don't know in which propably in NTL.
Imagine one cpp file conatining
class Pen
{
Pen(int a){}
}
//somewhere in code compiled first....
Array<Pen> x;
x.Reserve(10);
x.Add(new Pen(0));
//somewhere in code compiled after ....
Array<Pen> x;
x.SetCount(10);
Compiler will fail at Reserve
Then when You comment out Reserve, compiler will fail at Add!!!!
This is difficult sometimes to trace where is the deffinition which causes problem ...
And this is why i started posting this topic.
|
|
|
Goto Forum:
Current Time: Mon Aug 25 03:52:33 CEST 2025
Total time taken to generate the page: 0.06516 seconds
|