Menu

#2 Error message when opening a file

v1.5
open
None
5
2014-10-10
2014-06-29
No

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.

Discussion

  • Luiz Fernando

    Luiz Fernando - 2014-06-29
    • assigned_to: Luiz Fernando
     
  • Krzysiekm

    Krzysiekm - 2014-09-30

    System: Windows 7 x64
    Same error. With version from the link:

    Error: Object reference not set to an instance of an object.
    Error info:
    at GIF_Viewer.FormMain.LoadGIF(String fileName, Boolean resizeAndRelocate) in C:\Users\Luiz Fernando\Documents\Visual Studio 2010\Projects\GIF Viewer\GIF Viewer\FormMain.cs:line 446
    at GIF_Viewer.FormMain..ctor(String[] args) in C:\Users\Luiz Fernando\Documents\Visual Studio 2010\Projects\GIF Viewer\GIF Viewer\FormMain.cs:line 295

    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
  • Luiz Fernando

    Luiz Fernando - 2014-10-10

    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.

     
  • Krzysiekm

    Krzysiekm - 2014-10-10

    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.

     

Log in to post a comment.