Today i obesrved 1 peculiar thing in my vb project. it's not a serious problem actually, but surprised me.

From the exe of my application i can access 1 public function defined in the .bas module.

but from the vb ide, i can't access the same function, it gives some memory exception failing all my expert(!) error handlers.

if i define the same function in the form module, both exe and project(vb ide) can access that.

any idea y this can happen?