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 & Gdiplus::Pen problem
Re: Array & Gdiplus::Pen problem [message #10864 is a reply to message #10854] Wed, 01 August 2007 19:53 Go to previous messageGo to previous message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: #ifdef PLATFORM_POSIX #include <bits/atomicity.h> for POSIX ?
Next Topic: Compatibility change
Goto Forum:
  


Current Time: Mon Aug 25 03:52:33 CEST 2025

Total time taken to generate the page: 0.06516 seconds