PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Connect to server in emulator

Reply

Connect to server in emulator

 
Thread Tools Rate Thread
Old 09-11-2004, 08:17 AM   #1
Wapiti
Guest
 
Posts: n/a
Default Connect to server in emulator


I'm establishing a connection to a sql server. When it runs on my
handheld, the connection is established quickly (very fast). But when run
under the emulator it takes a loooong time, the very first connection. It
also errors out with 'server not found or access denied'. The second,
third, etc time is very fast - so long as I don't wait too long between
attempts (15 or so minutes).

Strange thing too, the error I get is not true. I removed the try block as
a test, and the connection failed (threw the message), but the attempt to
use the connection further down in my code to access data proved fine. The
connection was fine. Then why did it throw the error??

And whats happening that the connection takes about 15 minutes to establish
(even tho it throws the error) the first attempt, but no time at all in
successive attempts?

ALSO, is there any way to cancel a connection while its attempting to open??

Thanks!



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off