|
|
Choosing A Webhost: |
bug in Store() in mysql++ for Borland: msg#00038db.mysql.c++
Hi All I think i found a bug or something ! I found memory leak warning ( using CodeGuard for Borland Builder 6 ) after i terminate application . I'm doing this because i found some 'memory corruption' indication in my application . So it can crash randomly . My code is pretty simple .. in a thread while (1) { Result res; Row row; sql = "SELECT .... "; Query query = con.query(); query << sql.c_str(); query.store(); ..... do the rest } I found some memory leak point to function store() . I read the source code and found that there is actually memory allocation ( for char ) in the function. Im not sure , but i think someone forgot to delete it . But if i change the code to something like this sql = "SELECT ... " Query query = con.query(); query.store(sql.c_str()); ... It also work , and does not produce Memory Leak warning . Im just a beginner . So i just inform you guys about the situation ..! Perhaps someone can explain better .. thanks BayuFA -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Install c++api at suse 9.1, Michael Masson |
|---|---|
| Next by Date: | Re: bug in Store() in mysql++ for Borland, Mark Scholtens |
| Previous by Thread: | Install c++api at suse 9.1, Michael Masson |
| Next by Thread: | Re: bug in Store() in mysql++ for Borland, Mark Scholtens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |