From: Vadim Z. <vz...@ze...> - 2009-07-29 15:11:32
|
Hello, I'd like to ask if anyone has any idea about the following problem: when using SWIG 1.3.39 under Windows, I get stray "$directorconnect" fragments in constructors of the wrapped classes. E.g. (sorry for the long lines but I avoided wrapping them just in case this is significant): /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.29 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ using System; using System.Runtime.InteropServices; public class Date : IDisposable { ... public Date() : this(datastorePINVOKE.new_Date__SWIG_0(), true) { if (datastorePINVOKE.SWIGPendingException.Pending) throw datastorePINVOKE.SWIGPendingException.Retrieve();$directorconnect } public Date(int year_, int month_, int day_) : this(datastorePINVOKE.new_Date__SWIG_1(year_, month_, day_), true) { if (datastorePINVOKE.SWIGPendingException.Pending) throw datastorePINVOKE.SWIGPendingException.Retrieve();$directorconnect } ... } This obviously results in compilation errors when running C# compiler and generally looks like a SWIG bug but I wasn't able to reproduce it in a simple example so far and so I'm unsure about what triggers it. I'll try more if necessary but I wanted to ask here first if this problem was already known. For now I'll just run sed to get rid of them but this is not a nice long-term solution, of course. Thanks in advance! VZ |