Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceExceptions #90

Closed
GoogleCodeExporter opened this issue Jul 28, 2015 · 5 comments
Closed

NullReferenceExceptions #90

GoogleCodeExporter opened this issue Jul 28, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

I am getting a null reference exception after doing some manipulations (like 
flipping the image horizontally with my own code).

First, everything is OK and displayed successfully. After I do the operation on 
a rather large file (1024x768 JPEG), the error occurs (sorry, german only):

-------
Exception occurred: Der Objektverweis wurde nicht auf eine Objektinstanz 
festgelegt.,    bei Manina.Windows.Forms.ImageListViewItemCacheManager.DoWork() 
in 
C:\Ablage\ilv-svn\imagelistview-read-only\ImageListViewItemCacheManager.cs:Zeile
 232.
   bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Threading.ThreadHelper.ThreadStart()
-------

So it seems that in line 232 of the file "ImageListViewItemCacheManager.cs" a 
null reference exception occures.

My code basically does:

--------
using (var img = Image.FromFile(item.FileName))
{
    img.RotateFlip(RotateFlipType.RotateNoneFlipX);
    img.Save(item.FileName);
}
--------

My assumption is that the background processing struggles when accessing the 
file that I have still in use or something like that.

Original issue reported on code.google.com by [email protected] on 6 Sep 2010 at 5:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants