Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    172

    Critical BUG introduced in version 7.5.1006!

    I found a critical bug.

    I have tested with version 7.5.1004 and it works perfectly, but in version 7.5.1006 does not work.

    It has to do with StatusDLG, pressing the button "cancel" the statusdlg.

    In a search of files in callbackfunctions of it, if we add this code:

    function cancel ()

    StatusDlg.IsCancelled x = ();
    if x == true then

    StatusDlg.SetMessage ( "");
    StatusDlg.SetStatusText ( "");
    StatusDlg.SetAutoSize (false);
    StatusDlg.Hide ();
    Application.ExitScript ();

    end

    end

    The statusdlg disappears, but the script continues (still scanning).

    In version 7.5.1004 if that works correctly

  2. #2
    Join Date
    Jan 2009
    Posts
    172
    More details:

    the code use one function for enumerate drives, and scan all drives (with "for"). this repeat the funcion of search for any drive. (if not use this, work correctly)

  3. #3
    Join Date
    Jan 2009
    Posts
    172
    ok, I made more tests and finally I found the solution (in version 7.5.1004 but worked correctly ...)

    We should add this code:

    On page preload:

    esit = "";

    on code for stop of search

    function cancel ()

    StatusDlg.IsCancelled x = ();
    if x == true then

    StatusDlg.SetMessage ( "");
    StatusDlg.SetStatusText ( "");
    StatusDlg.SetAutoSize (false);
    esit = Yes;
    StatusDlg.Hide ();
    Application.ExitScript ();

    end

    if exit == Yes then
    Application.ExitScript ();
    end

    end

    so it works correctly

  4. #4
    Join Date
    Apr 2009
    Posts
    277
    you should be checking the "StatusDlg.IsCancelled" from inside your callback and set the correct return value to stop the progress, the code continues because you have not told the function to exit its self, clicking the cancel button on the status dialog will not stop your code, you need to do that

    remember, the status dialog is a information window only, it only does what you tell it to do

    Code:
    function MyCallBack(SomeVar)
    
    	-- your callback code
    	
    
    
    	if StatusDlg.IsCancelled() then
    		return false
    	else
    		return true
    	end
    end

Posting Permissions

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