Commit dfc398f4 authored by Claes Sjofors's avatar Claes Sjofors

Ge preview, handling of exceptino when runtime not started

parent 88bf5322
......@@ -1125,7 +1125,10 @@ gdb_MapDb (
/* Map lock sections. */
gdbroot->lock = sect_Alloc(sts, &created, &gdbroot->h.lock, sizeof(sect_sMutex), gdb_cNameDbLock, 0);
if (gdbroot->lock == NULL) errh_Bugcheck(*sts, "mapping db lock");
if (gdbroot->lock == NULL) {
errh_Fatal("Error mapping db lock\n%m", *sts);
pwr_Return(NULL, sts, GDH__DBLOCK);
}
if (created) {
sect_Free(&lsts, gdbroot->lock);
pwr_Return(NULL, sts, GDH__RTNOTSTARTED);
......
......@@ -101,6 +101,7 @@ file <Unable to open file> /error
convert <Unable to convert value> /error
readonly <Object or attribute is read only> /error
remotemount <Remotly mounted object> /error
dblock <Unable to map db lock> /error
.end
......@@ -689,6 +689,8 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
char title[120] = "Xtt ";
char nodename[80];
if ( EVEN(*return_sts)) return;
gtk_init( &argc, &argv);
setlocale( LC_TIME, "en_US");
......
......@@ -550,6 +550,8 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
static char display[80];
static char display_opt[20] = "--display";
*return_sts = XNAV__SUCCESS;
strcpy( opplace_str, "");
hot_xtt = this;
......
......@@ -755,8 +755,14 @@ void Ge::activate_change_name()
void Ge::activate_preview_start()
{
graph->init_trace();
set_title();
int sts;
sts = graph->init_trace();
if ( EVEN(sts)) {
message( 'E', "Unable to start Preview");
}
else
set_title();
}
void Ge::activate_preview_stop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment