It is designed to access (in async mode) the file 'PixNameLatestVersion' on 'www.pixname.com//pixname'
Code: Select all
int NewVersion::CheckNewVersion(...)
{
wxInputStream* in_streamLatestVersion = NULL;
wxHTTP* http = new wxHTTP();
http->SetTimeout( 5 ); // seconds
if( http->Connect("www.pixname.com", 80 ))
{
in_streamLatestVersion = http->GetInputStream("//PixName//PixNameLatestVersion");
if (in_streamLatestVersion != NULL && http->GetError() == wxPROTO_NOERR)
{ // file present - process it
}
else
{ // file absent
return wxNOT_FOUND;
}
}
return wxID_EXIT;
}
(lldb) r
There is a running process, kill it and restart?: [Y/n] y
Process 13204 exited with status = 9 (0x00000009)
Process 13227 launched: '/Users/raananbarzel/ProjetsDB/Pixname4/OSXDebug/PixName4.app/Contents/MacOS/PixName4' (x86_64)
Process 13227 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 8.1
frame #0: 0x00000001001e3bd6 PixName4`wxHTTP::GetInputStream(this=0x00000001016e0e90, path=0x00007ffeefbfd2f8) at http.cpp:516:23
513 if (method.empty())
514 method = m_postBuffer.IsEmpty() ? wxS("GET"): wxS("POST");
515
-> 516 if (!BuildRequest(path, method))
517 return NULL;
518
519 inp_stream = new wxHTTPStream(this);
Target 0: (PixName4) stopped.
(lldb) n
Process 13227 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
frame #0: 0x00007fff736c35ad libsystem_pthread.dylib`pthread_mutex_lock
libsystem_pthread.dylib`pthread_mutex_lock:
-> 0x7fff736c35ad <+0>: cmpq $0x4d55545a, (%rdi) ; imm = 0x4D55545A
0x7fff736c35b4 <+7>: jne 0x7fff736c3625 ; <+120>
0x7fff736c35b6 <+9>: movl $0x1c0, %eax ; imm = 0x1C0
0x7fff736c35bb <+14>: andl 0xc(%rdi), %eax
Target 0: (PixName4) stopped.
(lldb)
I am not very knowledgeable about HTTP or about OSX/LLDB. Can anyone make anything out of this?