FotoFly and VS2010/C# 4.0

Jun 7, 2010 at 1:32 PM

Hey-

Has FotoFly .5 been tested with C# 4.0?

I havent looked @ this code in a while, but just upgraded to 4.0.  My code is now throwing -

Object reference not set to an instance of an object.

at FotoFly.IPhotoMetadataTools.UseReflection(Object source, Object destination, Boolean applyChanges, List`1& changes)   at FotoFly.IPhotoMetadataTools.CopyMetadata(Object source, Object destination, List`1& changes)   at FotoFly.JpgPhoto.UnhandledWriteMetadata()   at FotoFly.JpgPhoto.WriteMetadata()   at iMMovingService.FotoFlyMetadataWriter.SaveMetadata() in C:\Users\mdrooker\Desktop\iMMeta\iMMeta dotNet Server\ImageMgmt Solution\ImageMgmt Image Mover\iMMovingService\iMMovingService\ImageMetadataActions\FotoFlyMetadataWriter.cs:line 74   at iMMovingService.ShootZoneAction.ShootZoneThreadProcess.ProcessFile() in C:\Users\mdrooker\Desktop\iMMeta\iMMeta dotNet Server\ImageMgmt Solution\ImageMgmt Image Mover\iMMovingService\iMMovingService\ShootZoneAction\ShootZoneThreadProcess.cs:line 56   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   at System.Threading.ThreadHelper.ThreadStart()

 

When I call FotoFly.JpgPhoto.WriteMetadata();

 

I added a bunch of MetaData before this line.

 

Thanks-

Matthew

 

Coordinator
Jun 10, 2010 at 9:45 PM

Hi Matthew,

The version on codeplex is not tested with v4. I've been waiting for a new laptop which I finally got today so I will upload a new version shortly that is.

Cheers

Ben

Feb 4, 2011 at 8:57 PM

Hello,

Has this issue been solved?

i too have a problem with WriteMetadata.

L'exception System.InvalidOperationException n'a pas été gérée par le code utilisateur
  Message=Impossible de définir l'état de cloisonnement COM spécifié.
  Source=mscorlib
  StackTrace:
       à System.Threading.Thread.SetApartmentState(ApartmentState state)
       à FotoFly.WpfTools.WpfFileManager.ValidateThreadingModel()
       à FotoFly.WpfTools.WpfFileManager.ReadBitmapMetadata(String file, Boolean openForEditing)
       à FotoFly.JpgPhoto.UnhandledWriteMetadata()
       à FotoFly.JpgPhoto.WriteMetadata()
       à Gemini6Form.frmMain.BackgroundWorkerFlickr_DoWork(Object sender, DoWorkEventArgs e)
       à System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       à System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
  InnerException:

Thanks

Apr 9, 2011 at 8:15 PM

I believe that issue is "solved" by checking the operating system version. Windows XP and earlier don't support these methods.

Coordinator
Jul 24, 2011 at 8:41 PM

Correct, WinXP doesn't have the WIC libraries I use.