View unanswered posts | View active topics It is currently Fri Oct 09, 2015 6:03 pm

Reply to topic  [ 2 posts ] 
RobotC Crash Report when 
Author Message

Joined: Sat Apr 23, 2011 12:29 am
Posts: 12
Post RobotC Crash Report when
I know that this is not possible, but it crashes the program when i do this:

string Msg = "";
Msg = Msg + DataRec[k];

In my program:
task main(){

  ubyte DataRec[255];
  int msgSize = 0;
  string Msg = "";


  //while(bBTRawMode == 0){PlayTone(1,300); wait10Msec(1);}


    writeDebugStreamLine("---------- Messages\n");
    for(int i=0; i<=11; i++){
      msgSize = cCmdMessageGetSize(i);
      writeDebugStreamLine("(%i) Mailbox %i", msgSize, i+1);
        if(msgSize > 0){
          cCmdMessageRead(DataRec, msgSize, i);

          for(int k=0;k<msgSize; k++){
            Msg = Msg + DataRec[k];

          writeDebugStream("%s", Msg);

      //nxtReadRawBluetooth(DataRec, 5);
      //writeDebugStreamLine("%i-%i-%i-%i-%i", DataRec[0],DataRec[1],DataRec[2],DataRec[3],DataRec[4]);


Just a report!

Sat Dec 31, 2011 5:41 pm
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3589
Location: Rotterdam, The Netherlands
Post Re: RobotC Crash Report when
Would you mind sending this to Thanks!

- Xander

| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]

Sat Dec 31, 2011 6:16 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.