Windows 10 which dont support PNG.. red herring

  1. 2 weeks ago

    Jeff T

    Jan 13 Pre-Release Testers Midlands of England, Europe

    I have a small number couple of potential customers (and some lost ones) where my Windows app doesnt seem to be able to open PNG files I ship with the app.
    Is there a known set of Windows where PNG is not supported for .openaspicture ?

    I have resolved the issue somehow by changing the order that some of my code executes, and perhaps by making use of ApplicationData instead of specialfolder.temporary
    hard to pinpoint the exact thing that solved the problem, affecting less than 1% of my customers.

    It seems events at startup happen in different orders on different builds of windows.
    And that on some machines, specialfolder.temporary is not a safe place to try saving files.

    But I am unable to change who can view this post, and I have nothing to tick as an 'answer' per se.

  2. Emile S

    Jan 13 Europe (France, Strasbourg)

    I suppose Windows 7 - Windows 10 (so not Windows XP, as I think it may not understand png).

  3. Jeff T

    Jan 13 Pre-Release Testers Midlands of England, Europe

    Windows 10 64bit

  4. Emile S

    Jan 13 Europe (France, Strasbourg)
    Edited 2 weeks ago

    Beside corrupted OS or Memory Low, I do not saw what it can be.

    One more: they are not png, but have that extension. I saw images (comic strips) with wrong extension (after checking the file magic value).

  5. Markus R

    Jan 13 Pre-Release Testers, Xojo Pro Europe / Germany

    if it is only one png then try resave with a paint app of your choice.

  6. Emile S

    Jan 13 Europe (France, Strasbourg)

    @Jeff T openaspicture

    I just realized… You mean thePict = Picture.Open(f), I suppose.

  7. Tomas J

    Jan 13 Pre-Release Testers, Xojo Pro Europe (Germany)
    Edited 2 weeks ago

    Well in many corporate networks Windows instalation are locked down due privacy and security concerns. IMHO Win10 aswell macOS are not operating systems anymore but data collecting platforms, but this is another topic). Here you find the most used BSI lock-down paper for IT Techs and Admins.

    Maybe the system in question is not corrupted but possible locked down. In most cases the app "Photos" is just not referenced as default for .PNG file extensions, is missing or just made not executable via SRP/SAFER policies in AD enviroments.

  8. Julian S

    Jan 15 Pre-Release Testers, Xojo Pro UK

    That's an interesting one, do you include the runtime dlls along side your app (under advanced build)?

  9. Jeff T

    Jan 15 Pre-Release Testers Answer Midlands of England, Europe

    I have resolved the issue somehow by changing the order that some of my code executes, and perhaps by making use of ApplicationData instead of specialfolder.temporary
    hard to pinpoint the exact thing that solved the problem, affecting less than 1% of my customers.

    It seems events at startup happen in different orders on different builds of windows.
    And that on some machines, specialfolder.temporary is not a safe place to try saving files.

    But I am unable to change who can view this post, and I have nothing to tick as an 'answer' per se.

  10. Norman P

    Jan 15 Pre-Release Testers, Xojo Pro outside

    I have an app that, in Windows 7, will not show certain PNG images properly unless I stop things in the debugger, view the contents of the picture, and then resume. And it only does this sporadically.
    Yet these images all show in every tool I can find with alpha channels that properly mask things out and are transparent.
    The exact same images show properly on macOS and more often than not also show properly on Windows 10.

    I've not found a 100% "fix" to this oddity

or Sign Up to reply!