You are testing with GDI+ enabled in the application, right? I wonder if in multi-threaded code, you might need to call GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL) in each thread?
Or is the problem that it doesn't even work in the main thread at all? On Sep 23, 2013, at 2:36 AM, Christian Schmitz <[email protected]> wrote: > > Am 23.09.2013 um 03:24 schrieb Michael Diehr <[email protected]>: > >> I'm just guessing here, as I've never used GDI+ from C myself. >> >> Error 2 is >> "InvalidParameter" according to >> http://msdn.microsoft.com/en-us/library/windows/desktop/ms534175(v=vs.85).aspx >> Indicates that one of the arguments passed to the method was not valid. > > Yes. I once got it work, but failed later. Not sure why. > >> Are you making a new BitmapData object for bitmapdata2? > > > yes, a few lines before: > > BitmapData* bitmapData2 = new BitmapData(); > DebugMessage("bitmapData2", (void*)bitmapData2); > if (bitmapData2) > > Greetings > Christian > > -- > Read our blog about news on our plugins: > > http://www.mbsplugins.de/ > > _______________________________________________ > Mbsplugins_monkeybreadsoftware.info mailing list > [email protected] > https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
