Article View: comp.sys.mac.programmer.codewarrior
Article #990Re: CW7.2 and jnilib and C++ Exception woes
From: Kent Brockman
Date: Mon, 06 May 2002 08:37
Date: Mon, 06 May 2002 08:37
47 lines
2994 bytes
2994 bytes
Leon, Ron,
My CW Pro 6.2 cannot deal with mack-o. But I did a little work to see
how far I could get on MacOS X by using carbon. I first started with a
PPC library and I had to make the alterations as I described earlier to
intitiale MSL. Without the extra intialization the application would
crash. My test library succesfully catches the exception. It works with
the CW app and it works with JBindery.
Creating a carbon version of the library was easy enough, but much to my
supprise does CW not provide a carbon version of their application that
runs my java classes.
So I have a question too. Does CW Pro 8 provide a carbon version of the
application that makes my classes a clickable app?
Eddy Walet
PTH
NOTE Since the printf would create a
SIOUX window, that is starved from
events and thus freezing my app,
I did some extra work. I wrote a
function in C++ called "systemprintln".
It takes the same parameters as printf,
but writes to the java System.out
stream through the println method.
Just wanted to share this to show
how far you can get with JNI.
Leon wrote:
> Here is the HelloWorld example that I modified to demonstrate my problem.
> The project contains a target called HelloWorld_MACH that I added to produce
> libHelloWorld.jnilib for MacOSX. Perhaps I goofed on the settings, that's
> why it's causing exceptions to crash.
--
=============================
This mail-address is not valid. It is used to prevent my own address
from being harvested by a bot.
If you want to contact me you can use:
brockman-AT-xs4all-DOT-nl
Sorry for any inconvenience this may give.
Kent Brockman is not my real name.
=============================
Technical Details
Message-ID:
<3CD640DC.5040109@channelsix.news>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!transit.news.xs4all.nl!not-for-mailReferences:
<S2Yz8.3742$5X6.106437@news0.telusplanet.net> <CMBA8.10484$5X6.299348@news0.telusplanet.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,8001f03ae149be7a X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,8001f03ae149be7a X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2002-05-06 01:39:01 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!transit.news.xs4all.nl!not-for-mail From: Kent Brockman <Kent.Brockman@channelsix.news> Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Re: CW7.2 and jnilib and C++ Exception woes Date: Mon, 06 May 2002 10:37:48 +0200 Organization: XS4ALL Internet BV Lines: 48 Message-ID: <3CD640DC.5040109@channelsix.news> References: <S2Yz8.3742$5X6.106437@news0.telusplanet.net> <CMBA8.10484$5X6.299348@news0.telusplanet.net> NNTP-Posting-Host: s340-modem1030.dial.xs4all.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news1.xs4all.nl 1020674340 19855 194.109.164.6 (6 May 2002 08:39:00 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 6 May 2002 08:39:00 GMT User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.4) Gecko/20011130 Netscape6/6.2.1 X-Accept-Language: en-us