DEPTREE and IDEPTREE

I do not have DEPTREE and IDEPTREE, from where I can download them

Sami,
These are from 11g documentation:
DEPTREE
http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/statviews_5093.htm
IDEPTREE
http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/statviews_5116.htm#REFRN29084
Schema Object Dependencies
http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/dependencies.htm#CNCPT1860
Hope they help.
Regards,
Naveed.

Similar Messages

  • Difference between Deptree and Ideptree

    Hi Joel,
    First of all Thank You very much for your help.
    1-I would like to know what view will I use to view indirect dependency?
    Deptree or Ideptree?
    2-WHICH PART OF A DB TRIGGER determine the number of times the tigger body executes?
    3- which system privileges must you have to recompile a stored procedure owned by another application developer?
    alter procedure or alter any procedure...
    4- Default is it a true formal parameters?
    5-where is it declared the return variable? headre, declarative section?
    6-Describe the functionality of the CALL statenent?
    7-How the UTLDTREE is used?
    Please help,
    Hilaire

    DEPTREE
    This view, created by utldtree.sql, contains information on the object dependency tree. For user SYS, this view displays shared cursors (and only shared cursors) that depend on the object. For all other users, it displays objects other than shared cursors. Other users can access SYS.DEPTREE for information on shared cursors.
    Column Datatype NULL Description
    NESTED_LEVEL
    NUMBER
    Nesting level in the dependency tree
    TYPE
    VARCHAR2(15)
    Object type
    OWNER
    VARCHAR2(30)
    Object owner
    NAME
    VARCHAR2(1002)
    Object name
    SEQ#
    NUMBER
    Sequence number in the dependency tree. Used for ordering queries.
    See Also: "IDEPTREE"
    Joel P�rez

  • PLSQL Packages - map conenctions using tool?

    Hi,
    I'm a BA attempting to reverse engineer business rules out of one of our applications written in PLSQL.
    The code however is poorly maintained and as such it is difficult to see whats being called from where.
    I am wondering if anybody knows of a tool that can map out whcih packages calls procedures (and what package) in order to allow me some process flow view though the application.
    Any help is greatly appreciated. Many thanks

    Hello
    I had a similar problem about a year ago and Barbara Boehmer provided me with this excellent method. If only I'd known about it 3 months earlier, I could have saved myself a lot of time...although in my case, most of the procedures were not packaged. Hopefully it will be a start though:
    Oracle has a nice utility that does the opposite of what you are asking for, such that if you provide the lowest level table or procedure, it will provide every procedure that calls or uses it and so on up the chain. With a little modification, this utility can be modified to do what you want, such that if you provide the upper level procedure name, it will provide all procedures that it calls and tables that it uses and so on down the line.
    To install the utility, you need to find the utldtree.sql file on your system and start it from SQL*Plus. It should be in the rdbms\admin sub-directory of your Oracle home directory. After you have installed the utility, then you can create the reverse_deptree_fill procedure that I have provided below, which is a modification of the deptree_fill procedure of the utility. Then you can execute that procedure and dispaly the results from the deptree view or in hierarchical format from the ideptree view.
    Please see the example below, in which I have first created two procedures for testing and demonstration, then created the reverse_deptree_fill procedure, then executed it, then displayed the results in two different formats by selecting from the deptree and ideptree views.
    scott@ORA92> -- sample procedures for testing and demonstration:
    scott@ORA92> create or replace procedure test_proc1
      2    (p_deptno in emp.deptno%type)
      3  as
      4    v_count number;
      5  begin
      6    select count(*) into v_count from emp where deptno = p_deptno;
      7  end test_proc1;
      8  /
    Procedure created.
    scott@ORA92> create or replace procedure test_proc2
      2    (p_dname in dept.dname%type)
      3  as
      4    v_deptno number;
      5  begin
      6    select deptno into v_deptno from dept where dname = upper (p_dname);
      7    test_proc1 (v_deptno);
      8  end test_proc2;
      9  /
    Procedure created.
    scott@ORA92> -- install the utility,
    scott@ORA92> -- substituting your oraclehome for d:\oracle\ora92:
    scott@ORA92> --start d:\oracle\ora92\rdbms\admin\utldtree.sql
    scott@ORA92> -- create reverse_deptree_fill procedure:
    create or replace procedure reverse_deptree_fill (type char, schema char, name char) is
         obj_id number;
    begin
         delete from deptree_temptab;
         commit;
         select object_id into obj_id from all_objects
         where owner         = upper(reverse_deptree_fill.schema)
         and   object_name  = upper(reverse_deptree_fill.name)
         and   object_type  = upper(reverse_deptree_fill.type);
         insert into deptree_temptab
         values(obj_id, 0, 0, 0);
         insert into deptree_temptab
         select referenced_object_id, object_id,
         level, deptree_seq.nextval
         from public_dependency
         connect by prior referenced_object_id = object_id
         start with object_id = reverse_deptree_fill.obj_id;
    exception
         when no_data_found then
              raise_application_error(-20000, 'ORU-10013: ' ||
                   type || ' ' || schema || '.' || name || ' was not found.');
    end;
    Procedure created.
    scott@ORA92> -- collect the information,
    scott@ORA92> -- substituting your schema for scott and your procedure name for test_proc2:
    scott@ORA92> execute reverse_deptree_fill ('procedure', 'scott', 'test_proc2')
    PL/SQL procedure successfully completed.
    scott@ORA92> -- display the information:
    scott@ORA92> set linesize 120
    scott@ORA92> select * from deptree where schema <> 'SYS' order by seq#
      2  /
    NESTED_LEVEL TYPE               SCHEMA                         NAME                                 SEQ#
               0 PROCEDURE          SCOTT                          TEST_PROC2                              0
               1 TABLE              SCOTT                          DEPT                                   43
               1 PROCEDURE          SCOTT                          TEST_PROC1                             45
               2 TABLE              SCOTT                          EMP                                    46
    4 rows selected.
    scott@ORA92> -- display the information in a hierarchical tree:
    scott@ORA92> select * from ideptree where  dependencies not like '% SYS.%'
      2  /
    DEPENDENCIES
    PROCEDURE SCOTT.TEST_PROC2
       TABLE SCOTT.DEPT
       PROCEDURE SCOTT.TEST_PROC1
          TABLE SCOTT.EMP
    4 rows selected.

  • "Deep" list of dependacies

    Hello
    I'm not too hot with hierarchical queries(and probably spelling too), but I need to get a list of all tables depended on by a given stored procedure, and all of it's subordinate stored procedures. I have an SP which calls 6 other SPs, each of which makes multiple calls, and I need to get a list of all tables referred to by all procs in the call chain. I don't care which proc refers to which table, just that they are all listed.
    Any ideas?
    Cheers

    Oracle has a nice utility that does the opposite of what you are asking for, such that if you provide the lowest level table or procedure, it will provide every procedure that calls or uses it and so on up the chain. With a little modification, this utility can be modified to do what you want, such that if you provide the upper level procedure name, it will provide all procedures that it calls and tables that it uses and so on down the line.
    To install the utility, you need to find the utldtree.sql file on your system and start it from SQL*Plus. It should be in the rdbms\admin sub-directory of your Oracle home directory. After you have installed the utility, then you can create the reverse_deptree_fill procedure that I have provided below, which is a modification of the deptree_fill procedure of the utility. Then you can execute that procedure and dispaly the results from the deptree view or in hierarchical format from the ideptree view.
    Please see the example below, in which I have first created two procedures for testing and demonstration, then created the reverse_deptree_fill procedure, then executed it, then displayed the results in two different formats by selecting from the deptree and ideptree views.
    scott@ORA92> -- sample procedures for testing and demonstration:
    scott@ORA92> create or replace procedure test_proc1
      2    (p_deptno in emp.deptno%type)
      3  as
      4    v_count number;
      5  begin
      6    select count(*) into v_count from emp where deptno = p_deptno;
      7  end test_proc1;
      8  /
    Procedure created.
    scott@ORA92> create or replace procedure test_proc2
      2    (p_dname in dept.dname%type)
      3  as
      4    v_deptno number;
      5  begin
      6    select deptno into v_deptno from dept where dname = upper (p_dname);
      7    test_proc1 (v_deptno);
      8  end test_proc2;
      9  /
    Procedure created.
    scott@ORA92> -- install the utility,
    scott@ORA92> -- substituting your oraclehome for d:\oracle\ora92:
    scott@ORA92> --start d:\oracle\ora92\rdbms\admin\utldtree.sql
    scott@ORA92> -- create reverse_deptree_fill procedure:
    scott@ORA92> create or replace procedure reverse_deptree_fill (type char, schema char, name char) is
      2    obj_id number;
      3  begin
      4    delete from deptree_temptab;
      5    commit;
      6    select object_id into obj_id from all_objects
      7        where owner         = upper(reverse_deptree_fill.schema)
      8        and   object_name  = upper(reverse_deptree_fill.name)
      9        and   object_type  = upper(reverse_deptree_fill.type);
    10    insert into deptree_temptab
    11        values(obj_id, 0, 0, 0);
    12    insert into deptree_temptab
    13        select referenced_object_id, object_id,
    14            level, deptree_seq.nextval
    15          from public_dependency
    16          connect by prior referenced_object_id = object_id
    17          start with object_id = reverse_deptree_fill.obj_id;
    18  exception
    19    when no_data_found then
    20        raise_application_error(-20000, 'ORU-10013: ' ||
    21          type || ' ' || schema || '.' || name || ' was not found.');
    22  end;
    23  /
    Procedure created.
    scott@ORA92> -- collect the information,
    scott@ORA92> -- substituting your schema for scott and your procedure name for test_proc2:
    scott@ORA92> execute reverse_deptree_fill ('procedure', 'scott', 'test_proc2')
    PL/SQL procedure successfully completed.
    scott@ORA92> -- display the information:
    scott@ORA92> set linesize 120
    scott@ORA92> select * from deptree where schema <> 'SYS' order by seq#
      2  /
    NESTED_LEVEL TYPE               SCHEMA                         NAME                                 SEQ#
               0 PROCEDURE          SCOTT                          TEST_PROC2                              0
               1 TABLE              SCOTT                          DEPT                                   43
               1 PROCEDURE          SCOTT                          TEST_PROC1                             45
               2 TABLE              SCOTT                          EMP                                    46
    4 rows selected.
    scott@ORA92> -- display the information in a hierarchical tree:
    scott@ORA92> select * from ideptree where  dependencies not like '% SYS.%'
      2  /
    DEPENDENCIES
    PROCEDURE SCOTT.TEST_PROC2
       TABLE SCOTT.DEPT
       PROCEDURE SCOTT.TEST_PROC1
          TABLE SCOTT.EMP
    4 rows selected.

  • Default is it a true formal parameters?

    Hi All
    Does any onoe know
    what 's the difference between Deptree or Ideptree?
    and which part of a databse tigger determine the number of times the tigger body executes?
    and Default is it a true formal parameters?
    please help,
    Hilaire

    DEPTREE
    This view, created by utldtree.sql, contains information on the object dependency tree. For user SYS, this view displays shared cursors (and only shared cursors) that depend on the object. For all other users, it displays objects other than shared cursors. Other users can access SYS.DEPTREE for information on shared cursors.
    Column Datatype NULL Description
    NESTED_LEVEL
    NUMBER
    Nesting level in the dependency tree
    TYPE
    VARCHAR2(15)
    Object type
    OWNER
    VARCHAR2(30)
    Object owner
    NAME
    VARCHAR2(1002)
    Object name
    SEQ#
    NUMBER
    Sequence number in the dependency tree. Used for ordering queries.
    See Also: "IDEPTREE"
    Joel P�rez

  • DEPENDENCIES

    Can any body help me to find out the exact ans :
    Which two dictionary views track dependencies?(choose two)
    a.USER_SOURCE
    b.UTL_DEPTREE
    c.USER_OBJECTS
    d.DEPTREE_TEMPTAB
    e.USER_DEPENDENCIES
    f. DBA_DEPENDENT_OBJECTS

    As per as I know DEPTREE_TEMPTAB is another one apart from USER_DEPENDENCIES. But DEPTREE_TEMPTAB does not comes in data dictionary by default. In order to get this table you need to execute UTLDTREE.sql which will be there in (C:\oracle\product\10.1.0\Db_1\RDBMS\ADMIN ...please check the path )...
    Once you execute the .sql file you will get DEPTREE_TEMPTAB table, DEPTREE view, IDEPTREE view, DEPTREE_SEQ sequence, DEPTREE_FILL proc.
    Please go through the remarks given the above mentioned .sql file for clear understanding .
    Regards
    JC

  • Proble during retrive info through deptree/ideptree

    when i try to display dependent object through deptree/ideptree view it is erroring by this" table or view does not exist"

    Hi !
    On your ORACLE_HOME\RDBMS\ADMIN directory you hav an sql script utldtree.sql.
    Inside the script there aare some hints-help how to use the script. By runing it you'll get necessary objects created and after that
    you sholud consider for granting object privileges to newly created objects.
    T

  • Find all Package and their related Procedure Names using a specifc Table

    I have 25 Packages
    Each Package holds 30-35 Procedures
    I need to find out all Packages and Procedures
    Each Procedure handles 5 - 20 Tables as Per The Need of Business Rule.
    I need All Package and Related Procedure Names Where a Specific Table Name Appears(DBA_SOURCE doesn't serve purpose.)
    Early Reply Appreciated.
    Thanks and Regards,

    I tried the solution provided to me, but unfortunately the issue remains the same.
    I was Advised to Execute the SQL utldtree.Sql, and then Execute deptree_fill.
    The output is given by a Table DEPTREE (Columns are: .'NESTED_LEVEL', 'TYPE', 'SCHEMA', 'NAME' and 'SEQ#')
    The output I am getting From the Table DEPTREE is as follows -
    Column TYPE value is PACKAGE; Column NAME Value is ACTUAL PACKAGE NAME
    Column TYPE value is PACKAGE BODY; Column NAME Value is ACTUAL PACKAGE NAME
    This repeats till the count the TABLE Name is found in the same PACKAGE
    Desired Output should be -
    Column TYPE value PACKAGE; Column NAME Value ACTUAL PACKAGE NAME
    Column TYPE value PACKAGE BODY; Column NAME Value ACTUAL PACKAGE BODY NAME
    This should repeat till the count the TABLE Name appears in different PACKAGE BODY of the same PACKAGE
    Warm Regards,

  • A problem with Threads and loops.

    Hi, I have some code that needs to be constantly running, like while(true)
          //code here
    }However, the code just checks to see if the user has input anything (and then if the user has, it goes to do some other stuff) so I don't need it constantly running and hogging up 98% of the CPU. So I made my class (which has the method that needs to be looped, call it ClassA) implement Runnable. Then I just added the method which needed to be looped into the public void run()
    I have another class which creates an instance of the above class (call it ClassB), and the main(String[] args) is in there.
    public static void main(String[] args)
              ClassA test = new ClassA();
              Thread thread = new Thread(test.getInstanceOfClassA());
              thread.start();
              while(true)
                           //I do not know what to put here
                   try
                        thread.sleep(100);
                   catch(InterruptedException iex)
         }However, the thread only calls run() once,(duh...) but I can't think of away to get it to run - sleep - run -sleep forever. Can someone help me?

    Hi, I have some code that needs to be constantly
    running, like while(true)
    //code here
    }However, the code just checks to see if the user has
    input anything (and then if the user has, it goes to
    do some other stuff) so I don't need it constantly
    running and hogging up 98% of the CPU. Where does the user input come from. Are you reading from an InputStream? If so, then your loop will be blocked anyway when reading from the InputStream until data is available. During that time, the loop will not consume processor cycles.
    public static void main(String[] args)
              ClassA test = new ClassA();
    Thread thread = new Thread(test.getInstanceOfClassA());I have never seen this idiom. If ClassA instanceof Runnable, you simply write new Thread(test).
              thread.start();
              while(true)
    //I do not know what to put
    do not know what to put here
                   try
                        thread.sleep(100);
                   catch(InterruptedException iex)
         }However, the thread only calls run() once,(duh...)Yeah, why would you want to call it more than once given that you have an infinite loop in ClassA.run()?
    Harald.
    Java Text Crunching: http://www.ebi.ac.uk/Rebholz-srv/whatizit/software

  • A problem with Threads and MMapi

    I am tring to execute a class based on Game canvas.
    The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
    The MIDI tone "Stammers".
    How to over come the problem?
    Thanks in advance
    Kobi
    See Code example below:
    import java.io.IOException;
    import java.io.InputStream;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    public class MainScreenCanvas extends GameCanvas implements Runnable {
         private MainMIDlet parent;
         private boolean mTrucking = false;
         Image imgBackgound = null;
         int imgBackgoundX = 0, imgBackgoundY = 0;
         Player player;
         public MainScreenCanvas(MainMIDlet parent)
              super(true);
              this.parent = parent;
              try
                   imgBackgound = Image.createImage("/images/area03_bkg0.png");
                   imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
                   imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
              catch(Exception e)
                   System.out.println(e.getMessage());
          * starts thread
         public void start()
              mTrucking = true;
              Thread t = new Thread(this);
              t.start();
          * stops thread
         public void stop()
              mTrucking = false;
         public void play()
              try
                   InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
                   player = Manager.createPlayer(is, "audio/midi");
                   player.setLoopCount(-1);
                   player.prefetch();
                   player.start();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void run()
              Graphics g = getGraphics();
              play();
              while (true)
                   tick();
                   input();
                   render(g);
          * responsible for object movements
         private void tick()
          * response to key input
         private void input()
              int keyStates = getKeyStates();
              if ((keyStates & LEFT_PRESSED) != 0)
                   imgBackgoundX++;
                   if (imgBackgoundX > 0)
                        imgBackgoundX = 0;
              if ((keyStates & RIGHT_PRESSED) != 0)
                   imgBackgoundX--;
                   if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
                        imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
          * Responsible for the drawing
          * @param g
         private void render(Graphics g)
              g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
              this.flushGraphics();
    }

    You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
    However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
    You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
    Regds,
    SD
    N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
    Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with Threads and "plase wait..."-Window

    Hi everyone,
    I have a problem that I'm not able to solve in any way... I have a time-consuming task (a file decryption) which I execute in a separate thread; I've used the SwingWorker class, like suggested by sun-tutorial, and it works right. The problem is that I have to wait that the decryption have finished before continuing with program-execution. Therefore I would like to display a "please wait"-window while the task runs. I've tryed all the possible ways I know but the problem is always the same: the waitWindow is displayed empty, the bounds are painted but the contents no; it's only painted when the decrypt-task has finished. Please help me, I have no more resources....
    decrypt-file code:
    public class DecryptFile {
      private String cryptedFileNameAndPath;
      private ByteArrayInputStream resultStream = null;
      // need for progress
      private int lengthOfTask;
      private int current = -1;
      private String statMessage;
      public DecryptFile(String encZipFileNameAndPath) {
        cryptedFileNameAndPath = encZipFileNameAndPath;
        //Compute length of task...
        // 0 for indeterminate
        lengthOfTask = 0;
      public ByteArrayInputStream getDecryptedInputStream() {
        return this.resultStream;
       * Called from ProgressBarDemo to start the task.
      public void go() {
        current = -1;
        final SwingWorker worker = new SwingWorker() {
          public Object construct() {
            return new ActualTask();
        worker.start();
       * Called from ProgressBarDemo to find out how much work needs
       * to be done.
      public int getLengthOfTask() {
        return lengthOfTask;
       * Called from ProgressBarDemo to find out how much has been done.
      public int getCurrent() {
        return current;
      public void stop() {
        current = lengthOfTask;
       * Called from ProgressBarDemo to find out if the task has completed.
      public boolean done() {
        if (current >= lengthOfTask)
          return true;
        else
          return false;
      public String getMessage() {
        return statMessage;
       * The actual long running task.  This runs in a SwingWorker thread.
      class ActualTask {
        ActualTask () {
          current = -1;
          statMessage = "";
          resultStream = AIUtil.getInputStreamFromEncZip(cryptedFileNameAndPath); //here the decryption happens
          current = 0;
          statMessage = "";
      }The code that calls decryption and displays waitWindow
          final WaitSplash wS = new WaitSplash("Please wait...");
          final DecryptFile cryptedTemplate = new DecryptFile (this.templateFile);
          cryptedTemplate.go();
          while (! cryptedTemplate.done()) {
            try {
              wait();
            } catch (Exception e) { }
          this.templateInputStream = cryptedTemplate.getDecryptedInputStream();
          wS.close();Thanks, thanks, thanks in advance!
    Edoardo

    Maybe you can try setting the priority of the long-running thread to be lower? so that the UI will be more responsive...

  • Problem with threads and graphics

    I have a thread that chooses paths for a Travelling salesman problem, it then calls a TSPdraw class and passes it the path, which the class then draws. the problem is when i have two threads it creates two windows but only draws a path in one of them. any ideas where i`m going wrong

    Are you using swing components? Swing isn't threadsafe. If you have multiple threads that want to update your UI you need to use the SwingUtilities.invokeLater(...)or invokeAndWait(...). There is a page in the swing tutorial about this at: http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html

  • Problem with threads and ProgressMonitor

    Dear Friends:
    I have a little problem with a thread and a ProgressMonitor. I have a long time process that runs in a thread (the thread is in an separate class). The thread has a ProgressMonitor that works fine and shows the tasks progress.
    But I need deactivate the main class(the main class is the user interface) until the thread ends.
    I use something like this:
    LongTask myTask=new LongTask();
    myTask.start();
    myTask.join();
    Now, the main class waits for the task to end, but the progress monitor don`t works fine: it shows only the dialog but not the progress bar.
    What's wrong?

    Is the dialog a modal dialog? This can block other UI updates.
    In general, you should make sure that it isn't modal, and that your workThread has a fairly low priority so that the UI can do its updating

  • Problem with threads and/or memory

    I'm developing an application where there are 3 threads. One of them sends a request to the other, and if the 2nd can't answer it, it sends it to the 3rd (similar to CPU -> CACHE -> MEMORY). When i run the program with 1000-10.000 requests, no problem occurs. When i run it with 300.000-1.000.000 requests, it sometimes hangs. Is this a problem with the garbage collector, or should it be related to the threads mecanism.
    (note: eache thread is in execution using a finite state machine)

    i had been running the program inside Netbeans.
    Running the jar using the command line outside
    Netbeans i have no more problems... Does Netbeans use
    it's own JVM?Depends how you set it up, but look under the options. There are settings for the compiler and jvm that it uses.

Maybe you are looking for

  • Blue Screen of Death \ No screen or response after waking up from sleep\hibe​rnation

    Hey, i have Yoga 2 Pro, Windows 8.1 64x, All my drivers and BIOS are up to date (Latest version from lenovo's Y2P support drivers downloads or even newer) i have an active anti-virus (avast free) and i have these issues since day 1 with this PC. The

  • Java API - Editor class for an XML schema

    Hi, i am very interesting in Java API. I would like to make an editor class for an XML schema. (I will create XML files in the current project based on this XML schema.) What step's are require for this editor class? Regards Gabor

  • Workflow stops just after event is created

    Hi, My workflow terminates just at the start (in process) in the test system.    The event is activated and workflow log shows a log of  executed action (Sub)workflow created                    16.04.2009 17:16:44  Workflow started                   

  • Clean Install and iChat and Safari

    My computer has reached a point where it takes 45 minutes - 3 hours to restart. Everything takes 10x longer than it should. I have tried everything i can think of (regular reinstall, limiting the number of applications running, removing peripherals e

  • Potential fix for slow/unreliable network on Macbook Air running Mavericks

    Hi all, I work in IT support at University of Manchester, UK and have found a fix for for network issues we were experiencing with Macbook Air laptops running Mavericks. These Airs were having issues connecting to our WiFi and experiencing slow downl