Oops, sorry for posting in wrong form, I did not find another place where I could post this. Will delete this now that I got the answer...
Sharath C V
Posts
-
Broken image links in the articles that come up for approval -
Broken image links in the articles that come up for approvalI am seeing broken links in many of the articles/tips/blogs that come up for approval. Is this expected? ::confused::
-
As always, the reviews are hilariousYeah, I saw :omg: that!!
-
As always, the reviews are hilariousMaybe there should be a review on review...!! :) :doh:
-
Difference between NDIS 6.3 and 6.4 with respect to Mobile Broadband APIsThanks very much for your reply Matt. And great to know that you worked on WWAN APIs! No, the APIs are nice. It is pretty nice as to how they have pulled it off. Finding it really helpful. Since Microsoft did that homework, our live is better and we can spend quality time on other work items. -Sharath
-
Difference between NDIS 6.3 and 6.4 with respect to Mobile Broadband APIsYes, its the same.
-
Difference between NDIS 6.3 and 6.4 with respect to Mobile Broadband APIsDoes anyone know if there are any major difference in Mobile Broadband APIs between NDIS 6.3 and NDIS 6.4 based drivers? As per MS documentation, there is not much of a difference: http://msdn.microsoft.com/en-us/library/windows/hardware/dn449742(v=vs.85).aspx[^]
-
Russia wants Apple, SAP to cooperate against foreign spyingEddy Vluggen wrote:
So, trust demands open source?
Good one!! Lol :)
-
Image links broken on the article I submitted todayThanks very much for the update Sean.
-
Image links broken on the article I submitted todayredoing the image link solved the issue. don't know why, but the link changed after submission. wrote a mail to submit@codeproject.com and they approved it faster...
-
Image links broken on the article I submitted todayredone the image link, let us see if this fixes the issue... article is again in pending list.. :(
-
Image links broken on the article I submitted todayImage links are broken on the article I submitted today. :( It was fine when it was in pending state. Article id is 791286. Does anyone have any idea on this? -Sharath
-
"Something bad happened" error on article submissionDebugged it, I missed to supply tags in the Tags text box! :) Successfully submitted the article now...
-
"Something bad happened" error on article submissionI am trying to submit my article today and I am getting following error. Tried three times and is getting the same error. Article id is 791286. Error details given below: First attempt: Something bad happened We're not sure what, but we have a few guesses. Problem: Object reference not set to an instance of an object. Ticket: 7720095 Server: Web04 Second attempt: Something bad happened We're not sure what, but we have a few guesses. Problem: Object reference not set to an instance of an object. Ticket: 7720097 Server: Web01 Third attempt: Something bad happened We're not sure what, but we have a few guesses. Problem: Object reference not set to an instance of an object. Ticket: 7720098 Server: Web02 Note: I like the graphics on this error page though :)
-
Executing few lines of code on Windows Store app installationThanks Pete for your valuable input on this...
-
Executing few lines of code on Windows Store app installationIs it possible to execute few lines of code on installing a windows Store App? The lines of code that needs to be executed will be part of the store app itself. So far, I am unable to find any information on this, but if any one has any info on this, please let me know. As of now I am trying to evaluate the feasibility.
-
"One or more exceptions" occurred at Task.Start()Thanks to both of you for your valuable help. Changed it as shown below and got it working without loosing sequence and with corresponding thread id...
private void TaskRunButton_Click(object sender, EventArgs e)
{
// clear the list before writing
listBox.Items.Clear();
Task demoTask = new Task(DemoTask);
demoTask.Start();
}private void DemoTask()
{
try
{
List<Task> tsk1 = new List<Task>();
List<Task> tsk2 = new List<Task>();for (int i = 0; i < 10; i++) { tsk1.Add(new Task(TaskDemoWait100ms)); tsk2.Add(new Task(TaskDemoWaitWait200ms)); } for (int i = 0; i < 10; i++) { tsk1\[i\].Start(); tsk2\[i\].Start(); tsk2\[i\].Wait(); listBox.BeginInvoke(new separatorDelegate(() => { listBox.Items.Add("------------"); })); } } catch (Exception ex) { string msg = ex.Message; }
}
delegate void taskdelegate(int threadId);
delegate void separatorDelegate();private void TaskDemoWait100ms()
{
Thread.Sleep(100);
object[] param = new object[1];param\[0\] = (object)Thread.CurrentThread.ManagedThreadId; listBox.BeginInvoke(new taskdelegate((int threadId) => { listBox.Items.Add("Wait 100 ms, Thread Id = " + threadId); }), param);
}
private void TaskDemoWaitWait200ms()
{
Thread.Sleep(200);
object[] param = new object[1];param\[0\] = (object)Thread.CurrentThread.ManagedThreadId; listBox.BeginInvoke(new taskdelegate((int threadId) => { listBox.Items.Add("Wait 200 ms, Thread Id = " + threadId); }), param);
}
-
"One or more exceptions" occurred at Task.Start()Thanks very much for your thoughts. Yes, Invoke also blocks as you mentioned. BeginInvoke solves the issue, but sequence goes wrong. Regarding async / await, I am aware of it. In the project from where I took the code and posted here, it has async / await sample also. I am working on a sample for async / await. In that same sample I wanted to add Task.Start() as an example to demonstrate the use of Task.Wait() via another button on the UI. That's the reason I am doing wait immediately after Task.Start() :)
-
"One or more exceptions" occurred at Task.Start()I don't see any failing thread, because I am getting the values in the list box correctly, but as you mentioned, it may fail at any time. Thanks very much for your valuable inputs. I will work on this and update further...
-
"One or more exceptions" occurred at Task.Start()I have a form application with a button and a listbox. When I click the button, I launch about 10 tasks and then do a wait on each of the tasks. When I try to run this from Visual Studio 2013 in Debug mode, I get an exception "One or more errors occurred" at Task.Start() itself, but when I run this outside of the debugger, then it works fine. Is this a Visual Studio issue? Any light on this would be helpful. Please find the code snippet below:
private void SynchronousWait200ms()
{
Thread.Sleep(200);
listBox.Items.Add("Wait 200 ms, Thread Id = " + Thread.CurrentThread.ManagedThreadId);
}private void TaskRunButton_Click1(object sender, EventArgs e)
{
listBox.Items.Clear();
try
{
List<Task> tsk1 = new List<Task>();for (int i = 0; i < 10; i++) { tsk1.Add(new Task(SynchronousWait200ms)); tsk1\[i\].Start(); tsk1\[i\].Wait(); } listBox.Items.Add("------------"); } catch (Exception ex) { string msg = ex.Message; }
}