Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1017059 // Test Endless Loop In Evaluated Code

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7478L/55K).

1  
!7
2  
3  
set flag cancelThread_verbose.
4  
5  
p-exp {
6  
  int timeout = 5000;
7  
  fO o = evalJava_prep2(evalJava_prep("while licensed {}"));
8  
  print("o = " + identityHashCode(o));
9  
  print(identityHashCode(ping_actions) + " / " + identityHashCode(getOpt(o, 'ping_actions));
10  
  O result = null;
11  
  pcall {
12  
    result = evalWithTimeoutOrNull(timeout, func { evalJava_main2(o) });
13  
  }
14  
  cleanUp(o); // This actually stops the thread
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017059
Snippet name: Test Endless Loop In Evaluated Code
Eternal ID of this version: #1017059/7
Text MD5: 6dae19a5610638ae7ff494c1d6f595c9
Transpilation MD5: b6d2f96cf489b8dffb754435eaafcdf2
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-11 16:40:51
Source code size: 428 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 290 / 694
Version history: 6 change(s)
Referenced in: [show references]