CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

Float error stop on it

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2009, 06:11
Default Float error stop on it
  #1
bastien
Guest
 
Posts: n/a
Hi,

I am using starccm++ for simulating some stuff. I made a jave program, but unfortunatly when something go bad like for instance float error it open a windows and interface is stuck.

How can I test for error and break in cas of error?

Regards

Bastien
  Reply With Quote

Old   January 27, 2009, 06:15
Default Re: Float error stop on it
  #2
Ola
Guest
 
Posts: n/a
Hi Bastien!

You could debug your code using a try, catch and finally block. Put your snippet into a try{} block, if the code throws an exception you can handle it using a catch block. A finally{} block is always executed no matter if the code inside the try{} block throws an exception or not, in here you can do essential clean up to allow the code to continue.

Hope this helps, Ola

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: cx-set-real-entry: wta[2](float) mansih rane Main CFD Forum 2 January 6, 2021 08:23
Will it float? Dave Letterman Siemens 4 December 8, 2006 23:38
[OpenFOAM] Float OR Double specified tj22 ParaView 2 July 11, 2006 14:39
float point error soundar FLUENT 0 December 17, 2004 04:23
Error Stop in Earth Amber Phoenics 0 January 17, 2001 21:53


All times are GMT -4. The time now is 04:14.