User Tag List

Results 1 to 6 of 6

Thread: Dialogbox crashes my program

  1. #1
    Clicker

    Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AWK's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dialogbox crashes my program

    Hi, let me start by telling you what I'm trying to do:

    I'm creating an application in which I often use the dialogbox to allow the user to give a name to some item or file. It all works perfectly. I'm currently finishing the application and that is when I discovered the hickup. As you might know, in a normal file there are some forbidden characters. Here's a little list:

    / \ : * ? < > | '

    I've discovered that, when I put one of these characters in an Editbox within the Dialogbox, it will crash the application when I exit through an Ok-button. Funny thing is that it crashes in two of the following three examples:

    >exampletext (CRASH)
    exampletext> (CRASH)
    example>text (No Crash!!!)

    It will crash at the moment I hit the button. No events after this will be processed. It just crashes immediately.

    I discovered this bug when I was trying to anticipate on a user who would try to use one of those symbols in a filename. In a strange way that thought amuses me somewhat. But it's also a major bug for me. I've used dozens of these Dialogboxes throughout my application. And I really like them a lot. It's a great extension. One of my favorites!

    Is it just a bug in the extension or might there be another explanation? I'd love to hear it!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dialogbox crashes my program

    Doesn't happen to me.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    2,289
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Dialogbox crashes my program

    AWK, are you using the latest build, 248 --->

  4. #4
    Clicker

    Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AWK's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dialogbox crashes my program

    Yes, I'm using the latest build.

    I have found a workaround that works for me though. I've changed the close-button to a 'normal' button and the Dialogbox is no longer Modal. When the button gets clicked, I copy the info from the Editbox to a Stringobject. Then I remove the text from the Editbox and then, finally, I can close the Dialogbox. No-one will know the difference, except me.

    I also found out that the StringParser object wasn't quite able to do the job I wanted it to, so I had to create some extra events anyway. Now I have what I wanted and it seems to work fine.

    I'm still curious though, to the nature of the crash I got. I have used the DialogBox quite often throughout my application and this crashing seems to happen in several of the others as well. The discribed workaround above, won't work everywhere. In several places I just need to use the Modal function.

    So if anyone has any suggestions, I'm open for it!

  5. #5
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Dialogbox crashes my program

    Could you send me an application that crashes? I'll try to see what happens. Thanks!

  6. #6
    Clicker

    Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AWK's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dialogbox crashes my program

    This is so weird!

    I opened the file today and the error had mysteriously vanished! Appearantly I should have restarted the computer before to solve this problem. Sorry for the upheaval!

Similar Threads

  1. Program crashes on startup.
    By velocitas in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 11th December 2013, 03:09 PM
  2. DialogBox
    By Sevennemesis in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th January 2013, 04:17 AM
  3. QuickHash crashes program
    By Phi in forum Extension Development
    Replies: 0
    Last Post: 25th April 2011, 11:50 AM
  4. Need help with DialogBox...
    By Jahkri in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 3rd December 2010, 07:30 PM
  5. Check if program crashes...
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th September 2008, 06:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •