text: I have written a program in Visual C++ Express. I have finally finished and that's why I wanted a release version of my program. To give to some of my friends.
  There was no problem when I used the compiler to create the debug version. But when I run the release version it gives me an error after having run a while.
  I get this error:
  Unhandled exception at 0x67313482 (msvcp100.dll) in test.exe: 0xC0000005: Access violation reading location 0x00000005.
  It stops working at this return.
  dateorder __CLR_OR_THIS_CALL date_order() const { // return date order code return (do_date_order()); }
  I haven't been calling this function directly. I have no idea why this would be used.
  I am just a starting programmer and this is the first time I've used Visual C++. So it might be a beginners mistake. Hopefully I can fix this easily.
  I tested it on win7 32bit and win7 64bit and both had this problem.
  Edit: when it stops Visual studio says this is the value of
  _Days ,
  _Monts and
  _Dateorder :
  CXX0030: Error: expression cannot be evaluated.
  Edited by Jelte12345: n/a