I'm not very familiar with the MFC environment, but the error "Unhandled exception at 0x00550573 (ogrinfo.exe) in MitabTest.exe" doesn't seem to make much sense to me. I initially thought it could be that you included the wrong files from MITAB when trying to setup your project in visual studio.
The files that you should need to include in your Visual Studio project are those listed in the TAB_OBJS variable in mitab-1.x.y/mitab/makefile.vc. BTW, were you able to compile the mitabc_test.c program using the makefile? That would be the first step... and then try to compile your small test program the same way. Daniel Tim Smith wrote: > I have tried with the 'C' interface and get exactly the same error. > Any ideas what I'm doing wrong? > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of > Tim Smith > Sent: 24 November 2005 11:42 > To: [email protected] > Subject: [mitab] Unhandled exception error on execution > > > Hi, > > I'm new to mitab. > > I've compiled the latest version for windows and have created the > most basic MFC application. > > When I click a button, the following code is executed: > > TABFile* pTab = new TABFile(); > int ret = pTab->Open("dummy.tab", "w"); > > When executing, the Open command throws an exception. The dialog box > says > "Unhandled exception at 0x00550573 (ogrinfo.exe) in MitabTest.exe: > 0xC0000005: Access violation writing location 0x00507230." > > The callstack is in cpl_error.cpp, in the method CPLErrorReset(). The > error is occuring when trying to execute this line gnCPLLastErrNo = > CPLE_None; > > Any ideas why this is happening? > What is ogrinfo.exe? I put it in my project directory when it > complained it couldn't find it. > > Cheers > > Tim > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > > > > > > Yahoo! Groups Links > > > > > > > -- ------------------------------------------------------------ Daniel Morissette [EMAIL PROTECTED] DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/dkFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/mitab/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
