![]() An exception is raised, and the error handling code doesn't really do the right thing either.Īdding StringComparison.InvariantCultureIgnoreCase to the IndexOf calls and voila, it works.December, 2015 Re: City of Mississauga 2015 Facility Accessibility Design Standards These are definitely not the right values, and we get an empty string, and the calling code can't parse an empty string to an integer. If blob equals e.g. "", the startIndex and endIndex values are 10 and 10, respectively. Private static string GetProperty ( string blob, string propertyName ) The code causing the problem is deep in the bowels of some old crusty code over in SystemLayer's PropertyItem2, which is used for serializing/deserializing GDI+ PropertyItem instances: If I set CultureInfo.CurrentCulture to th-TH at app startup, then the hang reproduces. Using Google Translate to translate "สิงหาคม" reveals that it's Thai (th-TH). The key ended up noticing this one line over in diagnostics info:īuild Date 4 สิงหาคม 2563 (August 4, 2021) All of the string handling in Metadata is using the Invariant culture with case-insensitivity, so it shouldn't be dependent on a user or system setting. The diagnostic info that over at shows en-US (English U.S.) as the culture/locale, so I'm not sure it's that. just click on the app icon in Start, taskbar, desktop, anywhere) then it must be dependent on some other factor. If this happens even when launching Paint.NET without an image to open (e.g. If there's an image that causes this to happen, then all I need is the image. If I can catch this in the act then it should be very easy to solve. My current investigation is looking into why Metadata either can't find the EXIF metadata, or isn't storing it correctly, or isn't caching it correctly. It should be able to get the value when it calls into Metadata.GetExifPropertyItems(). Get_DpuUnit shouldn't need to remember that it just set the value via set_DpuUnit. 2005) and has always worked fine, despite being an objectively terrible, awful, ugly, and (dare I say) dumb way of doing it. This is ooooooolllllllldddddddddd code (ca. Although why app keeps spinning around in circles instead of crashing with a stack overflow is unclear to me. Yes, the recursive call is at the heart of this matter which is causing the infinite loop. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |