Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

ofPixels throwing exception well inside xy bounds

$
0
0

@johansonjj wrote:

As there has been a fix using size_t in ofPixels just recently, I am facing issues with code that worked well on 0.9.4 windows10:

Exception thrown at 0x00000001403EBD4C in example3J-test1_debug.exe: 0xC0000005: Access violation reading location 0x000000000FD5F0D3.

it is in getColor(x,y) where x and y are well inside their bounds and the image was loaded before.

is this a known behaviour?

the debugger breaks at

template<typename PixelType>
ofColor_<PixelType> ofPixels_<PixelType>::Pixel::getColor() const{
    ofColor_<PixelType> c;
    switch(pixelFormat){
        case OF_PIXELS_RGB:
            c.set( pixel[0], pixel[1], pixel[2] );
            break;
        case OF_PIXELS_BGR:
            c.set( pixel[2], pixel[1], pixel[0] );
            break;
        case OF_PIXELS_RGBA:
            c.set( pixel[0], pixel[1], pixel[2], pixel[3] ); // <<-----

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles