Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2003

    what is the meaning of leave code= - 2147483647

    what is the meaning when leave code= - 2147483647

    when i try to do IAS querying

    TIASQuery querybuf(aClassName,aAttributeName,aRemDevAddr);

    TRequestStatus stat1,stat2;

    TIASResponse results;



    Thanks in advance!

    Jack lee


  2. #2
    Regular Contributor
    Join Date
    Jun 2003
    Cheshire, Great Britain
    I think you need to wait for the Query() function to finish - I believe this number is the decimal representation of KReqPending or something similar (I forget the name). This function appears to be an asynchronous function, so immediately after it (unless you handle this as an active object) you need a User::WaitForRequest(stat2) to make the program pause until it finishes. Then stat2 should not still be set to pending. At the moment you set the function off, then immediately print the status before you've allowed the function to finish.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Yes. after adding User::WaitForRequest(stat2)
    the leave error don't happen any more.

    Thank you very much!
    Jack lee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts