Search found 267 matches

by jb_coder
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...
by jb_coder
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...
by jb_coder
Tue Aug 05, 2008 9:28 am
Forum: wxCode
Topic: databaselayer mlock, new and heap crashes
Replies: 23
Views: 6139

There's a 1-line change between 1.7.1 and 1.7.5 that seems to correct the issue. In MysqlPreparedStatementParameter.cpp at line 84 the code "m_pBind->length = &m_Data.nBufferLength;" seems to be causing the issue. If you remove that line, does it fix your issue?
by jb_coder
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...
by jb_coder
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...
by jb_coder
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...
by jb_coder
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...
by jb_coder
Sun Jul 27, 2008 2:41 pm
Forum: wxCode
Topic: databaselayer mlock, new and heap crashes
Replies: 23
Views: 6139

Have you tried the same code in any other environments? I'm currently using 32bit Ubuntu. I'll try again with a debug/ansi build of wxWidgets.

Also, that wxDebug line can probably be removed. It was added when I was working on removing all memory leaks from the MySQL backend code.
by jb_coder
Sun Jul 27, 2008 3:35 am
Forum: wxCode
Topic: databaselayer mlock, new and heap crashes
Replies: 23
Views: 6139

Try wrapping the PrepareStatement in a try catch block. Printing out the value of the exception's GetErrorString() should help debug the issue.
by jb_coder
Sat Jul 26, 2008 4:00 pm
Forum: Announcements and Discoveries
Topic: CodeLite IDE v1.0RC02
Replies: 13
Views: 10128

The deb packages contain some .svn directories. Will this cause any problems?

Thanks for a great IDE!
by jb_coder
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...
by jb_coder
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...
by jb_coder
Mon Jul 07, 2008 6:47 am
Forum: wxCode
Topic: databaselayer wont compile unter linux
Replies: 16
Views: 4908

Hopefully `mysql_config --libs` would take care of adding all the library dependencies to the build command. mysql_config and libmysqld.a should both be provided in the libmysqlclient15-dev package. Is that installed on your machine? If so, then maybe just removing the "-lmysqld" from the ...
by jb_coder
Tue Jul 01, 2008 6:33 pm
Forum: wxCode
Topic: databaselayer wont compile unter linux
Replies: 16
Views: 4908

If you do a "mkdir gccgtk2_dll" it should create the directory and build for you. I'll work on getting output directory creation in the build scripts.
by jb_coder
Tue Jul 01, 2008 4:43 pm
Forum: wxCode
Topic: databaselayer wont compile unter linux
Replies: 16
Views: 4908

Is there a "gccgtk2_dll" directory under the "build" directory? There may also need to be one under the "lib" directory.