Error message when opening a file
Windows 7/8/10-compatible animated .gif player
Brought to you by:
luizzak
Whenever I try to open a file, I get an "Error: Object reference not set to an instance of an object" popup along with:
" at GIF_Viewer.FormMain.LoadGIF(String fileName, Boolean resizeAndRelocate)
at GIF_Viewer.FormMain.PlayBtn_Click(Object sender, EventArgs e)". Tried 1.4.7 and 1.4.5.
Could you try replacing the executable down at the installation path with this version if you haven't already:
http://sourceforge.net/projects/gifviewer/files/Releases/GIF%20Viewer%201.4.7/bin/gifviewer_1.4.7_verbose.zip/download
and pasting the whole error message here? I'll help me track down the issue down to the line number better.
Thanks,
-Luiz
System: Windows 7 x64
Same error. With version from the link:
Problem goes away when program is run as an administrator.
I installed this program using the official installer. Most likely access was denied when accessing settings.ini in program files folder. When i changed permission to the Gif Viewer folder for my user problem went away.
Last edit: Krzysiekm 2014-09-30
Please test with the new v1.6.0 and report back whether the error is still present.
I'm currently having trouble to test this specific scenario because my dev machine does not reflect the required settings (access permissions and such) to trigger the bug, so feedback is currently much appreciated.
Install the program, then deny write and modify access to the "%PROGRAMFILES(X86)%\GIF Viewer" folder for your user (by default ordinary users have only read/execute on folders inside %PROGRAMFILES(X86)%), then try to open a .gif file with Gif viewer (using explorer, not running gif viewer, and then opening a gif inside it). You should get the exception.