[QGIS-trac] Re: [Quantum GIS] #1878: remove setjmp/longjmp in grass plugin&provider and use exceptions instead

Quantum GIS qgis at qgis.org
Tue Jan 12 13:53:32 EST 2010


#1878: remove setjmp/longjmp in grass plugin&provider and use exceptions instead
-------------------------------------+--------------------------------------
        Reporter:  jef               |         Owner:  jef          
            Type:  patch             |        Status:  reopened     
        Priority:  minor: annoyance  |     Milestone:  Version 1.3.0
       Component:  GRASS             |       Version:  HEAD         
      Resolution:                    |      Keywords:               
Platform_version:                    |      Platform:  All          
        Must_fix:  No                |   Status_info:  0            
-------------------------------------+--------------------------------------
Comment (by jef):

 Replying to [comment:10 rblazek]:
 > Replying to [comment:9 jef]:
 > > applied in r11560

 > Are you sure it works after
 http://trac.osgeo.org/grass/changeset?old_path=grass%2Ftrunk%2Flib%2Fgis%2Ferror.c&old=23438&new_path=grass%2Ftrunk%2Flib%2Fgis%2Ferror.c&new=23439?
 For me exceptions cannot be caught after that change. The installed
 routine in QGIS is called, but then it terminates. It seems, that a
 function in a library in C cannot be interrupted by calling a function in
 C++ which throws an exception. Wasn't used setjmp/longjmp to solve it?

 I just verified that it works as expected on Windows.  I'll try on linux
 in the evening.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1878#comment:12>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list