Gtkmm-forge Digest, Vol 23, Issue 6



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 528286] New: Unable to catch exception from
      Glib::spawn_async_with_pipes on windows (glibmm (bugzilla.gnome.org))
   2. [Bug 528286] Unable to catch exception from
      Glib::spawn_async_with_pipes on windows (glibmm (bugzilla.gnome.org))
   3. [Bug 528285] Glib::spawn_async* functions need	overloads
      without the child_setup param (glibmm (bugzilla.gnome.org))
   4. [Bug 528286] Unable to catch exception from
      Glib::spawn_async_with_pipes on windows (glibmm (bugzilla.gnome.org))
   5. [Bug 526831] G_OPTION_REMAINING no longer works	with
      OptionEntry (glibmm (bugzilla.gnome.org))
   6. [Bug 526831] G_OPTION_REMAINING no longer works	with
      OptionEntry (glibmm (bugzilla.gnome.org))
   7. [Bug 528286] Unable to catch exception from
      Glib::spawn_async_with_pipes on windows (glibmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Tue, 15 Apr 2008 19:32:39 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528286] New: Unable to catch exception
	from	Glib::spawn_async_with_pipes on windows
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-528286-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528286

  glibmm | general | Ver: unspecified
           Summary: Unable to catch exception from
                    Glib::spawn_async_with_pipes on windows
           Product: glibmm
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: jonathon quotidian org
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


reported on irc by aib42:  When trying to use spawn_async_with_pipes, it
doesn't seem possible to catch the exception thrown:



/***** main.cpp *****/

#include <gtkmm.h>
#include <iostream>

void foo() { std::cout << "foo()" << std::endl; }

int main()
{
        std::vector<std::string> v(1);

        v[0] = std::string("C:\\Windows\\system32\\cmd.exe");

        std::cout << "Spawning: " << v[0] << std::endl;

        Glib::Pid p;

        try {
                Glib::spawn_async(Glib::get_current_dir(), v,
Glib::SpawnFlags(0), sigc::ptr_fun(foo), &p);
//              Glib::spawn_async(Glib::get_current_dir(), v,
Glib::SpawnFlags(0), sigc::slot<void>(), &p);
        } catch (Glib::Error e) {
                std::cerr << "Error: " << e.what() << std::endl;
        } catch (...) {
                std::cerr << "Uncaught exception" << std::endl;
        }

        std::cout << "Hello, World!" << std::endl;
}

/***** make output *****/
    g++ -O2 -g -Wall -fmessage-length=0 -mms-bitfields
-IC:/SDK/GTK+-2.10.11-1/include/gtkmm-2.4
-IC:/SDK/GTK+-2.10.11-1/lib/gtkmm-2.4/include
-IC:/SDK/GTK+-2.10.11-1/include/glibmm-2.4
-IC:/SDK/GTK+-2.10.11-1/lib/glibmm-2.4/include
-IC:/SDK/GTK+-2.10.11-1/include/gdkmm-2.4
-IC:/SDK/GTK+-2.10.11-1/lib/gdkmm-2.4/include
-IC:/SDK/GTK+-2.10.11-1/include/pangomm-1.4
-IC:/SDK/GTK+-2.10.11-1/include/atkmm-1.6
-IC:/SDK/GTK+-2.10.11-1/include/gtk-2.0
-IC:/SDK/GTK+-2.10.11-1/include/sigc++-2.0
-IC:/SDK/GTK+-2.10.11-1/lib/sigc++-2.0/include
-IC:/SDK/GTK+-2.10.11-1/include/glib-2.0
-IC:/SDK/GTK+-2.10.11-1/lib/glib-2.0/include
-IC:/SDK/GTK+-2.10.11-1/lib/gtk-2.0/include
-IC:/SDK/GTK+-2.10.11-1/include/cairomm-1.0
-IC:/SDK/GTK+-2.10.11-1/include/pango-1.0 -IC:/SDK/GTK+-2.10.11-1/include/cairo
-IC:/SDK/GTK+-2.10.11-1/include/freetype2 -IC:/SDK/GTK+-2.10.11-1/include
-IC:/SDK/GTK+-2.10.11-1/include/atk-1.0 -c main.cpp
    g++ -o GTKonsole.exe main.o -user32 -Wl,-luuid -LC:/SDK/GTK+-2.10.11-1/lib
-lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-win32-2.0 -lpangomm-1.4 -lcairomm-1.0
-lglibmm-2.4 -lsigc-2.0 -lgdk-win32-2.0 -lgdi32 -limm32 -lshell32 -lole32
-latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpangocairo-1.0 -lcairo
-lpangoft2-1.0 -lfontconfig -lfreetype -lz -lpango-1.0 -lm -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl -liconv

