PROBLEM: AMS40 Crashes With Page.HideObject and Dialog.MessageBox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Desmond
    Indigo Rose Staff Member
    • Jul 2003
    • 710

    PROBLEM: AMS40 Crashes With Page.HideObject and Dialog.MessageBox

    PROBLEM: AMS40 Crashes With Page.HideObject and Dialog.MessageBox

    PROBLEM: AMS40 Crashes With Page.HideObject and Dialog.MessageBox

    Document ID: IR04048
    The information in this article applies to:
    • AutoPlay Media Studio 4.0

    SUMMARY

    This article explains the problem where your application will crash if you use Page.HideObject and Dialog.MessageBox on the On Stop event of your media player object.

    DISCUSSION

    If you attempt to hide the media player object, and then display a message box as in the following example, your application will generate a runtime error and crash:

    Page.HideObject("MediaPlayer1");
    %Result% = Dialog.MessageBox("Title", "Message", Ok, Question);

    This is a known bug, and should not be done. Instead, display the message box before you hide the media player object. These actions when implemented as follows will not crash your application:

    %Result% = Dialog.MessageBox("Title", "Message", Ok, Question);
    Page.HideObject("MediaPlayer1");

    KEYWORDS: AutoPlay Media Studio 4.0, crash, bug, Page, HideObject, Hide, Object, Dialog, MessageBox, Message, Box


    Last reviewed: October 10, 2003
    Copyright © 2003 Indigo Rose Corporation. All rights reserved.
Working...
X