i am calling a true dll from vb6. the dll apparently has some problems. it starts screwing up and wont start working again till the computer is rebooted. It is always at different places and after different amounts of time. It happens on several computers.

I declare the offending function like this:

Code:
Private Declare Function n Lib "nnnn.dll" Alias "nnnn" (ByVal lng As Long) As lng_return


Public Function nnnn(ByVal lng As Long) As lng_return

    nnnn = n(lp)

End Function
Is there anyway to destroy this function and redeclare it when this happens?