You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
Env: VisualStudio Community 2022 Preview - C++
I wrote a small app (in C++) to display Exif data. I linked to app to Exiv2.lib (as found on the Web site). In Release mode, it works perfectly (I checked against the output of the Exifdata.exe found in the bin directory).
When I run in debug mode, the app crashed directly on opening the image file !!!
Line: Image::AutoPtr image = ImageFactory::open(szFile);
Exception thrown at 0x00007FF85B184F99 in Exif.exe: Microsoft C++ exception: Exiv2::BasicError at memory location 0x0000007203CFD6B0.
Catch give the following info:
Exiv2 Exception on Open File: : Failed to open the data source: Invalid argument (errno = 22)
If i use the option 'Use link time code generation', I got
Exception thrown at 0x00007FF8141B1470 (vcruntime140.dll) in Exif.exe: 0xC0000005: Access violation reading location 0x000002A057666597.
Catch is not called !!!!
Note that this is a Unicode App. But I pass the file name as a char... As a std::string, I got the same crash...
I guess this is because I link a debug app with a release lib .... Same if I uncheck 'use debug libraries' in VS
Is there a web site where I can download the debug release of the lib to check if this is the solution ?
Thank you for your help
Thierry
The text was updated successfully, but these errors were encountered:
I see you are using Visual Studio 2022. That could be the issue. We publish builds for MSVC 2019. You should be building the code from source for your platform. I would like to screen share with you to walk you through building the code from source.
Here's a build of Exiv2 v0.27.5 RC3 debug/msvc. Can you look at this and give me feedback, please.
Hello
Env: VisualStudio Community 2022 Preview - C++
I wrote a small app (in C++) to display Exif data. I linked to app to Exiv2.lib (as found on the Web site). In Release mode, it works perfectly (I checked against the output of the Exifdata.exe found in the bin directory).
When I run in debug mode, the app crashed directly on opening the image file !!!
Line: Image::AutoPtr image = ImageFactory::open(szFile);
Exception thrown at 0x00007FF85B184F99 in Exif.exe: Microsoft C++ exception: Exiv2::BasicError at memory location 0x0000007203CFD6B0.
Catch give the following info:
Exiv2 Exception on Open File: : Failed to open the data source: Invalid argument (errno = 22)
If i use the option 'Use link time code generation', I got
Exception thrown at 0x00007FF8141B1470 (vcruntime140.dll) in Exif.exe: 0xC0000005: Access violation reading location 0x000002A057666597.
Catch is not called !!!!
Note that this is a Unicode App. But I pass the file name as a char... As a std::string, I got the same crash...
I guess this is because I link a debug app with a release lib .... Same if I uncheck 'use debug libraries' in VS
Is there a web site where I can download the debug release of the lib to check if this is the solution ?
Thank you for your help
Thierry
The text was updated successfully, but these errors were encountered: