JNI wrapper for NSSavePanel

Steve Hannah steve at weblite.ca
Sat Oct 6 15:56:37 PDT 2012


Hi Michael,

Thanks for the suggestion.  After some more investigation I have found
that, the problem is that the library is not being loaded at all, so the
bad access is from the attempt to call the native method at all.

So it looks like it is a problem with the JNF symbols being used. (I.e. I
changed the method so that it contains nothing but a return NULL (between
the JNF_COCOA_ENTER and JNF_COCOA_EXIT calls), and I get the same crash.

I still don't understand why it's having the problem, but at least I
understand that the problem is nothing to do with the content in the body
of the method.  The problem is with the JNF_COCOA_ENTER and EXIT calls
themselves.

Thanks for your help.

Best regards

Steve

On Sat, Oct 6, 2012 at 3:11 PM, Michael Hall <mik3hall at gmail.com> wrote:

> On Oct 6, 2012, at 4:08 PM, Steve Hannah wrote:
>
> > I have posted source for both versions of the method at
> > https://gist.github.com/3846116.
>
> How about throwing a retain on path and see if it makes a difference?
>
> Michael Hall
>
> trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz
>
> HalfPipe Java 6/7 shell app
> http://www195.pair.com/mik3hall/index.html#halfpipe
>
> AppConverter convert Apple jvm to openjdk apps
> http://www195.pair.com/mik3hall/index.html#appconverter
>
>
>
>
>


-- 
Steve Hannah
Web Lite Solutions Corp.


More information about the macosx-port-dev mailing list