Program crashes when compiled with VS2011 while runs fine compiled under VS2008

Hi,
I recently upgraded one of my projects (https://github.com/zsteve/bot-source-archiver) from VS2008 project to VS2011 Express.
I know a lot of the code is messy, as I learned a lot while working on it
Strangely, crashes only in Release mode, while not Running under debugger.
Will crash if I run un-attached and then attach to debugger though
It heavily uses the STL (std::list), and crashes here : tabpage.cpp:81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
				if(!includefiles.empty())
				{
					includefiles.clear();
				}
				{
					int count=listMain.GetCount();
					for(int i=0; i<count; i++)
					{
						crcAbleFile f;
						f.setpath(listMain.GetString(i, MAX_PATH));
						includefiles.push_back(f);
					}
				}
				break;
            }


any help would be appreciated...
Topic archived. No new replies allowed.