1 из багов ZEOSDBO

Сегодня занимался обработкой вызовом хранимых процедур из MySQL. Как оказалось, ZEOS не корректно освобождал память при закрытии Датасета. Решение проблемы нашел здесь:
http://zeosbugs.firmos.at/view.php?id=235

В общем, вместо кода:

</p>

<p>procedure TZMySQLResultSet.Close;</p>

<p>begin</p>

<p>if FQueryHandle <> nil then</p>

<p>FPlainDriver.FreeResult(FQueryHandle);</p>

<p>FQueryHandle := nil;</p>

<p>FRowHandle := nil;</p>

<p>inherited Close;</p>

<p>end  

в юните ZDbcMySqlResultSet нужно поставить:

</p>

<p>procedure TZMySQLResultSet.Close; {Shkil}</p>

<p>var  QueryHandle: pointer;</p>

<p>begin  if  FQueryHandle<>  nil then</p>

<p>begin  while(FPlainDriver.RetrieveNextRowset(FHandle) = 0) do</p>

<p>begin</p>

<p>QueryHandle := FPlainDriver.StoreResult(FHandle);</p>

<p>if QueryHandle  nil then</p>

<p>begin  FPlainDriver.FreeResult(QueryHandle);</p>

<p>end;</p>

<p>end;</p>

<p>FPlainDriver.FreeResult(FQueryHandle);</p>

<p>end;</p>

<p>FQueryHandle := nil;</p>

<p>FRowHandle := nil;</p>

<p>inherited Close;</p>

<p>end;  

19.04.2011 · dogma · 610 комментариев
Метки: , ,  · Рубрики: delphi, dogma, mysql

610 комментариев

  1. Loans Online - 29.06.2018

    direct lender installment loans loans poor credit lender [url=https://cashnow.cars]money lender[/url]

  2. Loans Online - 04.07.2018

    lender loan nguyen lender [url=https://cashnow.cars]ace cash[/url]

  3. Online Loans - 09.07.2018

    money lender direct lender payday loans direct lender installment loans [url=https://cashnow.cars]payday lender[/url]

  4. Easy Payday Loan - 11.07.2018

    payday loans direct lender payday loan direct lender bad credit loans with cosigner [url=https://cashnow.cars]money lender[/url]

  5. Pay Day Loan - 14.07.2018

    lender payday loans direct lender direct lender installment loans [url=https://cashnow.cars]lender[/url]

  6. KennethGrola - 17.07.2018

    wh0cd3910 India Generic Cialis

  7. CharlesPep - 17.07.2018

    wh0cd3910 tadalafil prices

  8. Bennycrymn - 17.07.2018

    wh0cd3910 tadalafil 40mg

  9. MichaelSnomi - 17.07.2018

    wh0cd3910 where to purchase xenical vardenafil hcl site here

  10. MichaelSnomi - 17.07.2018

    wh0cd3910 generic for inderal tadalafil lasix

  11. Brettcap - 17.07.2018

    wh0cd3910 20 mg lexapro

  12. Brettcap - 17.07.2018

    wh0cd3910 buy ventolin inhaler

  13. StewartGeolf - 17.07.2018

    wh0cd3910 viagra soft tabs

  14. KennethGrola - 17.07.2018

    wh0cd75409 [url=http://tadalafilprice18.us.com/]tadalafil best price[/url]

  15. Bennycrymn - 17.07.2018

    wh0cd75409 [url=http://colchicine2018.us.com/]COLCHICINE GOUT[/url]

  16. MichaelSnomi - 17.07.2018

    wh0cd75409 [url=http://baclofen.pink/]baclofen[/url] [url=http://cafergotonline.store/]cafergot online[/url] [url=http://amoxicillin.auction/]amoxicillin 1 gram[/url] [url=http://doxycycline.rocks/]doxycycline[/url] [url=http://abilifyonline.store/]abilify[/url] [url=http://kamagra.pink/]where to buy kamagra oral jelly[/url]

  17. MichaelSnomi - 17.07.2018

    wh0cd75409 [url=http://buyrevia.doctor/]buy revia online[/url] [url=http://buyhydrochlorothiazide.doctor/]hydrochlorothiazide over the counter[/url] [url=http://cheaplevitra.doctor/]order levitra[/url]

  18. KennethGrola - 17.07.2018

    wh0cd146908 doxycycline

  19. MichaelSnomi - 17.07.2018

    wh0cd146908 buy cytotec clomid iui propranolol

  20. KennethGrola - 17.07.2018

    wh0cd218407 cialis 40 mg

  21. MichaelSnomi - 17.07.2018

    wh0cd218407 azithromycin generic avodart 0.5 mg synthroid

  22. Bennycrymn - 18.07.2018

    wh0cd3910 buy valtrex

  23. KennethGrola - 18.07.2018

    wh0cd3910 colchicine 0.6 mg price

  24. Bennycrymn - 18.07.2018

    wh0cd75409 [url=http://xenical18.us.org/]XENICAL WHERE TO BUY[/url]

  25. KennethGrola - 18.07.2018

    wh0cd75409 kamagra

  26. DanielFen - 18.07.2018

    paydayloansbadcredit.us.com

  27. CesarPhich - 18.07.2018

    paydayloansnearme

  28. DavidBycle - 18.07.2018

    paydayloansbadcredit.us.com

  29. WalterLar - 18.07.2018

    3monthpaydayloans.us.com

  30. Matthewboups - 18.07.2018

    barbiecashregister.com

  31. AltonBeats - 18.07.2018

    torssexdvd

  32. CharlesPep - 18.07.2018

    wh0cd75409 Cialis Price prednisone

  33. CharlesPep - 18.07.2018

    wh0cd75409 Cost Of Viagra Per Pill BUY XENICAL

  34. CharlesPep - 18.07.2018

    wh0cd75409 vardenafil hcl 20mg tab

  35. Bennycrymn - 18.07.2018

    wh0cd146908 Zithromax

  36. Alfredcix - 18.07.2018

    wh0cd146908 cialis online

  37. StewartGeolf - 18.07.2018

    wh0cd75409 is online viagra real

  38. Brettcap - 18.07.2018

    wh0cd75409 Albuterol For Nebulizer

  39. BillycrurI - 18.07.2018

    wh0cd75409 Lasix

  40. Brettcap - 18.07.2018

    wh0cd75409 zithromax generic

  41. CharlesPep - 18.07.2018

    wh0cd146908 valtrex rx

  42. CharlesPep - 18.07.2018

    wh0cd146908 order kamagra

  43. KennethGrola - 18.07.2018

    wh0cd218407 albuterol ventolin

  44. Alfredcix - 18.07.2018

    wh0cd218407 Clomid Infertility

  45. Bennycrymn - 18.07.2018

    wh0cd3910 ventolin no prescription

  46. KennethGrola - 18.07.2018

    wh0cd3910 kamagra 100mg oral jelly

  47. Alfredcix - 18.07.2018

    wh0cd3910 viagra canadian pharmacy

  48. Bennycrymn - 18.07.2018

    wh0cd75409 lexapro

  49. KennethGrola - 18.07.2018

    wh0cd75409 vibramycin

  50. Alfredcix - 18.07.2018

    wh0cd75409 buy online cialis