久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='22wth'></small><noframes id='22wth'>

  • <legend id='22wth'><style id='22wth'><dir id='22wth'><q id='22wth'></q></dir></style></legend>
    <i id='22wth'><tr id='22wth'><dt id='22wth'><q id='22wth'><span id='22wth'><b id='22wth'><form id='22wth'><ins id='22wth'></ins><ul id='22wth'></ul><sub id='22wth'></sub></form><legend id='22wth'></legend><bdo id='22wth'><pre id='22wth'><center id='22wth'></center></pre></bdo></b><th id='22wth'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='22wth'><tfoot id='22wth'></tfoot><dl id='22wth'><fieldset id='22wth'></fieldset></dl></div>
      <tfoot id='22wth'></tfoot>

        • <bdo id='22wth'></bdo><ul id='22wth'></ul>

        JACOB 沒有正確釋放對象

        JACOB doesn#39;t release the objects properly(JACOB 沒有正確釋放對象)

            • <bdo id='rpLL9'></bdo><ul id='rpLL9'></ul>

              <small id='rpLL9'></small><noframes id='rpLL9'>

                • <tfoot id='rpLL9'></tfoot>
                • <legend id='rpLL9'><style id='rpLL9'><dir id='rpLL9'><q id='rpLL9'></q></dir></style></legend>
                  <i id='rpLL9'><tr id='rpLL9'><dt id='rpLL9'><q id='rpLL9'><span id='rpLL9'><b id='rpLL9'><form id='rpLL9'><ins id='rpLL9'></ins><ul id='rpLL9'></ul><sub id='rpLL9'></sub></form><legend id='rpLL9'></legend><bdo id='rpLL9'><pre id='rpLL9'><center id='rpLL9'></center></pre></bdo></b><th id='rpLL9'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rpLL9'><tfoot id='rpLL9'></tfoot><dl id='rpLL9'><fieldset id='rpLL9'></fieldset></dl></div>
                    <tbody id='rpLL9'></tbody>

                • 本文介紹了JACOB 沒有正確釋放對象的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個 Eclipse 插件,它使用 Jacob 連接到一個 COM 組件.但是在我完全關閉插件后,.exe 文件仍然掛在 Windows 進程中.

                  I have an eclipse plugin, which connects to a COM component using Jacob. But after I close the plugin entirely, the .exe file stays hanging in Windows processes.

                  我使用 ComThread.InitMTA(true) 進行初始化,并確保在關閉應用程序之前為我創(chuàng)建的每個 COM 對象調用 SafeRelease() 并調用 <代碼>ComThread.Release() 在最后.

                  I use ComThread.InitMTA(true) for initialization and make sure that SafeRelease() is called for every COM object I created before closing the app and I call ComThread.Release() at the very end.

                  我會留下一些未完成的事情嗎?

                  Do I leave something undone?

                  推薦答案

                  TD2JIRA 轉換器也有同樣的問題.最終不得不修補其中一個 Jacob 文件以釋放對象.之后一切順利.

                  Had the same problem with TD2JIRA converter. Eventually had to patch one of the Jacob files to release the objects. After that all went smooth.

                  我的客戶端 logout() 方法中的代碼現(xiàn)在如下所示:

                  The code in my client logout() method now looks like this:

                  try {
                    Class rot = ROT.class;
                    Method clear = rot.getDeclaredMethod("clearObjects", new Class[]{});
                    clear.setAccessible(true);
                    clear.invoke(null, new Object[]{});
                  } catch( Exception ex ) {
                    ex.printStackTrace();
                  }
                  

                  最初無法訪問 ROT 類,AFAIR.

                  The ROT class wasn't accessible initially, AFAIR.

                  更新

                  Jacob中釋放資源的正確方法是調用

                  The correct way to release resources in Jacob is to call

                  ComThread.InitSTA(); // or ComThread.InitMTA()
                  ...
                  ComThread.Release();
                  

                  但不好的是,有時它無濟于事.盡管 Jacob 調用了本機方法 release(),但內存(甚至不是 Java 內存,而是 JVM 進程內存)卻無法控制地增長.

                  Bad thing though is that sometimes it doesn't help. Despite Jacob calls native method release(), the memory (not even Java memory, but JVM process memory) grows uncontrollably.

                  這篇關于JACOB 沒有正確釋放對象的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創(chuàng)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)

                    1. <tfoot id='GsI1l'></tfoot>

                          <tbody id='GsI1l'></tbody>
                        <i id='GsI1l'><tr id='GsI1l'><dt id='GsI1l'><q id='GsI1l'><span id='GsI1l'><b id='GsI1l'><form id='GsI1l'><ins id='GsI1l'></ins><ul id='GsI1l'></ul><sub id='GsI1l'></sub></form><legend id='GsI1l'></legend><bdo id='GsI1l'><pre id='GsI1l'><center id='GsI1l'></center></pre></bdo></b><th id='GsI1l'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GsI1l'><tfoot id='GsI1l'></tfoot><dl id='GsI1l'><fieldset id='GsI1l'></fieldset></dl></div>
                        • <bdo id='GsI1l'></bdo><ul id='GsI1l'></ul>

                          <small id='GsI1l'></small><noframes id='GsI1l'>

                          • <legend id='GsI1l'><style id='GsI1l'><dir id='GsI1l'><q id='GsI1l'></q></dir></style></legend>
                            主站蜘蛛池模板: 性高朝久久久久久久3小时 av一区二区三区四区 | 精品成人免费一区二区在线播放 | 中文字幕一区二区三区乱码在线 | 亚洲精品一区二区三区中文字幕 | 亚洲啊v在线 | www.亚洲一区二区 | 久操亚洲 | 91免费电影| 在线黄av | 自拍偷拍亚洲视频 | 久久成人国产精品 | 日韩av看片 | 国产九九精品视频 | 欧美成人一区二区 | 精品国产一区二区国模嫣然 | 日韩av在线一区二区三区 | www.久久艹 | 久久久久久国产精品免费免费 | 欧美精品一区在线 | 色爱综合网 | 日韩欧美三区 | 久久99深爱久久99精品 | 欧美色专区| 免费视频一区二区 | 欧美日韩国产精品一区二区 | 视频三区 | 国产精品一码二码三码在线 | 久久久久久久久久久久久久国产 | 国产亚洲精品久久久久久豆腐 | 毛片在线看片 | 国产精品视频久久久 | 久久久久久一区 | 亚洲人成人一区二区在线观看 | 国产福利精品一区 | 操操日 | 视频三区 | 国产精品夜夜春夜夜爽久久电影 | 成人片网址 | 色一情一乱一伦一区二区三区 | 91xx在线观看| 日日操夜夜干 |