snerting
Programmer
- Oct 20, 2005
- 52
I have a wierd case going on right now. I'm sorting it under X-files..
I have a form which references several modules in a MDA. Now, at one of the functions in this MDA, the code breaks when trying to exit from that function ("Form Exit"), stating "Runtime error '49'. Bad DLL calling convention". Thing is, neither that function, nor the code calling it ever calls DLL's (other than those access might be calling by itself). I successfully step through the entire function without problems, but as I said, when I step out of the function it borks. The line calling it doesn't even apply the return value to anything, and the function is called properly.
Now, I have tried several things. I tried compact and repairing the .mda but that didn't work. The strangest thing is that when the form is loaded, and the functionality causing this is used, it borks. If I create a new record and hit the button, it still works. However, if I go into code-view and comment out the contents of the function, save, compile, comment it back in, save, compile... IT WORKS!! When I restart the form, it goes back to the same error.
Anyone?
I have a form which references several modules in a MDA. Now, at one of the functions in this MDA, the code breaks when trying to exit from that function ("Form Exit"), stating "Runtime error '49'. Bad DLL calling convention". Thing is, neither that function, nor the code calling it ever calls DLL's (other than those access might be calling by itself). I successfully step through the entire function without problems, but as I said, when I step out of the function it borks. The line calling it doesn't even apply the return value to anything, and the function is called properly.
Now, I have tried several things. I tried compact and repairing the .mda but that didn't work. The strangest thing is that when the form is loaded, and the functionality causing this is used, it borks. If I create a new record and hit the button, it still works. However, if I go into code-view and comment out the contents of the function, save, compile, comment it back in, save, compile... IT WORKS!! When I restart the form, it goes back to the same error.
Anyone?