View unanswered posts | View active topics It is currently Sat Aug 30, 2014 2:30 pm






Reply to topic  [ 2 posts ] 
RobotC 3.51 bug 8 
Author Message
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post RobotC 3.51 bug 8
When compiling the following code, I got a compiler error:
**Severe*:Internal Debug: Bad 'parmSourceStackULongVar' result from 'Dereferencing' point
Code:
#define GetData(p)  (GetRawData( \
                     &((p)->n1), \
                     &((p)->n2)))

typedef struct
{
    int n1;
    int n2;
} OBJ;

OBJ g_obj;

void GetRawData(int *p1, int *p2)
{
    *p1 = 1;
    *p2 = 2;
}

task main()
{
    GetRawData(&g_obj.n1, &g_obj.n2);
    GetData(&g_obj);
    nxtDisplayTextLine(0, "n1=%d", g_obj.n1);
    nxtDisplayTextLine(1, "n2=%d", g_obj.n2);
}


Mon Sep 24, 2012 12:19 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 602
Post Re: RobotC 3.51 bug 8
This is now resolved in the latest internal build of ROBOTC and will be included in the next BETA.

Thanks!

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Wed Oct 10, 2012 1:20 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.