How to destroy object after use.

Hello friends,
i have used one class which is making telnet connection to some remote system and running commands over remote system.
after finishing everything successful, that telnet connection is not closed.
how can i close the telnet connection explicitly. i think if we forcefully destroy the class object, then the telnet connection will be closed automatically.
Is there any method to destroy the object explicitly with out using finalize() method.
rgds
tskarthikeyan

masijade. wrote:
kajbj wrote:
masijade. wrote:
TSKarthikeyan wrote:
Is there any method to destroy the object explicitly with out using finalize() method.Stand in front of your computer and watch the program execute. As soon as you get to the point where you want to destroy an object ... pull out your sledgehammer and swing away.Will that work if it's executing on a remote server?I don't know, but I'd like to give it a try. ;-)Stop stop stop stop it please
LMAO... Yep, there it goes... Don't look at me like that ya' smelly hairy little... Now i've compeltey lost it.

Similar Messages

  • Am I need to Eliminate the object after used??

    Am I need to Eliminate the object after used to release the resource ? Which like C code: free(Dynamic variable). And why and how they works in java??
    Thank alot !!!

    You may want to read about garbage collection in java. Basic intro in [url http://java.sun.com/docs/books/tutorial/java/data/garbagecollection.html]tutorial, after that search around the site for garbage collection and related topics
    Mike

  • HT3231 how to find file after using migration

    how to find files after migration has finished

    If you don't have any file you need in your old account, open System Preferences > Users and Groups and delete the old user. If not, I recommend you to migrate your files of your old account to the new one using Shared folder or an USB drive

  • How to stop Microphone after use ?

    Hello,
    I'm using the flash.Microphone class and when I call Microphone.get(), the microphone starts working.
    But I would like to disable it after use. As on some computers, you hear yourself.
    How to do something like Microphone.release() ?
    Any idea ?!
    Thanks.
    Thomas Bullier
    Le Hub Agence

    SoundTransform
    Volume
    And it's fixed !

  • How to obtain object number using cost center??

    hI.
    i need to obtain all the cost elemnts of a particular cost center..
    cost elemnt can b fetched from COSP using OBJNR..
    How do i obtain OBJNR using KOKRS,KOSTL????

    Hi
    From the table
    CSSK
    take the related Cost elements for a cost center.
    Concatenate the cost element with KS and other Orgn unit
    and pass to the Costing tables
    see an entry in those tables you will know what are the fields in OBJNR that are concatenated
    Reward points if useful
    Regards
    Anji

  • Destroy/dispose  an object after using it

    This might related to my java size limitation problem. I do getParemeter() for over 500 fields and need to create this many times of instance of an object to call the same method.
    newinst=new myclassconstructor();
    newinst.callmethod();
    The application is only working 2/3 way through. Anyone can tell me how to fix the problem? Do I need to dispose the object somehow? J

    This is the HTML form with 500 input elements that you have been asking various questions about all day? A word of advice: all the questions you have been asking are off-track. You are trying to solve secondary problems that result from your primary problem, which is this: you have an HTML form with 500 input elements. People who have to input data into that form are going to hate you and curse your ancestors. Redesign it so that you present the user with several smaller forms, one form at a time. Your users will thank you and you won't have to waste time the way you are doing now.

  • How to read data after using the PRINT function in visual basic

    I know the benchlink can capture the spectrum analyzer screen for me, but I want to integrate it into my application. I use NI spy to detect the communications from the benchlink and put it into my application. After sending the "PRINT 0" command, my "ilrd SpectrumAnalyzer, temp, 500" command doesn't work, giving me EARG error. Does anyone knows if it is because I can not define the temp to be string or some other problem?
    b.t.w, the communications I get from NI Spy actually read some unknown characters from the instrument, what kind of data it is? Any idea how to use it?
    thanks.

    Hello elm,
    This is completely dependent on your instrument; if you are getting the data then you are halfway there. Look in your instrument's programmer's reference manual to see if they mention how the picture is encoded in bytes. There are so many different ways to encode a picture in binary that speculating and guessing would probably never yield the true result. If there is no mention in the manual, contact the instrument manufacturer.
    Sorry I could not be of more help.
    Scott B.
    Applications Engineer
    National Instruments

  • How to Deselect Tool after use ?

    Newbie Question - Adobe Acrobat 8.1
    How do I "deselect" or turn off a tool after I have finished using it, and get the document back to original state as when first opened.
    Example
    When I select :
    Tools-> Advanced Editing-> Link Tool
    a checkmark appears next to the link tool, and I can review and edit, or create links.
    Once done, How do I turn this off,?? to then see how the newly created or edited link works....without having to close the entire pdf document and then reopen it.
    Thanks for any advice...I have done much searching looking for an answer to this with no success..

    Click the hand tool.
    Aandi Inston

  • [CS 6] How to update object after resizing page?

    I need to resize a page (vertically) until a text fits. I thought I use the autosize property of the text frame.
    So I set
    autoSizingType=AutoSizingTypeEnum.HEIGHT_ONLY
    and then I resize the page by factor 1.1 until there is no more overset.
    The problem is that the text frame jumps to the size of the page (actually the pasteboard) but then the height does not grow when I resize the page. (The same is true in the GUI).
    It seems to be an updating problem. I solved it by inserting a character in my text frame and then deleting it in every loop. But this seems rather silly. How can I get my frame to autoresize after size of page changes?
    Thank you,
    Ralf

    @Ralf – does a
    myTextFrame.recompose();
    help?
    Uwe

  • How to lock object after merging transport list?

    Hello,
    I am facing following Problem:
    We have one big transport request with approx. 15 tasks where each developer wrote his developments on it.
    Now we want to structure this bis transport.
    Therefore I thought to create a new transport request and merge (via se03) the old tasks (from the big transport request) on this new transport request.
    Then I have in this new transport request only one entry e.g. for my InfoCube (in my old (big) transport I had in diffenrent tasks entries for this cube.
    Do you agree with my step-by-step solution?
    As a further question:
    Objects are locked in in my old transport request. How can I unlock this objects and lock the objects in my new transport request?
    If s.th. is unclear pls. give information...I will provide you information.

    Hi ,
       Goto TCode: SE03 and choose Unlock Objects (Expert Tool)  to unlock objects from any request/task.
       Then assign or move to new request. To lock: right click on request/task from context menu you will get option to lock or double click on request/task there you can see option for locking(lock button).
    Hope it Helps
    Srini

  • How to destroy object.

    Hi All,
         I used Flex 3.5. I have 300 textinput controls in Vbox. Sometimes i want to remove textinputs and want to recreate it again. I used Vbox's removeAllChildren property to remove childrens.
    They are removed from the container. But they still in memory. I want to them remove totally from my app. I should not access them using their id as well.
    Thanks,
    Sathyamoorthi.

    Thanks for you interest...
    sorry..I really don't know what is profiler...
    This is my scenario..
    I have one custom control (named as CUSTOM)  extends canvas. in that i have textinput and combobox. it has property ID.
    CUSTOM listens parentApplication for OPEN event. if OPEN event triggered from parent. CUSTOM checks it's property ID. if it's property ID is matched it opens it's combobox.
    i added 300 CUSTOMs in VBox. Each has separate ID. in certain case i remove this 300 CUSTOM from my VBOX using removeAllChildren() function.
    After that i dispatched OPEN event. I thought 300 CUSTOMs are removed. But from somewhere CUSTOM catched that event and opens it combobox.
    so it is still in UI. i never want that 300 CUSTOM in my app

  • How to find objects ( tables) used in SP

    Is there any query with which I can find all the tables used ( to perform Select Insert Update Delete operation) in a procedure in oracle 10g.
    I want to take back up of all the tables used in a particular. but it is becoming difficult to find by looking at line by line as the sp is of 3K + lines.

    With USER_DEPENDENCIES view :
    SELECT referenced_owner, referenced_name
    FROM user_dependencies
    WHERE type = 'PROCEDURE'
    AND name = 'YOUR_SP_NAME'
    AND referenced_type = 'TABLE'
    ;

  • How to enumerate object properties using AS3   flascc bridge classes?

    For sample translate this code:
    var params:Object = ...
    for (var i: String in params) {
      var key:String = i;
    var value:String = params[i];

    For sample translate this code:
    var params:Object = ...
    for (var i: String in params) {
      var key:String = i;
    var value:String = params[i];

  • How to find object dependencies using the DBA_DEPENDENCIES

    Hi,
    Could some one please help me in finding out the object dependencies among objects?
    I was trying to find out the all levels of dependencies for a given object in  a given schema, but this following query is not working for packages type.
    I want to find out all LEVELS of object involved in the creation of a package.
    Example:
    SELECT DISTINCT owner,name,referenced_owner,referenced_name,referenced_type, LEVEL Le1
    FROM dba_dependencies
    where owner =user
    START WITH NAME = 'object name'
    CONNECT BY NOCYCLE PRIOR referenced_name    = NAME
    --AND PRIOR REFERENCED_OWNER = OWNER
    --AND REFERENCED_TYPE = 'PACKAGE'
    ORDER SIBLINGS BY name
    Please help.

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    WITH v AS (
        SELECT  line
               ,col
               ,name
               ,object_type
               ,object_name
               ,type
               ,usage
               ,usage_id
               ,usage_context_id
        FROM    user_identifiers
        WHERE   object_name = 'XML_SPREADSHEET'
        AND     object_type = 'PACKAGE'
    SELECT  LEVEL,LPAD(' ', 2*(LEVEL-1)) ||NAME
           ,object_type
           ,type
           ,usage
           ,line
    FROM v
    START WITH name = 'T_REC_CAPTION'
    CONNECT BY PRIOR usage_id = usage_context_id
    ORDER SIBLINGS BY line, col
         LEVEL LPAD('',2*(LEVEL-1))||NAME   OBJECT_TYPE   TYPE               USAGE             LINE
             1 T_REC_CAPTION                PACKAGE       RECORD             DECLARATION        317
             2   TITLE                      PACKAGE       VARIABLE           DECLARATION        318
             3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          318
             2   TOPTITLE                   PACKAGE       VARIABLE           DECLARATION        319
             3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          319
             2   SPAN                       PACKAGE       VARIABLE           DECLARATION        320
             3     PLS_INTEGER              PACKAGE       SUBTYPE            REFERENCE          320
             2   COMMENT                    PACKAGE       VARIABLE           DECLARATION        321
             3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          321
             2   REPEATTITLE                PACKAGE       VARIABLE           DECLARATION        322
             3     BOOLEAN                  PACKAGE       BOOLEAN DATATYPE   REFERENCE          322
             1 T_REC_CAPTION                PACKAGE       RECORD             REFERENCE          324
             2   BINARY_INTEGER             PACKAGE       SUBTYPE            REFERENCE          325
    13 Zeilen gewählt
    What do you mean with They are giving only one level depth of dependencies?

  • How to close the object after generation Excel file

    I have generated excel file. I save that file using "Save" button on dialog-box. After i go to menu navigation at that time i got javascript error.
    please give me the solution how to close objects after generating excel file.

    Hi,
    Pls don't forget to reward points and close the question if you find the answers useful.
    Eddy

Maybe you are looking for