Application Hangs

Questions about Wine on macOS.
Locked
cbahr
Newbie
Newbie
Posts: 1
Joined: Wed Aug 12, 2015 3:36 pm

Application Hangs

Post by cbahr »

Hello All,

Im currently trying to figure out why my application hangs when i try to download some content from the web.

I created a sample win forms app in .net 4.5 with a simple button and text box. button click handler is below: What happens is, the application launches as expected, however, once i click on the button, the app stalls on wc.DownloadString()

Code: Select all

private void btnWebClient_Click(object sender, EventArgs e)
{
     using (WebClient wc = new WebClient())
     {
          string sReturn = wc.DownloadString(URL);
          txtWebClientOut.Text = sReturn;
      }
}
Locked