GAURAVGUPTA9
2nd July 2003, 16:38
hi
when i am using inter process communication. but i cant receive messge using recv.message() function. i use two users one can receive but other cant... ne help???????
Regards
Gaurav
NPRao
2nd July 2003, 20:55
Gaurav,
What is the value of the e ?
recv.message() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_interprocess_communication_os_level_recv_message)
Return values
This returns the sender key. It returns -1 if an error occurs (the predefined variable e contains the error number).
GAURAVGUPTA9
3rd July 2003, 07:18
hi Prashanth
the recv.message() is returning -1 and e is 0. but i am using same logins at two systems and one user is receiveing the messages but one is not....
NPRao
3rd July 2003, 07:56
Gaurav,
Please complete your user profile with regards to the Baan software version, Database software and OS version. This will help other members when diagnosing your problem.
If you are on the Unix system, then check if you configured the .rhosts file for that user in the home directory.
Also set up the Remote User Data for that login.
GAURAVGUPTA9
3rd July 2003, 12:30
we r on win2000 and baanIV c4
Regards
Gaurav
NPRao
29th October 2003, 22:34
Gaurav,
I found some information the relase notes of 7.3.a02 porting set for Reger, there might be some fix for your BaaN version too.
MaintReger: # 14292 (BDUX7991): option 2 for open.message does not a correct
check.
Date: Fri, 7 Jun 2002 11:23:50 +0200
Created on: MaintBaanIVc
Type: bugfix
Problem Description (Customer terms)
According to the Baan help, open.message(...) should return -1 and not create a new mailbox when the parameter action is 2 and a mailbox does not already exist. This is not how open.message(...) seemed to be working
Problem Description (Technical terms)
When executing this function with the option 2 there should be a check if the mailbox is already opend, if not the value -1 should be returned, however this is not done, there is only a check if the file is present.
Test Procedure
execute the next command:
function main()
{
long ret
string in.queue(132)
in.queue = creat.tmp.file$(bse.tmp.dir$())
ret = open.message(1, in.queue, 2)
ret = open.message(1, in.queue, 0)
ret = open.message(1, in.queue, 2)
if len(in.queue) <= 128 then
ret = seq.unlink(in.queue)
endif
}
the ret should be -1 the first, the next time a value should be returned, and the last time the same value should be returned
Motive source
DF:208185
Hope this helps you.