This Is Weird? Plugin Not Detected!

Ok, this used to work but now not working with the latest tip? Plugin is not detected in cubase if I try to get the loaded image size

[code]
Image* im = ImageFileFormat::loadFrom(file);

tmpimage = new Image (Image::RGB, im->getWidth(), im->getHeight(),true);[/code]

but if I do this, then it works

[code]
Image* im = ImageFileFormat::loadFrom(file);

tmpimage = new Image (Image::RGB, 512, 512,true);[/code]

ofcourse you have to know the image size upfront :?

maybe im == 0 and it’s crashing…?