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

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

[Octave-bug-tracker] [bug #38305] file dialog causes crash


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #38305] file dialog causes crash
Date: Sun, 26 May 2013 21:39:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #25, bug #38305 (project octave):

Hold on.  Placing a GUI element inside that run function will probably break
no matter what because it sounds like "run" is the starting point of the new
thread, i.e., whatever is inside of "run" is executing in the non-GUI thread.

So, let's try placing the Qt file-dialog instruct after

_octave_qt_link->execute_interpreter ();

in main-window.cc and comment out portions of "run".  That is, first try
this:


void
octave_main_thread::run (void)
{
  // Matlab uses "C" locale for LC_NUMERIC class regardless of local setting
  setlocale (LC_NUMERIC, "C");

  octave_initialize_interpreter (octave_cmdline_argc, octave_cmdline_argv,
                                 octave_embedded);

//  octave_execute_interpreter ();
}


Then this:


void
octave_main_thread::run (void)
{
  // Matlab uses "C" locale for LC_NUMERIC class regardless of local setting
  setlocale (LC_NUMERIC, "C");

//  octave_initialize_interpreter (octave_cmdline_argc, octave_cmdline_argv,
                                 octave_embedded);

//  octave_execute_interpreter ();
}


Then this:


void
octave_main_thread::run (void)
{
  // Matlab uses "C" locale for LC_NUMERIC class regardless of local setting
//  setlocale (LC_NUMERIC, "C");

//  octave_initialize_interpreter (octave_cmdline_argc, octave_cmdline_argv,
                                 octave_embedded);

//  octave_execute_interpreter ();
}


Note the behavior of freezing in all three cases.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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