List:MySQL++« Previous MessageNext Message »
From:Bernard Date:July 14 2008 3:09pm
Subject:Fatal error running the MFC example application.
View as plain text  
I am using:
 MySql++ v 3.0.4
 MySql V 5.0.51b
 Visual Studio 2008 Pro
 Windows XP SP2 Pro

I have had no problems building and running the resetdb, simple1, and 
simple2 apps located in the VC2005 directories, however when trying to 
build and run the
MFC example application I receive a Fatal Error:

During the build there were 14 argument conversion warnings encountered:

First-chance exception at 0x7c812a5b in mfc.exe: Microsoft C++ 
exception: std::out_of_range at memory location 0x0012ef8c..
Unhandled exception at 0x7c812a5b in mfc.exe: Microsoft C++ exception: 
std::out_of_range at memory location 0x0012ef8c..

------ Build started: Project: mfc, Configuration: Release Win32 ------
Compiling...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and 
will be removed in a future release
mfc_dlg.cpp
c:\mysql++\include\mystring.h(199) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(214) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(229) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(246) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(260) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(274) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(455) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(468) : warning C4267: 'argument' : 
conversion from 'size_t' to 'mysqlpp::SQLBuffer::size_type', possible 
loss of data
c:\mysql++\include\mystring.h(610) : warning C4267: 'argument' : 
conversion from 'size_t' to 'std::streamsize', possible loss of data
        c:\mysql++\include\mystring.h(304) : see reference to function 
template instantiation 'Type mysqlpp::String::do_conv<conv_type>(const 
char *) const' being compiled
        with
        [
            Type=conv_type
        ]
        c:\mysql++\include\mystring.h(532) : see reference to function 
template instantiation 'Type mysqlpp::String::conv<signed char>(Type) 
const' being compiled
        with
        [
            Type=signed char
        ]
c:\mysql++\include\mystring.h(610) : warning C4267: 'argument' : 
conversion from 'size_t' to 'std::streamsize', possible loss of data
        c:\mysql++\include\mystring.h(304) : see reference to function 
template instantiation 'Type mysqlpp::String::do_conv<conv_type>(const 
char *) const' being compiled
        with
        [
            Type=conv_type
        ]
        c:\mysql++\include\mystring.h(536) : see reference to function 
template instantiation 'Type mysqlpp::String::conv<unsigned char>(Type) 
const' being compiled
        with
        [
            Type=unsigned char
        ]
c:\mysql++\include\mystring.h(610) : warning C4267: 'argument' : 
conversion from 'size_t' to 'std::streamsize', possible loss of data
        c:\mysql++\include\mystring.h(304) : see reference to function 
template instantiation 'Type mysqlpp::String::do_conv<conv_type>(const 
char *) const' being compiled
        with
        [
            Type=conv_type
        ]
        c:\mysql++\include\mystring.h(568) : see reference to function 
template instantiation 'Type 
mysqlpp::String::conv<mysqlpp::longlong>(Type) const' being compiled
        with
        [
            Type=mysqlpp::longlong
        ]
c:\mysql++\include\mystring.h(610) : warning C4267: 'argument' : 
conversion from 'size_t' to 'std::streamsize', possible loss of data
        c:\mysql++\include\mystring.h(304) : see reference to function 
template instantiation 'Type mysqlpp::String::do_conv<conv_type>(const 
char *) const' being compiled
        with
        [
            Type=conv_type
        ]
        c:\mysql++\include\mystring.h(573) : see reference to function 
template instantiation 'Type 
mysqlpp::String::conv<mysqlpp::ulonglong>(Type) const' being compiled
        with
        [
            Type=mysqlpp::ulonglong
        ]
c:\mysql++\include\mystring.h(610) : warning C4267: 'argument' : 
conversion from 'size_t' to 'std::streamsize', possible loss of data
        c:\mysql++\include\mystring.h(304) : see reference to function 
template instantiation 'Type mysqlpp::String::do_conv<conv_type>(const 
char *) const' being compiled
        with
        [
            Type=conv_type
        ]
        c:\mysql++\include\mystring.h(578) : see reference to function 
template instantiation 'Type mysqlpp::String::conv<float>(Type) const' 
being compiled
        with
        [
            Type=float
        ]
mfc.cpp
Linking...
Generating code
Finished generating code
Embedding manifest...
Build log was saved at 
"file://c:\mysql++\examples\vstudio\mfc\Release\BuildLog.htm"
mfc - 0 error(s), 14 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


First-chance exception at 0x7c812a5b in mfc.exe: Microsoft C++ 
exception: std::out_of_range at memory location 0x0012ef8c..
Unhandled exception at 0x7c812a5b in mfc.exe: Microsoft C++ exception: 
std::out_of_range at memory location 0x0012ef8c..

Thread
Fatal error running the MFC example application.Bernard14 Jul
  • Re: Fatal error running the MFC example application.Warren Young22 Jul