my $video_panel=Wx::Panel->new($i_main_menu, wxID_ANY, wxDefaultPosition, [800,600],);
(... lots of code goes here and the full executable version is here:
####
)
my $g_window = $video_panel->GetHandle;
$message->src->set_window_handle($g_window);
####
vir tual WXWidget wxWindow::GetHandle() const
Returns the platform-specific handle of the physical window.
Cast it to an appropriate handle, such as HWND for Windows,
Widget for Motif or GtkWidget for GTK.
wxPerl Note: This method will return an integer in wxPerl.
####
The program 'GStreamer_test_6.pl' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 17 error_code 3 request_code 3 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error()
function.)