?
Solved

problem with Thread

Posted on 2009-12-23
1
Medium Priority
?
178 Views
Last Modified: 2012-05-08

    private void ExecuteWithThread()
    {
        List<Thread> threads = new List<Thread>(30);
        for (int idx = 0; idx != 30; ++idx)
        {
            threads.Add(new Thread(new ParameterizedThreadStart(RunThread)));
        }
        for (int idx = 0; idx != 30; ++idx)
        {
            threads[idx].Start(idx + 1);
        }
        foreach (Thread thread in threads)
        {
            thread.Join();//Bloquea el subproceso de llamada hasta que termina un subproceso
        }
    }

    private void RunThread(object param)
    {
       
        int threadNo = int.Parse(param.ToString());
        CallPageLoad();
      }

     protected void Page_Load(object sender, EventArgs e)
    {
        ExecuteWithThread();
      }
      
 
      protected void CallPageLoad()
    {
        try
        {
        .
        .
            .
            }
      
      
I have a web application. i use Thread for call the method protected void Page_Load(object sender, EventArgs e)
the error is:
SurveyWrapper1.ReturnFromMemory(VoxivaConstants.JOB_ID)      The type 'SurveyWrapper1' exists in both 'App_Web_xq8kezzn.dll' and 'App_Web_i3jzrl6a.dll'
then ex = {"Object reference not set to an instance of an object."}
where public class SurveyWrapper1      
0
Comment
Question by:enrique_aeo
1 Comment
 
LVL 3

Accepted Solution

by:
eitama earned 1000 total points
ID: 26115695
You are using a function that appears in 2 DLLs, thats in ambiguity.
Do actually need both DLLs?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month17 days, 4 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question