Thread: Program crashed

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    51

    Program crashed

    Code:
    MNode::MNode(CMenuItem* item,unsigned int index, MNode* prev, MNode* next ){
    _next =  next;
    _prev = prev;
    _item = item;
    _index = index;
    }
    
    
    CMenu& CMenu::add(const char* Text, bool selected){
    		CMenuItem C(selected,_format, Text, 1,1,20);     
    		
    		MNode Node(&C,_cnt,0,0);  // Crash because of this.
    return *this;
    }
    It doesnt compile. Just want some help while I am trying to figure that out.

    Thanks

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    51
    nvm. I got it fixed.
    the problem was somewhere else .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error free code but program crashed ???
    By aykuluk in forum C Programming
    Replies: 7
    Last Post: 08-14-2011, 08:01 AM
  2. Program crashed, no compilation errors
    By kaopei in forum C Programming
    Replies: 1
    Last Post: 11-20-2010, 06:44 AM
  3. using fprintf crashed my program
    By kiros88 in forum C Programming
    Replies: 4
    Last Post: 11-08-2010, 01:14 PM
  4. Auto shutdown of crashed program...
    By phil_drew in forum Windows Programming
    Replies: 1
    Last Post: 04-24-2004, 12:48 AM
  5. My Program Crashed help!!!
    By St0rmTroop3er in forum C++ Programming
    Replies: 6
    Last Post: 09-05-2003, 04:25 PM