octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51161] Issues with GUI object callback functi


From: anonymous
Subject: [Octave-bug-tracker] [bug #51161] Issues with GUI object callback functions
Date: Fri, 2 Jun 2017 08:46:59 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

URL:
  <http://savannah.gnu.org/bugs/?51161>

                 Summary: Issues with GUI object callback functions
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 02 Jun 2017 12:46:57 PM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: David Foxall
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I have been trying to implement a GUI for image analysis. My program has a
uicontrol listbox object and I originally wrote a callback to accept three
structures: one with object handles, one with the image data and one with ROI
data.  

Manipulating the GUI to execute the callback caused OCTAVE to report an error
about attempting to dereference a scalar with a period. 

OK it didn't support structures ... so I tried to pass an array and
dereference an element inside the callback. To get the following message.

error: xv_roi_update: A(I): index out of bounds; value 1 out of bound 0
error: called from
    xv_roi_update at line 16 column 10 

It seems that OCTAVE only supports passing scalar variables to callbacks. 

So I tried a simple script as the callback, and on triggering it, crashed the
whole program. 

The attached files should reproduce the problem if you alter test.m to supply
some of your own image data. 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 02 Jun 2017 12:46:57 PM UTC  Name: xv.m  Size: 10kB   By: None
You will have to supply an image to run these scripts 
<http://savannah.gnu.org/bugs/download.php?file_id=40840>
-------------------------------------------------------
Date: Fri 02 Jun 2017 12:46:57 PM UTC  Name: xv_display.m  Size: 279B   By:
None
You will have to supply an image to run these scripts 
<http://savannah.gnu.org/bugs/download.php?file_id=40841>
-------------------------------------------------------
Date: Fri 02 Jun 2017 12:46:57 PM UTC  Name: xv_roi_update.m  Size: 500B   By:
None
You will have to supply an image to run these scripts 
<http://savannah.gnu.org/bugs/download.php?file_id=40842>
-------------------------------------------------------
Date: Fri 02 Jun 2017 12:46:57 PM UTC  Name: test.m  Size: 174B   By: None
You will have to supply an image to run these scripts 
<http://savannah.gnu.org/bugs/download.php?file_id=40843>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51161>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]