On Sun, Mar 23, 2008 at 12:22:08AM -0500, Bo Peng wrote: > On Sat, Mar 22, 2008 at 9:22 AM, Bo Peng <[EMAIL PROTECTED]> wrote: > > > Wait, did you try "inset-settings listings"? > > > > You are right, this seems to be the right lfunc to use. However, lyx > > still crashes with the same error message... > > The exception is triggered at GuiListings.cpp, line 218 and later, > when const char * is converted to QString. > > for (int n = 0; languages[n][0]; ++n) > languageCO->addItem(qt_(languages_gui[n])); > > where > > char const * languages[] = { "no language", "blah", "" }; > > I vaguely remember that it is unsafe to call certain functions on char > const *, but I am not quite sure. Any idea?
Looks safe. The emory th pointer is pointig to is even static, so it does not go "suddenly" out of scope. Andre'