-1

I am loading a Gdk.Pixbuf from bytes:

_pixbuf = new Gdk.Pixbuf(bytes);

Then, I'd like to read the _pixbuf data. But, it appears that the data is actually loading in the background because the data doesn't exist for a while. If I wait, all is fine.

How can I either know when it is finished, or force the update?

Doug Blank
  • 2,031
  • 18
  • 36
  • What language are you using ? Also I think you want Pixbuf.from_data or Pixbuf.with_unowned_data instead of the constructor you specify – Appleman1234 Mar 07 '14 at 01:43
  • I'm using C#, and the code I have works fine. It's just that when I try to do something with the data, it may not be fully loaded yet. – Doug Blank Mar 13 '14 at 12:45

1 Answers1

0

It turns out that this code was fine... I was executing it in the graphics thread, and returning before it was done. Once I executed it so that it blocked until it was complete, then all was fine.

Doug Blank
  • 2,031
  • 18
  • 36