How do I debug a bad DLL calling convention error in MSAccess VBA code?
I made some changes to a function in a module and then got the error. How do a debug it to fi
I experienced and worked around this error using the .NET library for WinSCP from MS Access VBA.
What happened was:
UploadSomething for connecting to an SFTP server and uploading a file worked fine.UploadSomething changed the "resume support" option with this code: myTransferOptions.ResumeSupport.State = TransferResumeSupportState.TransferResumeSupportState_OffAfter the change, the code worked as desired. However in the code that called UploadSomething, Error 49 was thrown after the function had finished.
The error happened both when stepping through the code using the debugger and when executing at once outside of the debugger. Recompiling the project didn't work for me.
What did work was this: