seeing as im having problems with using the .insert and .find in seperate functions (and it works when i put both in 1 function) could the problem be the loading and unloading of the dll?

if i call the storekey function to store the key for the specified channel, and the dll unloads, would the dll loose all its contents?

its the only reason i can think of, why the getkey doesnt return the value, maybe because the dll is unloading?