RE: JCCEnv::ExceptionOccurred() returns NULL

2017-12-04 Thread Andi Vajda
[mailto:va...@apache.org] Sent: den 29 november 2017 21:52 To: pylucene-dev@lucene.apache.org Cc: Jesper Mattsson Subject: Re: JCCEnv::ExceptionOccurred() returns NULL On Nov 29, 2017, at 15:42, William Schilp wrote: I've added our JCC expert Jesper to this. Regarding shared mode, we're

RE: JCCEnv::ExceptionOccurred() returns NULL

2017-12-04 Thread Jesper Mattsson
CEnv::ExceptionOccurred() returns NULL > On Nov 29, 2017, at 15:42, William Schilp wrote: > > I've added our JCC expert Jesper to this. > Regarding shared mode, we're not quite sure what you mean here, do you > mean dynamically linked runtime libraries(mscrt##.dll)? We use the /M

Re: JCCEnv::ExceptionOccurred() returns NULL

2017-11-29 Thread Andi Vajda
> On Nov 29, 2017, at 15:42, William Schilp wrote: > > I've added our JCC expert Jesper to this. > Regarding shared mode, we're not quite sure what you mean here, do you mean > dynamically linked runtime libraries(mscrt##.dll)? We use the /MD flag to > visual studio. I mean: build JCC with shar

Re: JCCEnv::ExceptionOccurred() returns NULL

2017-11-29 Thread William Schilp
I've added our JCC expert Jesper to this. Regarding shared mode, we're not quite sure what you mean here, do you mean dynamically linked runtime libraries(mscrt##.dll)? We use the /MD flag to visual studio. On Nov 28, 2017 12:42, "Andi Vajda" wrote: > > > On Nov 28, 2017, at 11:27, William Schil

Re: JCCEnv::ExceptionOccurred() returns NULL

2017-11-28 Thread William Schilp
true, but at least in my case, leaking a pointer per exception is not that big a deal. i have to contact a team i work with that actually generates the JCC interface, and they're located in Norway... On Tue, Nov 28, 2017 at 4:48 PM, Andi Vajda wrote: > > > On Nov 28, 2017, at 16:09, William Schi

Re: JCCEnv::ExceptionOccurred() returns NULL

2017-11-28 Thread Andi Vajda
> On Nov 28, 2017, at 16:09, William Schilp wrote: > > i sort of agree with you. throwing an object through a DLL boundary may be > problematic due to memory allocation/deallocation. but in this case, it's > throwing a pointer (_jthrowable*), which is pretty much the same as > throwing an int...

Re: JCCEnv::ExceptionOccurred() returns NULL

2017-11-28 Thread William Schilp
i sort of agree with you. throwing an object through a DLL boundary may be problematic due to memory allocation/deallocation. but in this case, it's throwing a pointer (_jthrowable*), which is pretty much the same as throwing an int... On Tue, Nov 28, 2017 at 12:42 PM, Andi Vajda wrote: > > > O

Re: JCCEnv::ExceptionOccurred() returns NULL

2017-11-28 Thread Andi Vajda
> On Nov 28, 2017, at 11:27, William Schilp wrote: > > i'm using JCC in a rather large project where a C++ interface drives a java > application through the JCC interface. the java application makes > considerable use of exceptions (as it should) and the C++ interface needs > to catch the variou