Apr 11 2022 12:30 PM - edited Apr 11 2022 03:02 PM
My access database crashes reading image file properties using the Windows Image Acquisition Library 2.0 (wiaaut.dll) on a Windows 11 PC
I am hoping to get help with a code solution or to find someone else who gets a similar failure outcome that can be forwarded to Microsoft
I have been relying on Windows Image Acquisition Library for a couple years now to compile and manage a catalog of photographs with their properties in an MS Access database. Previously, I have had no problems using a PC running Windows 10. Now I have a new PC running Windows 11 and my application crashes (shut down) while collecting image properties from the WIA.Imagefile object. I imported the same code module that has the relevant subroutines into Excel and get the same result. The application crashes. The crash occurs in an apparently random fashion. It scans the same collection of 3800 images repeatedly and I find that the crash can occur anywhere between the first and last image file scanned, It can also occur on any of the 65 or so properties that are offered in the WIA.ImageFile object. I have sufficient error trapping on all the subroutines that are called in the process but no error handling code block is ever entered before the application crashes.
In comparison, these MS Access and Excel applications can read, without issue, the file properties that are made available in the FileSystemObject and in the Shell32 object.
Relevant tech specs are:
I have attached a module with the subroutines I use, with hopes that an Access or Excel expert can help me figure this out.