Chris Rose <firstname.lastname@example.org> wrote:
I know that what I’ve done there is wrong. It passes a pointer value of 16,
instead of a pointer to the value of 16. Newbie mistake!
However, I still don’t know why the resource manager didn’t acknowledge
receiving the message.
Probably got an EFAULT during the message transfer, what’s the “ret” value
show? I’m willing to bet that *16 isn’t a valid address
“Chris Rose” <> email@example.com> > wrote in message
news:a3ucib$rr4$> firstname.lastname@example.org> …
I have a resouce manager that seems to be working.
When I do this:
ret=devctl(fd, POS_DEVCTL_SETRES, &uiRes, sizeof(uiRes), NULL);
The resource manager gets the message (printf statement tells me), and it
does what it’s suppose to do.
However, if I do this:
ret=devctl(fd, POS_DEVCTL_SETRES, (int*)16, sizeof(int), NULL);
The resource manager never gets the message.
Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.