Posted by Rik on 05/08/06 00:41
Areric wrote:
> Rik
>
> THanks for the help you were right the problem was elsewhere. For some
> reason my mImageCount wasnt getting initalized properly. So when i
> added my first image it was adding it to a index with no value, where
> when i tried to reference it i was referencing index 0. The weird
> thing was i had the mImageCount = 0 in the constructor.
Euhm, you've lost me.
If you initialize mImageCount = 0;
Add an object by $this->mImages[$this->mImageCount] = $image;
Surely it would be at index 0....
Or were you incrementing mImageCount beforehand?
Grtz,
--
Rik Wasmus
[Back to original message]
|