Hello, and greetings to those I may be speaking with in this thread over time. I present to you a problem, rather fringed and minimal and troublesome.
First, I'll start by saying that I don't really consider myself a programmer so much as I do an enthusiast who now, suddenly, employed to learn and write in C++ for software development.
Unfortunately the majority of what I'll be talking about here is heavily limited in disclosure so, for that I apologize.
Onward to the problem;
I'm working in the development of an addition to Autodesk MotionBuilder for use at the office. We're writing the entire item in C++ using the OpenRealitySDK includes and libraries. The snag I've encountered is an inability to update a textfield (FBEdit) with live data. In this case, the position of an object in the scene. Just as well, we're working without a debug console which is resulting in a lot of blind guesses between the compile and the crash.
Primarily my question would be;
Could a log file be employed to monitor variables, software problems, memory leaks (this is the most likely one I believe). Where we could essentially watch MotionBuilder in its dying moments to create a reasonable notion of what's happening.
A modified example of the code presently is:
void ORDeviceInputLayout::InterfaceEventListener (HISender pSender, HKEvent pEvent){
FBEventInput MyEvent(pEvent);
if(MyEventTrigger.State){
MyTextField.Enabled = true;
MyTextField.Refresh(true);
while(MyEventTrigger.State){
MyTextField.Refresh(true);
MyTextField.Text = FBEventInput(pEvent).X.AsString();
}
}
else{
MyTextField.Enabled = false;
MyTextField.Text = "INNACTIVE";
}
}
That's the bulk of it, where MyTextField is the textfield in question already added to the interface and MyEventTrigger represents the checkbox to enable and disable the event.
I know it's a stretch that people here may even know the ORSDK but I could use any help or suggestions you may have, even if it's a finger pointing to a logfile tutorial.
I won't stop learning.
Documentation for the OpenRealitySDK for MotionBuilder 2012 is available here.