Re: SIGSEGV 11* segmentation violation

1998-07-16 Thread Steffen Tacke

> Currently i have to develop an application that is based on a C++ Core.
> For testing purpose i just called some C++-Functions that simply do some 
> cout stuff from within a selfwritten Java-GUI. The functions are called
> succesfully but if i want proceed in the Java-Programm i ALWAYS get an:
> SIGSEGV   11*  segmentation violation
> stackbase=0x413c5000, stackpointer=0x413c4a28
> 
> Full thread dump:
> "Thread-5" (TID:0x4065e658, sys_thread_t:0x414fef04, state:MW) prio=5
> [...and so on...]
> 
> The same kind of error happens also with a different C++ Library
> but similar calls (it doesn't matter if the c++ calls are doing some cout
> stuff ore anything else).
> The C++ Calls are compiled with g++ 2.7.2 with the -shared switch.
> The same type of Code (Java and C++) runs without any problems on a Sun
> Solaris 2.5.1 System (also with gcc 2.7.2).
> 
> So my conclusion is that there is a (are some) serious bug(s) in the Java
> Native Interface of the JDK-Linux-Port...   
> Does anyone have the same kind of problem with jdk1.1.6v2 and JNI Calls
> (calls of C++ Methods from Java) or does anyone have some further
> information or hints for me what to do ?
> 
 
I forgot to mention that i am using the jdk-1.1.6 libc Version
(libc.so.5.4.44) !

Another conspicuous point is that i also get an 
SIGSEGV   11*segmentation violation
stackbase=0x413c5000, stackpointer=0x413c4cbc 
[...]
when i do certain thread synchronisation/processing like 
t1.start(); 
t2.start();  
t1.join();   
t2.destroy(); 

t1 and t2 are two simple Threads: t1 simply calls the sleep()-Method
and t2 simply Pop up an Dialog as long as t1 is sleeping.) 

Any suggestions ?

mfg. 
Steffen Tacke



Re: ORB uder linux?

1998-09-04 Thread Steffen Tacke

On Tue, 5 May 1998, Paul V. Drobnich wrote:

> 
> Anybody knows anything about free CORBA2 ORB uder linux,
> or some idl2java precompiler for linux?
> 
There are several ORBs available for Linux, e.g. OmniBroker and JacORB.
Look under 
http://www.cetus-links.org/
to get more information and links.

--
mfg. 
Steffen Tacke

*
** | *** Wilhelm-Schickardt-Insitut fuer Informatik  Tuebingen, Sand 13 ** **
** | ***email [EMAIL PROTECTED]** **
** | ***  [EMAIL PROTECTED] ** **
** | ***Member #402 of TeamOS/2 Germany ** **
** | *** HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke ** **
** | ***   ...  ** **
** | ***`:::'  ...  ..  ** **
** | *** :::  *  `::.::'** **
** | *** ::: .::  .:.::.  .:: .::  `::. :'  ** **
** | *** :::  ::   ::  ::  ::  :::::.   ** **
** | *** ::: .::. .::  ::.  `. .:'  ::. ** **
** | ***   ..:::.::'   ..   ** **
*




New AWT bug

1998-10-10 Thread Steffen Tacke

Hi ..

I think I recently found a new AWT bug: If I want to include a
component containing an image (realised as a seperate class that displays
an image in a component) and additionally if I want to scale this image
according to the size of the frame that displays the component, the image
disappears if I scale it to big. Under Solaris or Windows this seems to be
no problem. 


--
mfg. 
Steffen Tacke

**
** | EMail[EMAIL PROTECTED]  | **
** |  [EMAIL PROTECTED]   | **
** | Mobil0171-1214763| **
** |  | **
** |  HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke  | **
**




TextArea bug ?

1998-06-17 Thread Steffen Tacke

Hi !

I'm not sure but i think there's a bug in the TextArea Class provided with
the Linux JDK 1.1.6v1 (also in 1.1.5vX).
If i put a simple TextArea in a Dialog Window an fill it with some Text
with the append() (or the old appendText()) -Method I always get a
Segmentation Violation when i try to dispose the Dialog:
SIGSEGV   11*  segmentation violation
(+ complete thread dump and core file)
Any ideas ?

