Error 5023 (ERROR_INVALID_STATE) on WinHttpSendRequest in DLL

  • Thread starter Thread starter Dom Nelson
  • Start date Start date
D

Dom Nelson

Guest
Hey everyone,

I'm currently trying to chase down the reasoning behind an error I'm receiving while using WinHTTP. I'm using the example code here: WinHTTP Sessions Overview - Windows applications

This works fine from a standalone compiled exe but when I try to use this code in a DLL it always fails at the WinHttpSendRequest call. GetLastError returns error 5023 (ERROR_INVALID_STATE). I've tested this on standalone projects with no other code but I'm baffled why I'd receive this error only from within a DLL. This is driving my crazy.

Does anyone have any ideas why this is happening?


Cheers,
Dom

Continue reading...
 
Back
Top