/***** versions *****/
g++ (GCC) 3.4.5 (mingw special)
GTK: 2.10.11-1 (Win32 installer)
gtkmm/glibmm: 2.4

/***** output *****/
21:47:35 X:\GTKonsole>GTKonsole.exe
Spawning: C:\Windows\system32\cmd.exe

(GTKonsole.exe:1552): GLib-WARNING **: passing a child setup function to the
g_spawn functions is pointless and dangerou
s on Win32
foo()

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

21:47:41 X:\GTKonsole>


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528286.



------------------------------

Message: 2
Date: Tue, 15 Apr 2008 19:33:35 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528286] Unable to catch exception from
	Glib::spawn_async_with_pipes on windows
To: gtkmm-forge lists sourceforge net
Message-ID: <20080415193335 EE52F23F5A0 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528286

  glibmm | general | Ver: unspecified




------- Comment #1 from Jonathon Jongsma (jonner)  2008-04-15 19:33 UTC -------
additional info from IRC:

(2:25:23 PM) armin: I already had problems with exceptions not getting caught
on Win32 when a dynamic library throws an exception that I tried to catch in an
executable built with a different compiler.
(2:25:28 PM) armin: Or, this is what I assumed to be the cause.
(2:25:41 PM) jonner: armin: ugh
(2:26:18 PM) jonner: so it doesn't work if the default gtkmm binaries are built
with msvc, and the application is mingw...?
(2:26:39 PM) armin: I think so


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528286.



------------------------------

Message: 3
Date: Tue, 15 Apr 2008 19:38:29 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528285] Glib::spawn_async* functions
	need	overloads without the child_setup param
To: gtkmm-forge lists sourceforge net
Message-ID: <20080415193829 BB18223F5A0 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528285

  glibmm | general | Ver: unspecified

aib changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aibok42 gmail com




-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528285.



------------------------------

Message: 4
Date: Tue, 15 Apr 2008 19:38:35 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528286] Unable to catch exception from
	Glib::spawn_async_with_pipes on windows
To: gtkmm-forge lists sourceforge net
Message-ID: <20080415193835 743D523F5A0 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528286

  glibmm | general | Ver: unspecified

aib changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aibok42 gmail com




-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528286.



------------------------------

Message: 5
Date: Wed, 16 Apr 2008 03:30:06 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 526831] G_OPTION_REMAINING no longer
	works	with OptionEntry
To: gtkmm-forge lists sourceforge net
Message-ID: <20080416033006 7035723F5B1 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=526831

  glibmm | general | Ver: 2.16.x

Philip Langdale changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gnomebugs philipl overt org




------- Comment #3 from Philip Langdale  2008-04-16 03:30 UTC -------
I did a binary search and it happened between 2.15.2 and 2.15.3. It's not
mentioned in the changelog but it's clearly there in the diff. It comes from
change 545 to optionentry.hg which introduces this definition:

#m4 _CONVERSION(`Glib::ustring',`const gchar*',`($3).empty() ? NULL :
g_strdup(($3).c_str())')


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=526831.



------------------------------

Message: 6
Date: Wed, 16 Apr 2008 06:56:09 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 526831] G_OPTION_REMAINING no longer
	works	with OptionEntry
To: gtkmm-forge lists sourceforge net
Message-ID: <20080416065609 B095123F5B1 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=526831

  glibmm | general | Ver: 2.16.x




------- Comment #4 from Murray Cumming  2008-04-16 06:56 UTC -------
Thanks, Philip.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=526831.



------------------------------

Message: 7
Date: Wed, 16 Apr 2008 08:35:07 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 528286] Unable to catch exception from
	Glib::spawn_async_with_pipes on windows
To: gtkmm-forge lists sourceforge net
Message-ID: <20080416083507 48C9323F5BF label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=528286

  glibmm | general | Ver: unspecified

Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |murrayc murrayc com




------- Comment #2 from Murray Cumming  2008-04-16 08:35 UTC -------
The test case seems to work for me. I get this output:

Spawning: C:\Windows\system32\cmd.exe
foo()
Error: Failed to execute child process "C:\Windows\system32\cmd.exe" (No such
file or directory)
Hello, World!


Isn't is working for you, Jonathan? Why didn't aib42 submit this bug so we
could ask him about it?


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=528286.



------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 23, Issue 6
******************************************


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