Hello,

I have created a static C++ DLL and exported a function on it. The function creates a .gif file. I then interface the DLL in my C# project and I call the C++ function through C++.
I view the .gif file that has been created in a pictureBox. When I clear the pictureBox and try to view the .gif, an NullPointerException is thrown!
When I try to delete the .gif file manulaly, it says that another process is using the .gif file.
I figured that MyC#Project.exe is the one locking my .gif

Is there a way to be able to view .gif, clear them, and then view them again in the pictureBox?

Help Gurus!!

Ali