Bug in calling a ref toinside a library?

 
The following code works when placed in the same module but if you place this in a library and call it even with the prototype set correctly it does not work.

void median(string symbol, double& medianU, double& medianL)
{
if (symbol == "EURUSD")
{
medianU = 0.45;
medianL = 0.46;
}
else
{
medianU= 0.57;
medianL = 0.58;
}

}


The only reason I can think of is that thee is a bug when passing ref types across libraries.

Can someone from Metaquote verify if this is true?