Thread: DateTimePicker crash

  1. #1
    Registered User
    Join Date
    Aug 2001

    Unhappy DateTimePicker crash

    I have a DateTimePicker control in a dialogbox.
    The variable is initialized as:

    m_Time = COleDateTime::GetCurrentTime();

    The problem is that when you click on the year part, to change
    the year manually, the system crashes with an exeption error.
    Changing the style 'allow edit' does not make any difference.

    Does anyone have an idea to solve this ?


  2. #2
    Registered User wayko's Avatar
    Join Date
    Sep 2001
    it might be that you are getting the current year from the computer and since you are trying to change the year manually you might be changing the current year on the computer itself therefore the error
    hello its me Wayko

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    >the system crashes with an exeption error

    Run the program in debug mode ( default ).

    When the exception pops up, choose Debug
    from the choices that come with the messagebox.

    Now look at the code and try to find out what went wrong.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hooking Crash?
    By Elysia in forum Windows Programming
    Replies: 9
    Last Post: 03-15-2008, 01:13 PM
  2. Can not debug a crash
    By hannibar in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2007, 10:02 AM
  3. datetimepicker in C# .net
    By Micko in forum C# Programming
    Replies: 0
    Last Post: 05-30-2004, 11:58 AM
  4. Dynamic array sizing causes crash
    By Mithoric in forum C++ Programming
    Replies: 3
    Last Post: 12-30-2003, 07:46 AM
  5. FYI: asctime(gmtime(&mytime)) = crash!
    By anonytmouse in forum C Programming
    Replies: 2
    Last Post: 09-29-2003, 02:24 AM