Any way you can make SearchHost for sockets (not just BT) support multithreading as well? SearchHost takes 1004 ms to let it try connect to an unavailable server (i.e. GPRS failed or server down), blocking my GUI. Considering it tries to reconnect every 5 sec the user experience becomes unacceptable. I tried putting SearchHost in a new thread, but the Edge framework will always crash the main thread after (a few) SearchHost's in the seperate thread:
VS Studio 2008 call stack:
As a result I had to make my own socketclient, but I much rather use the multi-OS Edge code (I write for PPC,WM and iPhone). I haven't tested if SearchHost blocks under iPhone, but I asume so.
VS Studio 2008 call stack:
- Code:
xxxxxxx.exe!ecNetDestroySocket() + 0x5 bytes C++
xxxxxxx.exe!ClassEConnect::Disconnect() + 0x79 bytes C++
xxxxxxx.exe!ecDspUnLockNativeSurface() + 0x17 bytes C++
xxxxxxx.exe!ClassEConnect::CheckSockets() + 0x35e bytes C++
xxxxxxx.exe!ClassEdge::MainLoop() + 0x2a bytes C++
xxxxxxx.exe!ClassEdge::OnCoreEvent() + 0x227 bytes C++
xxxxxxx.exe!ecOnEvent() + 0x91 bytes C++
xxxxxxx.exe!ecInstStartLoop() + 0x8a bytes C++
xxxxxxx.exe!ClassEdge::StartDisplay() + 0x147 bytes C++
xxxxxxx.exe!ClassEdge::OnCoreEvent() + 0x8a bytes C++
xxxxxxx.exe!ecOnEvent() + 0x91 bytes C++
xxxxxxx.exe!ecInstCreateWindow() + 0x28a bytes C++
xxxxxxx.exe!ClassEdge::StartFramework() + 0x242 bytes C++
xxxxxxx.exe!ClassEdge::OnCoreEvent() + 0x5b bytes C++
xxxxxxx.exe!ecOnEvent() + 0x91 bytes C++
xxxxxxx.exe!_WinMain@16() + 0x70 bytes C++
As a result I had to make my own socketclient, but I much rather use the multi-OS Edge code (I write for PPC,WM and iPhone). I haven't tested if SearchHost blocks under iPhone, but I asume so.