Gilles,
good thing-- I just got gdb installed and I ended up getting a Segmentation
fault
0xb7e38f0d in SDLNet_CheckSockets () from /usr/lib/libSDL_net-1.2.so.0
In my makefile, how would I compile for the posix skin for Xenomai? I haven't
explicitly specified a skin.
I'm using rt_tasks and timers, synchronous messaging, as well as message queues
considerably throughout my application now and don't want to lose any of that
functionality.
Would MlockAll cause a problem potentially? It appears to be using a dynamic
library.
The error appears to occur in this snippet of code
int numready = SDLNet_CheckSockets(socketSet,0);
if( numready == -1 )
{
printf("SDLNet_CheckSockets: %s",SDLNet_GetError());
return -1;
}
Thank you,
Josh
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[EMAIL PROTECTED]
Sent: Thu 5/29/2008 9:21 AM
To: Karch, Joshua
Cc: [email protected]
Subject: Re: [Xenomai-help] Xenomai and SDL NET sockets 1.2
On Thu, May 29, 2008 at 5:44 AM, Karch, Joshua <[EMAIL PROTECTED]> wrote:
>
> To whom it may concern::
> we are interested in merging our real-time tasks with Xenomai with a
> low-priority RT_TASK that uses SDL-NET to communicate from real-time tasks
> over ethernet. Unfortunately, running an RT_TASK with SDL-NET seems to have
> caused a tough-to-identify segmentation fault.
What does gdb say ?
> The problem I am having is
> that I have been asked to add another team-member's non-realtime work which
> uses networking sockets within a low-priority RT Task. That code uses SDL
> NET 1.2
>
> Is it possible to use SDL NET for TCP/IP communication within an RT-Task, or
> is it typically difficult to adapt a program communicating over TCP/IP into
> RTnet?
First you have to make sure that your program use the services it
think it uses. Do you compile your application for the posix skin ?
Does this SDL NET (library I assume) come as a dynamic shared object ?
or as a static archive ?
--
Gilles
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help