Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(SOLVED) Send() Problems IDE 2.0
#1
Hello,

I recently upgraded to the latest IDE and firmware (IDE 2.0 with Firmware 1.6.1.1).

My [Background C++] application was hanging and seg-faulting and I was not getting any Send() messages (These may not be related). I like to use the unsolicited messages as a debugging tool when things go south.

I created a simple C application in the IDE which initialized the library and sent some messages through printf() and Send(). I was not able to get the Send() function to work properly.

I did verify that the unsolicited messages window in the application was started and online (several times!). I've attached the test code I'm using:

Code:
#include <gplib.h>   // Global Gp Shared memory pointer
//-------------------------------------------------------------
// The following is a projpp created file from the User defines
//-------------------------------------------------------------
#include "../../Include/pp_proj.h"

//Main entry point to program that also sets up threads and inits libraries.
int main(void)
{
    printf("\nAt Very Beginning\n");
    /* Avoids memory swapping for this program */
    mlockall(MCL_CURRENT|MCL_FUTURE);
    InitLibrary();                    //Init DT library.
    printf("PPMAC is initialized.\n");
    Send(1,"This is a test.");
    CloseLibrary();
}

Please let me know if there are any ideas to try.

Thanks,
KEJR
Reply
#2
Sometimes its the simple things that get you. The new IDE installation didn't have the send buffers enabled that I was using (Buffers #1 and #2). I don't recall if prior versions had 0-4 as a
default or if that's what I had set up originally.

I was about to run sendgetsends over SSH when it occurred to me that all buffers weren't enabled.

Thanks,
KEJR
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)