![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am running VS 2005 on Windows XP. So far, I have tried Sample1, resetdb, and dbinfo. All 3 build correctly, but all 3 are having errors when cleaning up from query calls. The general problem seems to be pointers to 0. I haven't been able to track them down further yet. dbinfo gives this error: Unhandled exception at 0x104f1795 (msvcp80d.dll) in dbinfo.exe: 0xC0000005: Access violation reading location 0x74616420. The code breaks in the string module trying to insert a string. The dbinfo.cpp module was trying to execute the statement: query << "show databases"; resetdb gives the error: Unhandled exception at 0x7c81eb33 in resetdb.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012ebb8.. It is trying to allocate a new string in the call: con.create_db(kpcSampleDatabase) Is there a setting I need to change somewhere? Please help! |
#3
| |||
| |||
|
|
I suggest you to try out with this binaries i had built for msvc 2005 and mingw The link is http://www.cahda.org/files/MySQL++_2.1.1.zip I hope it works for you, it includes both debug and release binaries with different names 2006/8/21, Gary Anderson <ganderson (AT) bslw (DOT) com>: I am running VS 2005 on Windows XP. So far, I have tried Sample1, resetdb, and dbinfo. All 3 build correctly, but all 3 are having errors when cleaning up from query calls. The general problem seems to be pointers to 0. I haven't been able to track them down further yet. dbinfo gives this error: Unhandled exception at 0x104f1795 (msvcp80d.dll) in dbinfo.exe: 0xC0000005: Access violation reading location 0x74616420. The code breaks in the string module trying to insert a string. The dbinfo.cpp module was trying to execute the statement: query << "show databases"; resetdb gives the error: Unhandled exception at 0x7c81eb33 in resetdb.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012ebb8.. It is trying to allocate a new string in the call: con.create_db(kpcSampleDatabase) Is there a setting I need to change somewhere? Please help! |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Gary Anderson wrote: resetdb gives the error: Unhandled exception at 0x7c81eb33 in resetdb.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012ebb8.. It is trying to allocate a new string in the call: con.create_db(kpcSampleDatabase) Are you still trying to build the examples using a different project than the example.dsw that comes with MySQL++? If so, try with the project we ship. If it works, then there is some difference in the build settings. Visual C++ is very particular that certain settings match exactly between the library and the executable linking to the library. |
#6
| |||
| |||
|
|
Gary Anderson wrote: resetdb gives the error: Unhandled exception at 0x7c81eb33 in resetdb.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012ebb8.. It is trying to allocate a new string in the call: con.create_db(kpcSampleDatabase) Are you still trying to build the examples using a different project than the example.dsw that comes with MySQL++? If so, try with the project we ship. If it works, then there is some difference in the build settings. Visual C++ is very particular that certain settings match exactly between the library and the executable linking to the library. |
#7
| |||
| |||
|
|
Of course, VS2005 had to update everything to meet its new standard. |
|
I built the projects individually, and didn't use the overall examples.dsw file. |
|
I'm also having a problem with null string pointers in dbinfo. |
#8
| |||
| |||
|
|
Unhandled exception at 0x104f1795 (msvcp80d.dll) in dbinfo.exe: 0xC0000005: Access violation reading location 0x74616420. The code broke in the string library. |
|
Resetdb still errors also: Unhandled exception at 0x7c81eb33 in resetdb.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012ebc0.. This one broke in the new function of new.cpp. |
#9
| |||
| |||
|
|
Gary Anderson wrote: Unhandled exception at 0x104f1795 (msvcp80d.dll) in dbinfo.exe: 0xC0000005: Access violation reading location 0x74616420. The code broke in the string library. What exception was thrown? Resetdb still errors also: Unhandled exception at 0x7c81eb33 in resetdb.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012ebc0.. This one broke in the new function of new.cpp. Someone reported that this sort of thing would happen with the brandest newest MySQL. Try rolling back to 5.0.22. |
#10
| |||
| |||
|
|
I'm running 5.0.21, so the 5.0.24 problem shouldn't be affecting me. |
|
As for your question about what exception was thrown, how do I find that out? |
![]() |
| Thread Tools | |
| Display Modes | |
| |