(running JDK on Suse Linux 5.1)
--
mfg. 
    Steffen Tacke

*
** | *** Wilhelm-Schickardt-Insitut fuer Informatik  Tuebingen, Sand 13 ** **
** | ***email [EMAIL PROTECTED]** **
** | ***  [EMAIL PROTECTED] ** **
** | ***Member #402 of TeamOS/2 Germany ** **
** | *** HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke ** **
** | ***   ...  ** **
** | ***`:::'  ...  ..  ** **
** | *** :::  *  `::.::'** **
** | *** ::: .::  .:.::.  .:: .::  `::. :'  ** **
** | *** :::  ::   ::  ::  ::  :::::.   ** **
** | *** ::: .::. .::  ::.  `. .:'  ::. ** **
** | ***   ..:::.::'   ..   ** **
*





Re: Image scaling

1998-10-19 Thread Steffen Tacke


Hi Paul and all the others on the list,

Well, some weeks ago i wrote a short report to this list, describing almost
the same problem that you described. I designed a class, that dynamically
scales an image to the actual frame size.
Under Solaris and Windows this is absolutly no problem, even when i scale
it very big. 
Under Linux (actual libc, jdk1.1.6v5 for libc) i can only resize the frame
to a certain size (about 900x600). If i want to scale it bigger suddenly
the image won't be repainted and scaled any more 

Well i'm seeking for a solution, too ... if anyone could help us ..

--
On Mon, 19 Oct 1998, Paul Reavis wrote:
> Once upon a time, I was able to arbitrarily scale my Images when I
> painted them with Graphics.drawImage(image, x, y, width, height,
> observer). Now I'm finding that isn't so. 
> 
> The little snippet below illustrates this. It takes three arguments: an
> image file name, a width and a height. Image not incuded, I'm afraid. I
> recommend the following:
> 
> $ javac ImageScaling.java
> $ file someimage.gif 
> someimage.gif: GIF image data, version 89a, 400 x 400,
> $ java ImageScaling someimage.gif 400 400
> 
> i.e., compile and try it with the normal image size arguments to prove
> it works normally. Then try shrinking it:
> 
> $ java ImageScaling someimage.gif 200 200 
> $ java ImageScaling someimage.gif 100 100
> $ java ImageScaling someimage.gif 50 50
> $ java ImageScaling someimage.gif 25 25
> 
> This should all work; at least it did for me.
> 
> Now try blowing it up:
> 
> $ java ImageScaling someimage.gif 800 800 
> $ java ImageScaling someimage.gif 1600 1600 
> 
> For some reason, this doesn't work in general - the image isn't drawn at
> all. I've had no success even just doubling both width and height.
> Smaller images do seem to take longer to blow up, but I can't get
> 800x800 out of a 100x100 image.
> 
> I've ran back to 1.1.6, but my 1.1.5 and earlier were all libc5 and
> don't work any more. This runs the same on all 1.1.6 as far as I can
> tell.
> 
> So am I insane, or is this some new bug? The feature that depends on
> this was working in our last version of our product; I just rewrote it
> for swing and was reimplementing the feature under swing when I ran into
> this all of a sudden. At first I thought it was Swing-related, but as
> you can see I was able to demonstrate it using only AWT components.
> 
> - - - - - - - - - - - - - ->8 - - - - - - - - - - - - - - - - - 
[CODE deleted] 
> - - - - - - - - - - - - - ->8 - - - - - - - - - - - - - - - - - 

--
mfg. 
Steffen Tacke

**
** | EMail[EMAIL PROTECTED]  | **
** |  [EMAIL PROTECTED]   | **
** | Mobil0171-1214763| **
** |  | **
** |  HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke  | **
**




SIGSEGV 11* segmentation violation

1998-07-15 Thread Steffen Tacke

Hi !

