Re: Not able to deliver more than 5 parameters in method (from method provider )

Venkateswara R Puvvada <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <OFBA0DC138.B52B8CC0-ON65257862.00404670-65257862.00407CB9@in.ibm.com>
Manjunath,

Your method provider implementation seems unusual to me. It seems you are 
trying to deliver the same output parameters multiple times. However there 
is a bug in Pegasus wrt output parameters handling. I have opened the bug.

http://bugzilla.openpegasus.org/show_bug.cgi?id=8960

-Venkat




From:   "Manjunath Marlabeeti" <[email protected]>
To:     <[email protected]>
Date:   29/03/2011 10:07
Subject:        Not able to deliver more than 5 parameters in method (from 
method provider )



Hi,
 
I have written method in method provider.
But that method not returning more than 5 parameter values. After doing 
debugging  I found the below lines where exactly I am getting the crash.
 
                for(unsigned int ui=0;ui<vectPCIInfo->size();ui++)
                {
 
handler.deliverParamValue(CIMParamValue("strManufacturer",CIMValue(String(vectPCIInfo->at(ui)->strManufacturer.c_str()))));
 
handler.deliverParamValue(CIMParamValue("strCompatableIDs",CIMValue(String(vectPCIInfo->at(ui)->strCompatableIDs.c_str()))));
 
handler.deliverParamValue(CIMParamValue("strDescription",CIMValue(String(vectPCIInfo->at(ui)->strDescription.c_str()))));
 
handler.deliverParamValue(CIMParamValue("strBus",CIMValue(String(vectPCIInfo->at(ui)->strBus.c_str()))));
 
handler.deliverParamValue(CIMParamValue("strClass",CIMValue(String(vectPCIInfo->at(ui)->strClass.c_str()))));
 
handler.deliverParamValue(CIMParamValue("strHWIDS",CIMValue(String(vectPCIInfo->at(ui)->strHWIDS.c_str()))));
                }
                handler.deliver(Uint32(uiretVal));
                handler.complete();
 
In the for loop 6 parameter values are getting delivered if comment any of 
the line (i.e only with 5 parameters) cimserver is not getting crashed.
If I use 6 parameter values to deliver, cimserver is crashing with the 
below error
 
Assertion failed: _request.get() != 0, file 
C:/pegasus/src\Pegasus/Common/AsyncOpNode.h, line 109
 
This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
 
In my application I need to return 6 parameter values so please suggest me 
how to proceed to solve crash problem.
 
Thanks,
Manjunath M
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.