I appear to be encountering a very odd segfault. I have this method, and some odd output.
Methods:
Code:
string ZomBDashboard::GetString(string name)
{
if (src != NULL)
{
debugf("Getting string.. (Deref: %p;", src);
System451::Communication::Dashboard::ZomBTCPSource &ts = *((System451::Communication::Dashboard::ZomBTCPSource*)src);
debugf(" deref OK, con: %d)", ts.connected);
return ts.Get(name);//or, src->Get(name)
}
return "";
}
...
const char* System451::Communication::Dashboard::ZomBTCPSource::Get(string name)
{
debugf(". in, \n");
Synchronized sync (sink);
return curvalues[name];
}
Output:
Code:
Getting string.. (Deref: 0xsomememoryaddressthatappearsvalid; deref OK, con: 4)
data access
(generic vxworks error info)
and sometimes
Code:
Getting string.. (Deref: 0xsomememoryaddressthatappearsvalid;
data access
(generic vxworks error info)
I tried using Debug Kernel Task, but WR just paused updating all the panels to new info, so it was essentially useless.
The robot code is attached in MyRobot.cpp and the C++ Bindings folder. The dashboard is Dashboard.exe and ZomB.dll (you might have to launch it twice), and when all is working, moving the slider on the left should move the slider on the right.
if you feel like compiling ZomB, download all the code (in the trunk) at
http://firstforge.wpi.edu/integratio...ystem=exsy1002 and copy the DashboardDataHub.cs in the zip into ZomBdll\NetAndDataProcessing