XOJO 2017r3 Problems From 2015r3.1

  1. 4 months ago

    Alexis C

    Jan 4 Pre-Release Testers, Xojo Pro Puerto Rico, USA
    Edited 4 months ago

    Hi
    my application no works when i select a picture from a folder it work perfect on 2015r3.1 but no on 2017r3 (32bit or 64bits is same problem)
    my file type is image/any

  2. Joost R

    Jan 4 Pre-Release Testers, Xojo Pro The Netherlands

    You start debugging with 2017R3 to see what goes wrong. There were quite some versions in between 2015r3.1 and 207r3,

  3. Alexis C

    Jan 4 Pre-Release Testers, Xojo Pro Puerto Rico, USA

    the problems is in my Dev computer works fine but on the customer computer no works
    any idea what is

  4. Julian S

    Jan 4 Pre-Release Testers, Xojo Pro UK

    what happens? crash?

    what os & version are they using?

  5. Emile S

    Jan 4 Europe (France, Strasbourg)

    @Alexis Cnbsp;Lugo my file type is image/any

    That may be the problem if your user try to open (select) a non image file… (and crash if you use drag and drop / drop a Folder into the target in the window).

  6. Alexis C

    Jan 4 Pre-Release Testers, Xojo Pro Puerto Rico, USA

    the application no crash only no upload the picture to the canvas

  7. Derk J

    Jan 4 Pre-Release Testers, Xojo Pro

    How do you read the picture to the canvas?

  8. Greg O

    Jan 5 Xojo Inc Somewhere near Raleigh, NC

    What platform and OS are you and your customer running on... and what type of picture is it?

  9. Jeff T

    Jan 5 Midlands of England, Europe

    What does your code look like?

  10. Alexis C

    Jan 5 Pre-Release Testers, Xojo Pro Puerto Rico, USA
    Edited 4 months ago

    Windows 10
    Dim f as FolderItem
    f = GetopenFolderItem("jpg" )
    if f <> nil then
    EZCanvas21.setPicture Picture.Open(f)
    end if
    picture type jpeg, png

  11. Julian S

    Jan 5 Pre-Release Testers, Xojo Pro UK
    Edited 4 months ago

    "The file types must be defined as file types in your project, either in the IDE in a File Type Set or with the FileType class."

    Have you done this?

    Also, is your dev OS the same as your customers? (Win10)?

    Have you tried running this code on the picture they are using?

    Maybe the picture is corrupt?

    What is setPicture ? Did you implement this?

    What is going on inside there?

    You need to give us a bit more information instead of drip feeding things, the more you provide the quicker/easier it is to help.

    A simple sample project would be ideal.

  12. Jeff T

    Jan 5 Midlands of England, Europe
    Edited 4 months ago

    And does this method have an exception handler ?
    It could have a try/catch around the

    EZCanvas21.setPicture Picture.Open(f)

    As there is no check here for success or failure when opening the file.
    Nor is there a check to see if the file exists, only if the object is nil

    Docs:
    'If the FolderItem passed is nil, a NilObjectException is raised. If Picture.Open fails for any other reason, Nil is returned with no other error information.'

    So the line will simply pass NIL to EZCanvas21.setPicture
    And that may not itself generate an error.

    Try something like this:

    Dim f as FolderItem
    f = GetopenFolderItem("jpg" )    //better to use filetypes here
    
    if f <> nil  then
      if f.exists then
          dim p as picture
           p = Picture.Open(f)
           if p = nil then 
              msgbox "Could not open " + f.nativepath  + " as a picture"
          else
              EZCanvas21.setPicture p
          end if
      else
              msgbox "File does not exist"
      end if
    end if
  13. Alexis C

    Jan 5 Pre-Release Testers, Xojo Pro Puerto Rico, USA

    hi
    how i can select two type on filetype like jpg,png ony

  14. Jeff T

    Jan 5 Midlands of England, Europe

    Create a new filetype.

    http://developer.xojo.com/userguide/using-file-type-sets

    To combine two file types:

    If your File Type Set has multiple file types, you can concatenate them:

    Dim f As FolderItem
    f = GetOpenFolderItem(ImageTypes.JPEG + ImageTypes.PNG)

    This will not resolve your issue if the user is selecting something that has a .jpg filename and yet is not a picture.

  15. Alberto D

    Jan 5 Pre-Release Testers, Xojo Pro
    Edited 4 months ago

    I think you insert a File Type Set into your project. Add only the jpeg and png to it, and use:

    f = GetOpenFolderItem(ImageTypes.All)

    If you have more image types in your ImageTypes definition and only want jpeg and png:

    f = GetOpenFolderItem(ImageTypes.JPEG + ImageTypes.PNG)

    I hope I'm right.

    Edit: Jeff was faster

  16. Alexis C

    Jan 5 Pre-Release Testers, Xojo Pro Puerto Rico, USA

    ok
    thanks

  17. 3 months ago

    Alexis C

    Jan 8 Pre-Release Testers, Xojo Pro Puerto Rico, USA
    Edited 3 months ago

    how I can select any picture file and no movie files or binary from like iPhone

  18. Alexis C

    Jan 11 Pre-Release Testers, Xojo Pro Puerto Rico, USA

    hi
    when i use iphone windows 10 i can copy the picture direct from the iphone i have to copy from iphone to the pc and then copy from the pc to my app

  19. Julian S

    Jan 11 Pre-Release Testers, Xojo Pro UK

    You might want to post this as a new topic in https://forum.xojo.com/conversations/web so it gets the most eyes on it.

  20. Jeff T

    Jan 11 Midlands of England, Europe

    how I can select any picture file and no movie files or binary from like iPhone

    When I plug my iPhone into my Windows 10 machine, it appears like an external drive.
    I just browse to it and look in the DCIM folder for pictures

    What problem are you having?
    Are you trying to change the image which exists on the iphone?

    And are you writing a web app (Julian's comment seems odd.. is there some other post that has suggested this is a web target??)

  21. Newer ›

or Sign Up to reply!