Re: Segmentation fault



On Jan 7, 12:05 pm, smallpond <smallp...@xxxxxxxx> wrote:
On Jan 7, 1:05 pm, mariakvela...@xxxxxxxxx wrote:





Hello all,

I am writing a program that displays a dialog box (using MainWindow)
where the user can enter some information and then click on either an
OK button or Cancel button.

When the user clicks OK or Cancel, the program is suppose to display a
message dialog (MessageDialog) displaying an appropriate message;
however, on Linux and Solaris machines, the program exits with a
Segmentation fault message.

This is message dialog portion of the program

my $dialog = MessageDialog->new( {
title => $self->get_string_source()->get_string('Dialog','title'),
message => $message,
default_button => $self->get_string('button_ok'),
buttons => [ $self->get_string('button_ok') ],
icon => $self->get_config()->get_integration_icon(),});

$dialog->show();
$dialog->get_main()->waitWindow();

Can anyone help me out with this problem.

Thanks so much!

Are you trying to mix Gtk and Tk?- Hide quoted text -

- Show quoted text -

Sorry, I should have specified this, MessageDialog is not from Gtk, it
is a package that I just named MessageDialog, which basically is the
portion of the code that creates a dialog box(using MainWindow) that
displays a message.

Hope that made sense.
.



Relevant Pages

  • Re: BeforeUpdate Event
    ... Even if you cancel Form_BeforeUpdate and undo the form, ... You can use the form's Error event to trap it: ... and go back the form displaying a ... >>The BeforeUpdate event of the form or that of a control? ...
    (microsoft.public.access.formscoding)
  • Re: Password prompt when mapping network shares
    ... dialog doesn't get displayed on this headless device. ... You could send the AddConnection function a window handle to your own dummy ... running on a headless device displaying the credentials prompt dialog is a ... inside a thread and simply cancel the thread after a timeout. ...
    (microsoft.public.windowsce.app.development)
  • Click event not raised when clicking a button after displaying a dialog box
    ... In the Validating event of a TextBox, I am displaying a Yes/No message ... I cancel any subsequent events. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • SHdocVw event problem
    ... I'd like to avoid even attempt to open files such as doc, pdf, ppt, etc. which cause displaying dialog box thus need user attention. ... Event object.Filedownload never fires. ... It is supposed to fire before that dialog box is displayed and theoretically can trigger sub to handle it e.g. Cancel = True. ...
    (microsoft.public.excel.programming)
  • Re: How do lispers do their GUI programming anyway?
    ... The core point here is "when you've got the gtk documentation": ... displaying a web page to a single macro which hides all the HTML setup ... update form and just specify what the form should look like. ... To make laws that man cannot, and will not obey, ...
    (comp.lang.lisp)