Hi,
First, does the example you are referring to does run properly? Your code is nearly identical to it, with the exception of how niPicture is declared (and this is functionally the same). I have run the example and do not see this error. Perhaps I am doing something differently than you are.
Another difference I noticed was the m_NIGraphCellV. Is this object of type CNiGraph or is it another type? It sounds like that is the case, but I am just making sure.
If the example works fine for you and only your code is giving this problem, what other differences exist in your code that are worth noting?
Best Regards,
Allen P.
Applications Engineer
National Instruments