#1244 SWIG crashes when directors applied to a protected method

closed-fixed
5
2012-05-29
2012-05-24
David Piepgrass
No

My first-ever attempt to use directors did not go as well as I hoped. SWIG crashes, producing a zero-byte proxy file and no console output, when I ask for director support for a protected method, unless %feature("director") is also applied to the entire class. The crash occurs regardless of the target language. Example:

%module(directors="1") DirectorBug
%feature("director") Foo::ProtectedMethod;
class Foo {
public:
virtual ~Foo();
virtual void PublicMethod();
protected:
virtual void ProtectedMethod();
};

Discussion

  • William Fulton
    William Fulton
    2012-05-29

    That was a rather unfortunate start. The "director" feature is expected on the class. Crash has been fixed for swig-2.0.8.

     
  • William Fulton
    William Fulton
    2012-05-29

    • assigned_to: nobody --> wsfulton
    • labels: --> code generation (general)
    • status: open --> closed-fixed