Board index » delphi » Oracle8i - BDE - Delphi memory leak
VadimC
![]() Delphi Developer |
Sun, 25 Jan 2004 03:49:04 GMT
|
VadimC
![]() Delphi Developer |
Sun, 25 Jan 2004 03:49:04 GMT
Oracle8i - BDE - Delphi memory leak
Hi All,
I was browsing newsgroups, trying to find the answer to the following Thanks. |
Team
![]() Delphi Developer |
Sun, 25 Jan 2004 04:26:01 GMT
Re:Oracle8i - BDE - Delphi memory leakQuoteVadimC wrote: bdereadme.txt). It has to do with explicit Prepares. There is also a non-Oracle-specific BDE issue which can cause an HTH, -Craig -- |
Vadim
![]() Delphi Developer |
Sun, 25 Jan 2004 05:49:13 GMT
Re:Oracle8i - BDE - Delphi memory leakThank you Craig, I've found this info in that file: Workaround : call DbiQFree() and DbiQPrepare() every time the query is executed. Can anybody offer a piece of code like an example how to use them? I Thanks. "Craig Stuntz (TeamB)" <cstuntz@no_spam.vertexsoftware.com> wrote in message Quote
|
Vadim
![]() Delphi Developer |
Sun, 25 Jan 2004 05:52:13 GMT
Re:Oracle8i - BDE - Delphi memory leakI'm not sure which is the problem exactly, but the code I'm trying to redevelop is having explicit Prepares..... Is that second possible problem documented somewhere? "Craig Stuntz (TeamB)" <cstuntz@no_spam.vertexsoftware.com> wrote in message Quote
|
Team
![]() Delphi Developer |
Sun, 25 Jan 2004 21:38:12 GMT
Re:Oracle8i - BDE - Delphi memory leakQuoteVadimC wrote: uses clause to call them. Calling UnPrepare and Prepare would probably suffice (or just don't use explicit Prepares and let the TQuery do it for you implicitly) but may (I'm not sure) add some extra overhead that the recommended workaround doesn't. As for the other issue, search your favorite newsgroup archive for -Craig -- |
David R. Robinso
![]() Delphi Developer |
Sun, 25 Jan 2004 23:18:31 GMT
Re:Oracle8i - BDE - Delphi memory leakQuote> I've found this info in that file: query and reopening it totally eliminates the benefits of having a prepared query since you are now making the server parse the SQL every time you issue the query. The bottom line is that you cannot use prepare on Oracle when using the David R. |
John Pierc
![]() Delphi Developer |
Sun, 25 Jan 2004 23:42:27 GMT
Re:Oracle8i - BDE - Delphi memory leakQuote"David R. Robinson" wrote: Quote> The bottom line is that you cannot use prepare on Oracle when using the I haven't tested it and have no reason to. John Pierce |
Team
![]() Delphi Developer |
Mon, 26 Jan 2004 00:41:58 GMT
Re:Oracle8i - BDE - Delphi memory leakQuote"David R. Robinson" wrote: TQuery.Prepare (fetching field lengths, etc. from the system tables) which *might* not occur with DbiQFree and DbiQPrepare. It's the only reason I can think of that Borland would recommend it over not using explicit Prepares. I haven't tested this theory, so if this concerns you, run it through a -Craig -- |
1. Insufficient memory / memory leak BDE
2. Delphi 4.03 and BDE 5.01 memory leaks with Oracle 8
3. Memory Leak in Delphi 4/BDE 5.01
4. Delphi 2.x, ODBC+BDE = Memory leak?
5. memory leaks in bde 4.0 (delphi 3)???
6. Delphi 4.03 and BDE 5.01 memory leaks with Oracle 8
7. Delphi 4.03 and BDE 5.01 memory leaks with Oracle 8
8. Delphi / Oracle / BDE 5 Memory Leak
10. Memory leak / device context leak trying to play MPEG-2 files from Media Player