From: Martin Gainty Date: January 11 2009 1:29pm Subject: RE: VC++ 2008 / MySQL debug / Unhandled exception List-Archive: http://lists.mysql.com/mysql/215869 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_13f9b4da-1299-4ec6-81e4-3cac880603f9_" --_13f9b4da-1299-4ec6-81e4-3cac880603f9_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable if Memory serves the LIBCMTD.lib library that you're excluding IS the Multi= Threaded Library? Generally if you can run it thru debug you can get the CodeStack and Instru= ctionPointer which will at least point to the exact location where it abend= ed Saludos Cordiales desde EEUU!Martin _______________________________________= _______ Disclaimer and confidentiality note Everything in this e-mail and a= ny attachments relates to the official business of Sender. This transmissio= n is of a confidential nature and Sender does not endorse distribution to a= ny party other than intended recipient. Sender does not necessarily endorse= content contained within this transmission. > Date: Sun=2C 11 Jan 2009 12:= 04:30 +0530> From: safknw@stripped> To: renito73@stripped=3B mysql@lists.= mysql.com> Subject: Re: VC++ 2008 / MySQL debug / Unhandled exception> > Ar= e you sure that VS2008 support Mysql6.0=2C since mysql 6 is in alpha stage.= > --> Sharique> > > On 1/10/09=2C Miguel Cardenas wrot= e:> > Hello list> >> > I have a problem debugging a program that uses MySQL= . The program itself> > does not have problems=2C it runs perfectly when ru= n in the console (command> > prompt)=2C but if it is executed inside the Vi= sual C++ 2008 debugger it causes> > an error:> >> > Unhandled exception at = 0x004b1560 in MyProgram.exe: 0xC0000005: Access> > violation reading locati= on 0x00000000> >> > when it reaches mysql_real_connect() I'm using "mysql-6= .0.8-alpha-win32"> > binary with setup.exe installer.> >> > Note that I don= 't try to enter inside mysql functions=2C even if no> > breakpoints are set= up and I let the program to run freely it aborts there> > with the unhandle= d exception.> >> > My VC++ 2008 configuration is this:> >> > --------------= ----------------------------------------------------------> > Includes:> > = C:\Program Files\MySQL\MySQL Server 6.0\include> >> > Libraries:> > C:\Prog= ram Files\MySQL\MySQL Server 6.0\lib\debug> >> > Code generation:> > Multi-= threaded /MT> >> > Precompiled headers: NO> >> > Aditional dependencies:> >= wsock32.lib mysqlclient.lib libmysql.lib mysys.lib> >> > Ignore specific l= ibrary: (as found in a forum post)> > LIBCMTD.lib> >> > Debugging: YES /DEB= UG> > ---------------------------------------------------------------------= ---> >> > I based my configuration on this post for VC++ 6.0> > http://foru= ms.mysql.com/read.php?45=2C49606=2C49606#msg-49606> >> > I guess it may be = due to the ignored LIBCMTD.lib (debug version of MT?)=2C but> > if don't ig= nore it the compilation fails at link time with lots of redefined> > symbol= s.> >> > My concrete question: is there something wrong with the configurat= ion shown> > in that post that I adapted to VC++ 2008? are VC++ programs wi= th MySQL> > unable to run inside VC++ debugger? I don't want to debut my My= SQL code it> > is working already for *NIX=2C but there are other parts of = the program that> > may require debug and it aborts when calling a mysql fu= nction.> >> > Thanks for any comment or help> >> > > -- > Sharique uddin Ah= med Farooqui> (C++/C# Developer=2C IT Consultant)> http://safknw.blogspot.c= om/> "Peace" is the Ultimate thing we want.> > -- > MySQL General Mailing L= ist> For list archives: http://lists.mysql.com/mysql> To unsubscribe: http:= //lists.mysql.com/mysql?unsub=3Dmgainty@stripped>=20 _________________________________________________________________ Windows Live=99: Keep your life in sync.=20 http://windowslive.com/explore?ocid=3DTXT_TAGLM_WL_t1_allup_explore_012009= --_13f9b4da-1299-4ec6-81e4-3cac880603f9_--