Currently i have to develop an application that is based on a C++ Core.
For testing purpose i just called some C++-Functions that simply do some 
cout stuff from within a selfwritten Java-GUI. The functions are called
succesfully but if i want proceed in the Java-Programm i ALWAYS get an:
SIGSEGV   11*  segmentation violation
stackbase=0x413c5000, stackpointer=0x413c4a28

Full thread dump:
"Thread-5" (TID:0x4065e658, sys_thread_t:0x414fef04, state:MW) prio=5
[...and so on...]

The same kind of error happens also with a different C++ Library
but similar calls (it doesn't matter if the c++ calls are doing some cout
stuff ore anything else).
The C++ Calls are compiled with g++ 2.7.2 with the -shared switch.
The same type of Code (Java and C++) runs without any problems on a Sun
Solaris 2.5.1 System (also with gcc 2.7.2).

So my conclusion is that there is a (are some) serious bug(s) in the Java
Native Interface of the JDK-Linux-Port...   
Does anyone have the same kind of problem with jdk1.1.6v2 and JNI Calls
(calls of C++ Methods from Java) or does anyone have some further
information or hints for me what to do ?

--
mfg.
    Steffen Tacke

*
** | *** Wilhelm-Schickardt-Insitut fuer Informatik ** ** 
** | *** Tuebingen  ** **
** | *** Sand 13** **
** | ***email [EMAIL PROTECTED]** **
** | ***  [EMAIL PROTECTED] ** **
** | ***Member #402 of TeamOS/2 Germany ** **
** | *** HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke ** **
*




kaffe 1.0b1

1998-07-19 Thread Steffen Tacke

Hi !

I'm trying to compile the new Kaffe 1.0 beta1 with SuSe 5.1 but all
i get are some strange error messages : 

gcc  -g -O2  -I. -I. -I./../../config -I../../config -I../../include
-I./../../include -I../../libraries/clib -DTRANSLATOR -I./jit
-DKVER=\"1.00\"  -c -fPIC external.c -o external.o

external.c:57: parse error before `LIBRARYHANDLE'
external.c:57: warning: no semicolon at end of struct or union
external.c:60: parse error before `}'
external.c:60: warning: data definition has no type or storage class
external.c: In function `loadNativeLibrary':
external.c:148: request for member `desc' in something not a structure or
union
external.c:151: request for member `name' in something not a structure or
union
external.c:152: request for member `ref' in something not a structure or
union
external.c:160: request for member `desc' in something not a structure or
union
external.c:162: request for member `desc' in something not a structure or
union
external.c:167: request for member `ref' in something not a structure or
union
external.c:168: request for member `name' in something not a structure or
union
external.c:169: request for member `name' in something not a structure or
union
make[2]: *** [external.o] Error 1
[...]

I looked into the external.c file but everything seems to be correct for
me...

Did anyone encounter the same kind of error or maye anyone got a solution
for me ... ?


--
mfg. 
Steffen Tacke

*
** | *** Wilhelm-Schickardt-Insitut fuer Informatik  Tuebingen, Sand 13 ** **
** | ***email [EMAIL PROTECTED]** **
** | ***  [EMAIL PROTECTED] ** **
** | ***Member #402 of TeamOS/2 Germany ** **
** | *** HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke ** **
*




JNI

1999-06-29 Thread Steffen Tacke

Hi 

first of all, this is not really a Linux-Java question, but i think there
are so many java programmer here that would be a good place to ask
(well and i tried also everything else but nobody could help me so far).

--Simple question first: "Is it possible to use the JNI with AIX JDK 1.1.6
and egcs/gcc C/C++  compiler under the AIX OS 4.x ??? "

--Harder question: "If the answer to the first question is 'yes' then HOW
could it be done ? "

IBM only describes the use of the JNI with its own IBM C-Set C/C++
compiler and that isn't very useful for egcs. (They changed the way to use
JNI compared to the way you can use it under Linux/JDK and Sun/JDK in a
lot of points).


--
mfg. 
Steffen Tacke

**
** | EMail[EMAIL PROTECTED]  | **
** |  [EMAIL PROTECTED]   | **
** | Mobil0171-1214763| **
** |  | **
** |  HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke  | **
**



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]