jump to article
...intermittent thoughts

Transforming LSI_info() to GetThreadInfo()

The undocumented function call LSI_Info() is suspected to cause trouble (read, crashes) on various occasions in Notes and Domino. So while using an undocumented function is not recommendable at all, this one seems to be a real cause of pain in many cases. We have seen servers that had LotusScript code using LSI_info() calls in them crashing mystically. So we have started to iron out calls to LSI_Info() as a step in stabilizing these servers, even though we have rarely made use of this function anyway. And it proofed to be helpful.

As the information that is retrieved by LSI_Info is extremely helpful in many occasions, simply removing those calls is not the best solution. Instead, replacing calls to LSI_Info() by appropriate other calls is much better. Most of the information provided by LSI_Info() can also be retrieved by its adult sister GetThreadInfo() which is not only documented but also supported. As for the other information that is not retrievable by GetThreadInfo(), I have no idea how to retrieve it other than by using LSI_Info() - but I would personally prefer a stable server and not to have that information as a server that is instable and maybe shows me some more information on rare scenarios.

For all the Information that is retrievable, simply replacing the keyword "LSI_Info" by "GetThreadInfo" is not applicable as both functions take different values to retrieve the same information. As a note to myself and to others who are attempting to do modify their code I have put together a parameter mapping of both calls. The parameters for LSI_Info() are taken from Johan Känngård, those for GetThreadInfo() come from Lotus/IBM:

LSI_Info()GetThreadInfo()
Current line number (in the LS source)Lsi_Info(1)GetThreadInfo(0) or GetThreadInfo(LSI_THREAD_LINE)
Name of current procedure (i.e. function, sub or property)Lsi_Info(2)GetThreadInfo(1) or GetThreadInfo(LSI_THREAD_PROC)
Name of current module (i.e. ScriptLibrary name)Lsi_Info(3)GetThreadInfo(2) or GetThreadInfo(LSI_THREAD_MODULE)
LotusScript version numberLsi_Info(6)GetThreadInfo(3) or GetThreadInfo(LSI_THREAD_VERSION)
(Human) language setting (e.g. 'en' for english)Lsi_Info(9)GetThreadInfo(4) or GetThreadInfo(LSI_THREAD_LANGUAGE)
Country or region settingn/aGetThreadInfo(5) or GetThreadInfo(LSI_THREAD_COUNTRY)
Current clock ticksn/aGetThreadInfo(6) or GetThreadInfo(LSI_THREAD_TICKS)
Clock ticks per second (supported only on platforms that support parallel processing primitives)n/aGetThreadInfo(7) or GetThreadInfo(LSI_THREAD_TICKS_PER_SEC)
Current process ID (supported only on platforms that support parallel processing primitives)n/aGetThreadInfo(8) or GetThreadInfo(LSI_THREAD_PROCESS_ID)
Current task ID (supported only on platforms that support parallel processing primitives)n/aGetThreadInfo(9) or GetThreadInfo(LSI_THREAD_TASK_ID)
name of the procedure that called this one (i.e. the caller)Lsi_Info(12)GetThreadInfo(10) or GetThreadInfo(LSI_THREAD_CALLPROC)
name of the calling modulen/aGetThreadInfo(11) or GetThreadInfo(LSI_THREAD_CALLMODULE)
LotusScript Memory AllocatedLsi_Info(50)n/a
LotusScript Memory Allocated from OSLsi_Info(51)a/a
LotusScript Blocks UsedLsi_Info(52)n/a

Hope this helps not only me but others as well.
  1. 1) Uwe Brahm said: (21.05.2013 15:42:31 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Yes - that comes in handy. Great. Just corrected a couple of lines from Open Source projects ;-)

  2. 2) vignesjose said: (09.02.2017 10:21:37 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Well done grateful sharing, Thank you for amazing knowledgeable words.We write this article excellently. Pleasant valued information.

    { Link }

  3. 3) Happy Mothers Day Images said: (10.02.2017 7:24:34 GMT)
    Transforming LSI_info() to GetThreadInfo()

    { Link }

    { Link }

  4. 4) isongsoundtrack said: (19.02.2017 8:09:04 GMT)
    Transforming LSI_info() to GetThreadInfo()

    { Link }

  5. 5) Kumar said: (02.03.2017 10:24:14 GMT)
    Transforming LSI_info() to GetThreadInfo()

    { Link }

  6. 6) balasaheb said: (03.03.2017 8:34:18 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Hi, you are a great writer and teacher. You explained this point in such easy words that even a beginner can understand it.Its a Great Tutorial.really

  7. 7) mohan said: (04.03.2017 11:06:07 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Nice Article

  8. 8) payal sharma said: (14.03.2017 13:15:31 GMT)
    Transforming LSI_info() to GetThreadInfo()

    I must say you had done a tremendous job,I appreciate all your efforts.Thanks alot for your writings......Waiting for a new 1...Please visit our wonderful and valuable website.......

    { Link }

    { Link }

  9. 9) IndiaRush said: (17.03.2017 10:40:13 GMT)
    Lace Work lehenga

    Visit indiarush.com and get a whorl of best collections of Lace Work lehenga and women dresses. One can also explore a wide range of beautiful jewellery and accessories.

  10. 10) IndiaRush said: (17.03.2017 10:40:46 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Visit indiarush.com and get a whorl of best collections of Lace Work lehenga and women dresses. One can also explore a wide range of beautiful jewellery and accessories. https://indiarush.com/lace-work-lehengas-for-women/

  11. 11) agen bandarq said: (25.03.2017 13:22:09 GMT)
    Transforming LSI_info() to GetThreadInfo()

    there will be very happy here

    { Link }

  12. 12) Sofiya G said: (27.03.2017 20:27:46 GMT)
    Transforming LSI_info() to GetThreadInfo()

    You can’t wait for your lottery results just one click here for lottery sambad - { Link }

  13. 13) writing said: (03.04.2017 23:24:20 GMT)
    academic writing assistance agencies

    Hello!

    { Link } , , { Link } , ,

  14. 14) custom_writing said: (09.04.2017 19:51:57 GMT)
    custom writing

    Hello!

    { Link } , , { Link } , ,

  15. 15) Apoorva said: (11.04.2017 7:34:43 GMT)
    Transforming LSI_info() to GetThreadInfo()

    While you are planning to shift your household items or office or shifting home in bangalore. Packers and Movers in Bangalore offers skilled professionals to do the entire loading and unloading activities very professionally while shifting household goods, electronic and other expensive goods, industrial or corporate stuffs.

    - See more at: { Link }

  16. 16) Poker Online said: (13.04.2017 12:30:47 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Success Always And greetings Friendship Thank You

  17. 17) agen bandarq said: (16.04.2017 11:44:08 GMT)
    Play And Big Win Join Us

    { Link }

  18. 18) Domino99 Online said: (20.04.2017 9:34:14 GMT)
    Domino99 Online

    Modal Kecil Menang Besar Bonus Yang Sangat Menarik Menanti Anda Semua Bergabung Dan Tunjukan Kehebtan Permainan Anda Join Ya ^_^

  19. 19) bandarq said: (20.04.2017 9:39:06 GMT)
    Fernando

    Complete set of Trusted Online Gambling Site

  20. 20) bandarq said: (20.04.2017 9:39:38 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Complete set of Trusted Online Gambling Site

  21. 21) viagra_cheap said: (23.04.2017 22:44:13 GMT)
    viagra cheap

    Hello!

    { Link } , ,

  22. 22) discount_cialis said: (25.04.2017 3:55:15 GMT)
    discount cialis

    Hello!

    { Link } , ,

  23. 23) mohan raj said: (25.04.2017 8:56:50 GMT)
    AWS Training

    Nice Good

  24. 24) ganesh said: (26.04.2017 19:54:15 GMT)
    Transforming LSI_info() to GetThreadInfo()

    WS Training

  25. 25) ganesh said: (26.04.2017 19:54:43 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ing LSI_info() to GetThreadInfo()

    WS Training

  26. 26) viagra_professional said: (28.04.2017 11:00:11 GMT)
    viagra professional

    Hello!

    { Link } , , { Link } , , { Link } , ,

  27. 27) ap ssc results 2017 namewise said: (29.04.2017 8:53:58 GMT)
    ap 10th class result 2017

    ap 10th class results 2017

  28. 28) viagra said: (29.04.2017 10:39:15 GMT)
    generico viagra df

    Hello!

    { Link } , , { Link } , ,

  29. 29) preethi reddy said: (01.05.2017 13:32:01 GMT)
    AWS Training in Hyderabad

    Nice Blog

  30. 30) nikky said: (02.05.2017 5:15:40 GMT)
    Karnataka SSLC Result

    KSEEB Board is going to declare <a href="{ Link } SSLC Result</a> today. Students can check the results at official website of karresults.nic.in.

  31. 31) nikky said: (02.05.2017 5:19:32 GMT)
    TN SSLC Result

    <a href="https://tnsslcresult.co.in/">TN SSLC Result </a>will be declare on the 2nd week of May 2017. Students can check the results online.

  32. 32) pranav said: (03.05.2017 9:03:34 GMT)
    Transforming LSI_info() to GetThreadInfo()

    <a href="{ Link } Mothers Day Quotes 2017</a>

  33. 33) Online Kurtis said: (10.05.2017 7:28:02 GMT)
    Online Kurtis

    Get Ready to Purchase Stylish & Trendy Online Kurtis from Styloshopping Starting from 499

  34. 34) Escorts Girls in Delhi said: (10.05.2017 7:42:04 GMT)
    Escorts Girls in Delhi

    Spend memorable moments with gorgeous professional foreigner and delhi escorts girls in the best ever Female Escort in Delhi, India at affordable charges.We are available for 24x7.

  35. 35) Delhi independent escorts said: (10.05.2017 8:24:55 GMT)
    Delhi independent escorts

    Highly Attractive & Beautiful Delhi Independent Escorts in Market’s Most Reasonable Prices

  36. 36) agen bandarq said: (10.05.2017 11:23:29 GMT)
    Transforming LSI_info() to GetThreadInfo()

    agen bandarq - { Link }

  37. 37) domino99 said: (12.05.2017 10:14:50 GMT)
    Domino99

    domino99 - { Link }

  38. 38) NIKKY said: (16.05.2017 7:03:02 GMT)
    tamilnadu sslc result 2017

    TN Board is going to declare SSLC Result:

    <a href="https://tnsslcresult.co.in/">tn sslc result </a>

    <a href="https://tnsslcresult.co.in/">tamilnadu sslc result 2017 </a>

    <a href="https://tnsslcresult.co.in/">tamilnadu 10th result </a>

    <a href="https://tnsslcresult.co.in/">www.dge1.tn.nic.in</a>

  39. 39) dooiitt said: (16.05.2017 13:51:04 GMT)
    Exclusive collection

    Exclusive Collection of Salwar Suit and Many More…

    We Have Some For You In Your Budget For more…

    Plz visit:- <a href= "{ Link } Sarees</a>

  40. 40) dooiitt said: (16.05.2017 13:51:04 GMT)
    Exclusive collection

    Exclusive Collection of Salwar Suit and Many More…

    We Have Some For You In Your Budget For more…

    Plz visit:- <a href= "{ Link } Sarees</a>

  41. 41) agen domino 99 said: (17.05.2017 10:27:57 GMT)
    Hondaqq

    agen domino 99 - { Link }

  42. 42) Venessa Dcruze said: (18.05.2017 17:58:38 GMT)
    Transforming LSI_info() to GetThreadInfo()

    organifi green juice reviews @ { Link }

    organifi complete protein powder review @ { Link }

    organifi complete protein review @ { Link }

  43. 43) cialis said: (27.05.2017 20:04:26 GMT)
    buy cialis online

    Hello!

    { Link } , ,

  44. 44) Whatsapp status said: (28.01.2018 7:52:14 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Superb Piece I have ever read on the web. I will be sharing this with my colleagues & friends on facebook, twitter and Google

  45. 45) Avni Jain said: (25.02.2018 7:12:32 GMT)
    Packers And Movers Delhi | Get Free Quotes | Compare and Save

    We Provide Best Packers And Movers Delhi List for Get Free Best Quotes, Compare Charges, Save Money And Time, Household

    Shifting Services @ { Link }

  46. 46) Parii Club said: (01.03.2018 9:18:27 GMT)
    Transforming LSI_info() to GetThreadInfo()

    The Chandigarh escort girls are quite excellent in providing awesome female escort dating services. We are Parii Chandigarh Escorts Club. We are top rated escorts service provider. Visit our website for check our girls photos or list.

  47. 47) Packers and Movers Delhi NCR said: (08.03.2018 10:27:15 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Hire for the professional and reliable packers and movers company in Delhi NCR. Ask for the best deals for relocation and shifting or packers and movers services from Delhi NCR. We offers best deals on packers and movers services from Delhi NCR to your desired location at very affordable price.

  48. 48) Buy funny tshirt said: (15.03.2018 9:03:17 GMT)
    Buy funny tshirt

    Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

  49. 49) Setup Netgear Range said: (16.03.2018 10:02:50 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Fabulous blog. Very well described this informative post by the author. Thanks.

    Fix your technical problem with Fixingblog. We are also providing help for Belkin range.If you have any problem With Router, Range Extender, Antivirus etc.

  50. 50) Setup Netgear Range said: (16.03.2018 10:03:26 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Fabulous blog. Very well described this informative post by the author. Thanks.

  51. 51) playview apk said: (17.03.2018 15:48:06 GMT)
    playview apk

    Get latest version of playview apk

  52. 52) Packers and Movers In Hyderabad said: (19.03.2018 10:59:24 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Packers And Movers Hyderabad Local Household Shifting Service, Get Free Best Price Quotes Local Packers and Movers in Hyderabad List, Compare Charges, Save Money And Time.

    https://packersmovershyderabadcity.in/

  53. 53) aravindsai said: (23.03.2018 9:07:40 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Very Interest information.Keep sharing.

    { Link }

    { Link }

    { Link }

  54. 54) Best Gate Coaching said: (26.03.2018 9:06:56 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Catalyst group is online coaching institute for GATE IES & Civil Engineering, SSC JE online coaching classes. Catalyst group is best GATE, IES, JEN, PSUs, BSNL JTO coaching for Civil Engineering.

  55. 55) Lalit Soni said: (26.03.2018 13:13:48 GMT)
    Transforming LSI_info() to GetThreadInfo()

    Visit My Website For Latest Free Internet Tricks, Facebook Tricks, Whatsapp Tricks & Many More : { Link }

  56. 56) Pengobatan Penyakit Pankreatitis Akut Dengan Cara Alami said: (05.04.2018 4:20:16 GMT)
    Transforming LSI_info() to GetThreadInfo()

    https://bit.ly/2H7zQGA

  57. 57) ussd code said: (05.04.2018 6:00:20 GMT)
    Transforming LSI_info() to GetThreadInfo()

    { Link }

  58. 58) ussd code said: (05.04.2018 6:01:02 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ggff

  59. 59) ussd code said: (05.04.2018 6:01:22 GMT)
    Transforming LSI_info() to GetThreadInfo()

    fbfffgbg

  60. 60) ussd code said: (05.04.2018 6:01:41 GMT)
    Transforming LSI_info() to GetThreadInfo()

    fgfgf

  61. 61) ussd code said: (05.04.2018 6:01:57 GMT)
    Transforming LSI_info() to GetThreadInfo()

    fgfgf

  62. 62) ussd code said: (05.04.2018 6:02:15 GMT)
    Transforming LSI_info() to GetThreadInfo()

    cvcvc

  63. 63) ussd code said: (05.04.2018 6:02:39 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghgh

  64. 64) ussd code said: (05.04.2018 6:03:03 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ffgfgf

  65. 65) ussd code said: (05.04.2018 6:03:16 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ffgfg

  66. 66) ussd code said: (05.04.2018 6:03:50 GMT)
    Transforming LSI_info() to GetThreadInfo()

    fgfgf

  67. 67) ussd code said: (05.04.2018 6:04:11 GMT)
    Transforming LSI_info() to GetThreadInfo()

    fgfgf

  68. 68) ussd code said: (05.04.2018 6:04:21 GMT)
    Transforming LSI_info() to GetThreadInfo()

    fgfgfg

  69. 69) ussd code said: (05.04.2018 6:04:37 GMT)
    Transforming LSI_info() to GetThreadInfo()

    hghghgh

  70. 70) ussd code said: (05.04.2018 6:04:51 GMT)
    Transforming LSI_info() to GetThreadInfo()

    fgfgfgf

  71. 71) ussd code said: (05.04.2018 6:05:08 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghg

  72. 72) ussd code said: (05.04.2018 6:05:22 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghg

  73. 73) ussd code said: (05.04.2018 6:05:37 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghg

  74. 74) ussd code said: (05.04.2018 6:05:54 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghghg

  75. 75) ussd code said: (05.04.2018 6:06:04 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghgh

  76. 76) ussd code said: (05.04.2018 6:06:19 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghgh

  77. 77) ussd code said: (05.04.2018 6:06:38 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghg

  78. 78) ussd code said: (05.04.2018 6:07:09 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghgh

  79. 79) ussd code said: (05.04.2018 6:07:26 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghgh

  80. 80) ussd code said: (05.04.2018 6:07:37 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghg

  81. 81) ussd code said: (05.04.2018 6:07:48 GMT)
    Transforming LSI_info() to GetThreadInfo()

    ghghg

  82. 82) Picknhook said: (10.04.2018 9:06:19 GMT)
    Online Shopping Site in India- Picknhook

    Picknhook- Online Shopping site in India.

    Thanks.

    https://picknhook.com/

  83. 83) vijay antony said: (14.04.2018 8:49:00 GMT)
    java training

    Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.

  84. 84) pooja rani said: (20.04.2018 13:03:15 GMT)
    Transforming LSI_info() to GetThreadInfo()

    { Link }

    { Link }

  85. 85) pooja rani said: (20.04.2018 13:03:54 GMT)
    Transforming LSI_info() to GetThreadInfo()

    nice work sir

  86. 86) Vijay said: (21.04.2018 13:30:48 GMT)
    Transforming LSI_info() to GetThreadInfo()

    best protect in India <a href="{ Link } wireless mouse in india under 1000 </a>

  87. 87) Vijay said: (21.04.2018 13:31:33 GMT)
    Transforming LSI_info() to GetThreadInfo()

    <a href="{ Link } activate jio caller tune </a>

  88. 88) Vijay said: (21.04.2018 13:31:54 GMT)
    Transforming LSI_info() to GetThreadInfo()

    <a href="{ Link } mobile number check </a>

  89. 89) Vijay said: (21.04.2018 13:32:36 GMT)
    Transforming LSI_info() to GetThreadInfo()

    <a href="{ Link } wireless mouse under 1000 </a> or

    <a href="{ Link } best graphic card for gaming under 100 </a> or

    <a href="{ Link } airtel net balance check </a>


Add Comment
 
Subject:
   
Name:
E-mail:
Web Site:
 
Comment:  (No HTML - Links will be converted if prefixed http://)
 
Remember Me?