A few days back I had posted a question that I was getting a segementation 
fault using tclblend1.1.1. I am unable to send a reply to that message due 
to technical problems and so am sending a new note.

To reiterate the problem, I am calling a java method from a tcl shell and I 
am getting a segmentation fault somewhere in the method.


I do the following steps to call the java method of an application.

set filename /home/andante/ayyagari/ptfconfig
set prop [java::new java.util.Properties]
set file [java::new java.io.FileInputStream $filename]
if {[catch {$prop -noconvert load $file}]} {
        java::throw [java::new java.util.IOException "configfile not 
present"]
   }

The properties object works fine. because I am able to get name value pairs 
when I use the getProperty mtd of the java.util.Properties.

Then I create an object of one java application
set resManager [java::new phonetest.ResManager]


Here's where I get the segmentation fault.
$resManager -noconvert createPTFObjects $prop


The program is crashing inside createPTFObjects while calling the 
constructor for the Socket class in java.net inside createPTFObjects. The 
contructor of Socket is of format

Socket(String, int)

createPTFObjects works fine when called inside a java application.

I will also try using tclblend1.2.3 and see what happens. If it already a 
known problem that has been fixed, please let me know.

Thankyou so much for the help
Suvarna


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to