Search found 267 matches
- Tue Sep 02, 2008 8:23 am
- Forum: General Development
- Topic: Substitute for wxDb
- Replies: 6
- Views: 2549
No, DatabaseLayer should work with ANSI/Unicode or GUI/Base builds. I've mainly been in bugfix mode on DatabaseLayer lately and since there haven't been many ODBC issue reports, I haven't spent a lot of time in the ODBC backend. The ODBC backend was contributed by Scott Fant and a couple of other pr...
- Tue Aug 26, 2008 6:15 pm
- Forum: General Development
- Topic: Substitute for wxDb
- Replies: 6
- Views: 2549
I'm partial to DatabaseLayer. We're still working on getting it to work with the latest FreeTDS release for MS SQL Server support though. With ODBC (using any of the libraries, not just DatabaseLayer), make you test the ANSI/UNICODE carefully on the Linux side. iODBC and unixODBC have different leve...
- Tue Aug 05, 2008 9:28 am
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
- Mon Aug 04, 2008 8:54 am
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
The reason that I only mentioned it on Linux is that I only had access to a Linux machine for testing at the time. Interestingly, I don't think any of this memory corruption issue exists on the 1.7.1 release of DatabaseLayer. (On the other hand, an 8-byte memory leak may exist.) I'll try comparing t...
- Fri Aug 01, 2008 11:49 pm
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
I'm still working on determing where the issue is in the DatabaseLayer code (most likely the parameter code). During my testing, I was able to find another change that fixed segmentation faults on Linux. The lines that add % signs into the string and call SetParamString could be changed into m_prepS...
- Mon Jul 28, 2008 9:00 am
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
Sorry, the view creation part of the test.sql script didn't work for me (not enough permissions for the user). I had forgotten about that when I changed the SQL into a join. I was finally able to get a potential heap corruption issue. This is the main issue that you were talking about, right? It loo...
- Sun Jul 27, 2008 5:21 pm
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
Yes, I did try the code that you posted. I needed to make a couple of modifications, but otherwise it worked fine. The first modification was that all places where a wxString was used for a %s parameter in a wxPrintf call, the c_str() function of the wxString needs to be used. The other modification...
- Sun Jul 27, 2008 2:41 pm
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
- Sun Jul 27, 2008 3:35 am
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
- Sat Jul 26, 2008 4:00 pm
- Forum: Announcements and Discoveries
- Topic: CodeLite IDE v1.0RC02
- Replies: 13
- Views: 10128
- Fri Jul 25, 2008 3:30 pm
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
Here's a test program I tried to write to a small program to investigate the issue. Unfortunately, I wasn't able to get the crash to occur. I've attached the code to this thread. I guessed at some of the code in the DatabaseManager class. Are there any changes that you can make to the sample program...
- Tue Jul 22, 2008 7:51 pm
- Forum: wxCode
- Topic: databaselayer mlock, new and heap crashes
- Replies: 23
- Views: 6139
You should probably stick with m_pDB->CloseResultSet(m_pResultSet); instead of m_pResultSet->Close(); so that m_pDB (or m_prepSearchBuddies) doesn't keep a bad pointer to the result set and try to clean it up later. Can you see which line in RunQueryWithResults is the last line called? What database...
- Mon Jul 07, 2008 6:47 am
- Forum: wxCode
- Topic: databaselayer wont compile unter linux
- Replies: 16
- Views: 4908
- Tue Jul 01, 2008 6:33 pm
- Forum: wxCode
- Topic: databaselayer wont compile unter linux
- Replies: 16
- Views: 4908
- Tue Jul 01, 2008 4:43 pm
- Forum: wxCode
- Topic: databaselayer wont compile unter linux
- Replies: 16
- Views: 4908