Recent

Author Topic: GetLineInfo not thread safe?  (Read 542 times)

JernejL

  • Jr. Member
  • **
  • Posts: 92
GetLineInfo not thread safe?
« on: July 15, 2020, 08:59:53 am »
I'm using GetLineInfo and it generally works ok, that is - except when it is used silmutaneously in multiple threads at the same time.
 
It looks like it is not safe to call from multiple threads - can somebody verify this?
 

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: GetLineInfo not thread safe?
« Reply #1 on: July 15, 2020, 02:36:00 pm »
Dwarf or Stabs?

From InfoDwarf unit: {$WARNING This code is not thread-safe, and needs improvement}
From LineInfo unit (stabs): {$WARNING This code is not thread-safe, and needs improvement }

JernejL

  • Jr. Member
  • **
  • Posts: 92
Re: GetLineInfo not thread safe?
« Reply #2 on: July 17, 2020, 01:22:43 pm »
I was using stabs, but i see now that neither is thread safe.
 

 

TinyPortal © 2005-2018