Welcome, Guest. Please login or register.

Author Topic: Problem tagging (typifing) a message and type nt_ReplyedMessage  (Read 2119 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas


You could try to use the ln_Name field. I doubt that it is used by the IORequest.

However, what you try to do is more than suspect. Device I/O is a private issue, you should only use WaitIO to remove messages from the port. If you do it with GetMsg, some parts of the I/O protocol might not get done. The easiest is to use a different port for each IORequest.

Bye,
Thomas

Offline Thomas

Re: Problem tagging (typifing) a message and type nt_ReplyedMessage
« Reply #1 on: August 31, 2005, 07:07:41 PM »
Quote

Well I could use Wait and then WaitIO right ?


Yes. But WaitIO expects that the message it fetches from the port is the IORequest you gave it as an argument. You cannot Wait, then GetMsg to check what kind of message arrived and then WaitIO to complete the request.

Bye,
Thomas

Offline Thomas

Re: Problem tagging (typifing) a message and type nt_ReplyedMessage
« Reply #2 on: September 02, 2005, 07:06:15 PM »

You *can* do:

SendIO();
Wait() or WaitPort();
WaitIO(); /* does not wait again, but fetches the IORequest from the port */

You can *not* do:

SendIO();
Wait() or WaitPort();
GetMsg();
WaitIO();

Bye,
Thomas