 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: rslvsp function returns null</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 12:21:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: GraceP</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114964</link>
		<dc:creator>GraceP</dc:creator>
		<pubDate>Tue, 08 Jan 2013 00:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114964</guid>
		<description><![CDATA[I tested the splitting the cast and the char pointer has a valid pointer :&#160;&#160;&#160;
static char * pointer = NULL ; 
{  
#pragma exception_handler(errorLabel,0,0,_C2_ALL,_CTLA_HANDLE)  
void * a = (void *)rslvsp(_Usrspc,&quot;USRSPC01&quot;, &quot;QTEMP&quot;, _AUTH_ALL)  ;  
      pointer  = (char *) a;  
#pragma disable_handler  
} ]]></description>
		<content:encoded><![CDATA[<p>I tested the splitting the cast and the char pointer has a valid pointer :&nbsp;&nbsp;&nbsp;<br />
static char * pointer = NULL ;<br />
{<br />
#pragma exception_handler(errorLabel,0,0,_C2_ALL,_CTLA_HANDLE)<br />
void * a = (void *)rslvsp(_Usrspc,&#8221;USRSPC01&#8243;, &#8220;QTEMP&#8221;, _AUTH_ALL)  ;<br />
      pointer  = (char *) a;<br />
#pragma disable_handler<br />
} </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GraceP</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114958</link>
		<dc:creator>GraceP</dc:creator>
		<pubDate>Mon, 07 Jan 2013 21:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114958</guid>
		<description><![CDATA[My error, I thought that the cast between pointers was good and clear, but it is &#160;when I do the cast when is returning NULL , it is weird, &#160;when I call the program from another remote programs it returns NULL but if I call into an interactive session the pointer is correct. &#160; I guess it is not the way to manage the system pointer&#160;

static char * pointer = NULL ; f() {
#pragma exception_handler(errorLabel,0,0,_C2_ALL,_CTLA_HANDLE) 
      pointer  = (char *)((void *)rslvsp(_Usrspc,&quot;USRSPC01&quot;, &quot;QTEMP&quot;, _AUTH_ALL) ); 
#pragma disable_handler 
errorLabel: 
... 
} 
]]></description>
		<content:encoded><![CDATA[<p>My error, I thought that the cast between pointers was good and clear, but it is &nbsp;when I do the cast when is returning NULL , it is weird, &nbsp;when I call the program from another remote programs it returns NULL but if I call into an interactive session the pointer is correct. &nbsp; I guess it is not the way to manage the system pointer&nbsp;</p>
<p>static char * pointer = NULL ; f() {<br />
#pragma exception_handler(errorLabel,0,0,_C2_ALL,_CTLA_HANDLE)<br />
      pointer  = (char *)((void *)rslvsp(_Usrspc,&#8221;USRSPC01&#8243;, &#8220;QTEMP&#8221;, _AUTH_ALL) );<br />
#pragma disable_handler<br />
errorLabel:<br />
&#8230;<br />
} </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114518</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Sat, 22 Dec 2012 00:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114518</guid>
		<description><![CDATA[First, do you have evidence that using QUSPTRUS causes any significant delay? Next, you say this:
&#160;
&lt;EM&gt;Documentation for rslvsp points: &quot;A null pointer value means the object was found in a machine context.&quot;&lt;/EM&gt;
&#160;
But as far as I know, that is only in the MI rslvsp documentation and you are using the rslvsp() MI library procedure in C. Those are not the same. The rslvsp() MI library procedure has no such statement.
&#160;
A null pointer might be returned from rslvsp() for a number of reasons, but there&#039;s no way to know what that might mean without seeing more of your program. Especially, how are you handling errors?
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>First, do you have evidence that using QUSPTRUS causes any significant delay? Next, you say this:<br />
&nbsp;<br />
<em>Documentation for rslvsp points: &#8220;A null pointer value means the object was found in a machine context.&#8221;</em><br />
&nbsp;<br />
But as far as I know, that is only in the MI rslvsp documentation and you are using the rslvsp() MI library procedure in C. Those are not the same. The rslvsp() MI library procedure has no such statement.<br />
&nbsp;<br />
A null pointer might be returned from rslvsp() for a number of reasons, but there&#8217;s no way to know what that might mean without seeing more of your program. Especially, how are you handling errors?<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GraceP</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114513</link>
		<dc:creator>GraceP</dc:creator>
		<pubDate>Fri, 21 Dec 2012 22:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114513</guid>
		<description><![CDATA[With QUSPTRUS function my program correctly return a pointer to my user space, but no matter if I change to _Program I obtain a null pointer with rslvsp even if the object is in there, we use the rslvsp due to performance reasons.The call for rslvsp is just:&#160;_SYSPTR sysP = rslvsp(_Usrspc,&quot;USRSPC01&quot;, &quot;QTEMP&quot;, _AUTH_ALL)  ; 
Can you explain me a little bit about that context machine ? &#160;( because is the only clue that I have )&#160;]]></description>
		<content:encoded><![CDATA[<p>With QUSPTRUS function my program correctly return a pointer to my user space, but no matter if I change to _Program I obtain a null pointer with rslvsp even if the object is in there, we use the rslvsp due to performance reasons.The call for rslvsp is just:&nbsp;_SYSPTR sysP = rslvsp(_Usrspc,&#8221;USRSPC01&#8243;, &#8220;QTEMP&#8221;, _AUTH_ALL)  ;<br />
Can you explain me a little bit about that context machine ? &nbsp;( because is the only clue that I have )&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114512</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Fri, 21 Dec 2012 21:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rslvsp-function-returns-null/#comment-114512</guid>
		<description><![CDATA[We need to see more of the programming to know if any part of your rslvsp() call is valid. However, if you just want a pointer for your user space, use the &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2Fqusptrus.htm&quot; rel=&quot;nofollow&quot;&gt;Retrieve Pointer to User Space (QUSPTRUS) API&lt;/a&gt;. -- Tom]]></description>
		<content:encoded><![CDATA[<p>We need to see more of the programming to know if any part of your rslvsp() call is valid. However, if you just want a pointer for your user space, use the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2Fqusptrus.htm" rel="nofollow">Retrieve Pointer to User Space (QUSPTRUS) API</a>. &#8212; Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.023 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 12:49:44 -->