Archived Forum Post

Index of archived forum posts

Question:

Chilkat UWP (http) crashes

Apr 22 '16 at 11:34

Hi,

i grabbed a Windows IoT sample collection from microsoft from this place here:

https://ms-iot.github.io/content/en-US/win10/samples/ConsoleApp.htm

(this is a universal c++ application)

and started using that as sort of a base, i added the chilkat lib (Version 9.5.0.58 PreRelease 2, Latest commit f68175b), added a small ckstring example, got both x64 and arm compiled (i couldn't execute arm cause no hw avail yet)... x64 was working as expected.

anyway i wanted to use the http component (i copy & pasted from the documenation) and whenever i call the actual transaction, it crashes inside.

I'd really like to use chilkat for the job, so maybe you can shed some light on this. You'll find the callstack below...

Thank you in advance!

KernelBase.dll!00007ff92e861f28()   Unknown
vcruntime140.dll!00007ff928234582() Unknown
vccorlib140.dll!00007ff8fcbabae5()  Unknown
MemoryStatus.exe!__abi_WinRTraiseException(long)    C++
MemoryStatus.exe!Windows::Networking::HostName::HostName(class Platform::String ^)  C++
MemoryStatus.exe!ckrtSocket2::ckrtConnect(class XString &,int,bool,int,class chilkat::StringBuffer &,unsigned int,class SocketParams &,class LogBase &) C++
MemoryStatus.exe!ChilkatSocket::connectSocket(class chilkat::StringBuffer const &,int,class _clsTcp &,class SocketParams &,class LogBase &) C++
MemoryStatus.exe!Socket2::connect2(class chilkat::StringBuffer const &,int,bool,class _clsTls &,class SocketParams &,class LogBase &)   C++
MemoryStatus.exe!Socket2::socket2Connect(class chilkat::StringBuffer const &,int,bool,class _clsTls &,unsigned int,class SocketParams &,class LogBase &)    C++
MemoryStatus.exe!LoggedSocket2::socket2Connect(class chilkat::StringBuffer const &,int,bool,class _clsTls &,unsigned int,class SocketParams &,class LogBase &)  C++
MemoryStatus.exe!HttpConnection::openHttpConnection(class HttpControl &,class _clsTls &,class chilkat::StringBuffer const &,int,bool,bool,class SocketParams &,class LogBase &) C++
MemoryStatus.exe!HttpConnection::fullHttpRequest(bool,int,class chilkat::StringBuffer const &,int,bool,bool,class HttpControl &,class _clsTls &,class chilkat::StringBuffer &,class chilkat::StringBuffer &,class chilkat::StringBuffer &,class HttpRequestData &,class HttpResult &,class DataBuffer &,class SocketParams &,class LogBase &)   C++
MemoryStatus.exe!HttpConnection::a_synchronousRequestTry(class HttpConnection *,class HttpConnPool &,class HttpControl &,class _clsTls &,class chilkat::StringBuffer const &,int,bool,bool,class _ckHttpRequest &,class HttpResult &,class DataBuffer &,class SocketParams &,class LogBase &)   C++
MemoryStatus.exe!HttpConnection::a_synchronousRequest(class HttpConnPool &,class HttpControl &,class _clsTls &,class chilkat::StringBuffer const &,int,bool,bool,class _ckHttpRequest &,class HttpResult &,class DataBuffer &,class SocketParams &,class LogBase &) C++
MemoryStatus.exe!ClsHttp::fullRequest(class chilkat::StringBuffer const &,int,bool,bool,class _ckHttpRequest &,class HttpResult &,class DataBuffer &,bool,class ProgressEvent *,class LogBase &)    C++
MemoryStatus.exe!ClsHttp::fullRequestText(char const *,class XString &,class XString &,class XString &,class XString &,bool,bool,class XString &,bool,class ProgressEvent *,class LogBase &)    C++
MemoryStatus.exe!ClsHttp::putText(class XString &,class XString &,class XString &,class XString &,bool,bool,class XString &,bool,class ProgressEvent *,class LogBase &) C++
MemoryStatus.exe!ClsHttp::PutText(class XString &,class XString &,class XString &,class XString &,bool,bool,class XString &,class ProgressEvent *)  C++
MemoryStatus.exe!CkHttp::PutText(char const *,char const *,char const *,char const *,bool,bool,class CkString &)    C++
MemoryStatus.exe!CkHttp::putText(char const *,char const *,char const *,char const *,bool,bool) C++

MemoryStatus.exe!ChilkatSample() Line 67 C++ MemoryStatus.exe!main(int argc, char * * argv) Line 169 C++ [External Code]


Answer

Thanks, I'll see if I can reproduce the problem..