You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Nathanael Noblet <na...@gnat.ca> on 2004/11/09 03:32:57 UTC

apr_hash_get

Hello,
	I have an application that is being developed using APR. I'm 
attempting to use apr_hash_set/get for a hash of functions. I had it 
working, it doesn't seem to want to anymore. I realize it sounds like I 
changed something but I'm 99% positive that I haven't. Here's the weird 
thing, I get NULL returned from the apr_hash_get, but if I iterate 
through the hash with apr_hash_next(), I find my key/value?

	Anything I should look for as errors? I've gone over it a few times 
but can't figure out what could be causing the mismatch.

-- 
Nathanael D. Noblet
Gnat Solutions
204 - 131 Gorge Road E
Victoria, BC V9A 1L1

T/F 250.385.4613

http://www.gnat.ca/


Re: apr_hash_get

Posted by Branko Čibej <br...@xbc.nu>.
Nathanael Noblet wrote:

> Hello,
>     I have an application that is being developed using APR. I'm 
> attempting to use apr_hash_set/get for a hash of functions. I had it 
> working, it doesn't seem to want to anymore. I realize it sounds like 
> I changed something but I'm 99% positive that I haven't. Here's the 
> weird thing, I get NULL returned from the apr_hash_get, but if I 
> iterate through the hash with apr_hash_next(), I find my key/value?
>
>     Anything I should look for as errors? I've gone over it a few 
> times but can't figure out what could be causing the mismatch.

Without seeing your code, it's hard to say what could be wrong, except 
that it's most probably not APR's fault, because the hash thingy hasn't 
changed in quite a while.

-- Brane