Recent

Author Topic: Problem with Apache Module with thread pooling in Windows  (Read 2147 times)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Problem with Apache Module with thread pooling in Windows
« on: July 23, 2012, 09:35:53 am »
Yesterday I've implemented thread pooling to FreeSpider Apache Module using Critical Section, it works fine under Ubuntu, but in Windows 7 when I turn on thread pooling it start to generate many errors in stress test, like out of memory, index out of bounds, and illegal pointer operation.
When I disable thread pooling or test the page from browser, every thing works fine.
Critical Section is used to prevent multi modification of array that holds the reusable data modules.
Can any one review the code of ApachAdapter.pas unit to tell me what is wrong:
https://github.com/motaz/freespider/blob/master/apacheadapter.pas
First function contains the Critical section function
Thanks
« Last Edit: July 26, 2012, 05:46:42 pm by motaz »

 

TinyPortal © 2005-2018