Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Parameter count mismatch in multi-threading

Parameter count mismatch in multi-threading

Scheduled Pinned Locked Moved C#
helpquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MAW30
    wrote on last edited by
    #1

    I am getting the following error message: "Parameter count mismatch" I get this message when I run my program using Task for multi-threading, however when I run without multi-processing I do not get an error. The process runs fine and to completion without a problem, but after it is finished this error message pops up. If it is a parameter count mismatch why does it not show up in as an error when I build the project. Why doesn't it show an error when the variables are transferred at the point in the process. How do I find the problem, what are the possible reasons for this problem. Any help will be appreciated, thanks in advance. Michael

    D C L B 4 Replies Last reply
    0
    • M MAW30

      I am getting the following error message: "Parameter count mismatch" I get this message when I run my program using Task for multi-threading, however when I run without multi-processing I do not get an error. The process runs fine and to completion without a problem, but after it is finished this error message pops up. If it is a parameter count mismatch why does it not show up in as an error when I build the project. Why doesn't it show an error when the variables are transferred at the point in the process. How do I find the problem, what are the possible reasons for this problem. Any help will be appreciated, thanks in advance. Michael

      D Offline
      D Offline
      dusty_dex
      wrote on last edited by
      #2

      You won't get much help if you can't be bothered to post the offending code. We aren't mind readers.

      "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

      M 1 Reply Last reply
      0
      • D dusty_dex

        You won't get much help if you can't be bothered to post the offending code. We aren't mind readers.

        "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

        M Offline
        M Offline
        MAW30
        wrote on last edited by
        #3

        There is way too much code to post and I don't know which section the problem is in.

        1 Reply Last reply
        0
        • M MAW30

          I am getting the following error message: "Parameter count mismatch" I get this message when I run my program using Task for multi-threading, however when I run without multi-processing I do not get an error. The process runs fine and to completion without a problem, but after it is finished this error message pops up. If it is a parameter count mismatch why does it not show up in as an error when I build the project. Why doesn't it show an error when the variables are transferred at the point in the process. How do I find the problem, what are the possible reasons for this problem. Any help will be appreciated, thanks in advance. Michael

          C Offline
          C Offline
          Clifford Nelson
          wrote on last edited by
          #4

          As said before, almost impossible to figure out what your problem is. I would suggest that, if you don't already, depend on a single object to pass information instead of multiple objects. That might help.

          1 Reply Last reply
          0
          • M MAW30

            I am getting the following error message: "Parameter count mismatch" I get this message when I run my program using Task for multi-threading, however when I run without multi-processing I do not get an error. The process runs fine and to completion without a problem, but after it is finished this error message pops up. If it is a parameter count mismatch why does it not show up in as an error when I build the project. Why doesn't it show an error when the variables are transferred at the point in the process. How do I find the problem, what are the possible reasons for this problem. Any help will be appreciated, thanks in advance. Michael

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            MAW30 wrote:

            How do I find the problem, what are the possible reasons for this problem.

            Start with https://www.google.co.uk/search?q=Parameter+count+mismatch[^].

            Use the best guess

            1 Reply Last reply
            0
            • M MAW30

              I am getting the following error message: "Parameter count mismatch" I get this message when I run my program using Task for multi-threading, however when I run without multi-processing I do not get an error. The process runs fine and to completion without a problem, but after it is finished this error message pops up. If it is a parameter count mismatch why does it not show up in as an error when I build the project. Why doesn't it show an error when the variables are transferred at the point in the process. How do I find the problem, what are the possible reasons for this problem. Any help will be appreciated, thanks in advance. Michael

              B Offline
              B Offline
              Bernhard Hiller
              wrote on last edited by
              #6

              Since the error comes up with multi-threading only, I'd think it is the block of code where you create and start the threads: do you provide enough parameters for the methods to be started in different threads, and also not too many parameters?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups