Control.invoke() throws System.ArgumentException with Error message as 'Parameter is not valid'

Hi All,
While doing cross thread communication, i am getting System.ArgumentException with Error message as 'Parameter is not valid' when call is made on the control.invoke(delegate method, parama object[]).
I have checked the parameters, all parameters look good.
Please share your views on this.

I am going to explain the following Exception schenario.
The RenderForm() is called from different thread and initially panel.InvokeRequired is true as it gets called from different thread and then invoke() gets called.
So again same method is getting called and InvokeRequired property has then changedd to false and then else part of the code is executed however if i call the RenderForm() repetadely then application throws the exception as stem.ArgumentException with Error
message as 'Parameter is not valid'
And the Exception stack trace is as below-
  Type: System.ArgumentException
  Message: Parameter is not valid.
  Source: System.Windows.Forms
  TargetSite: System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
  StackTrace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
  StackTrace: at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
  StackTrace: at NCR.APTRA.RendererCore.RendererCore.RenderForm(TTUForm form, IDataRecord data, Boolean clear)
Adding the code snippet:
private void RenderForm(TTUForm form, IDatRec.IDataRecord data, bool clear)
            if (panel.InvokeRequired)
                    panel.Invoke(new RenderFormInvoke(RenderForm), new object[] { form, data, clear });
   else
//logic to draw the window content
Please help me on this.. Thanks..

Similar Messages

  • I am getting this error message, " The URL is not valid and cannot be loaded" when I try to go to Firefox home. I have uninstalled add-ons, uninstaleed and reinstalled a fresh new firefox which did not help

    I am getting the following error message, " The URL is not valid and cannot be loaded" when I try to go to firefox home. I uninstalled add-ons , uninstalled Firefox and then installed a fresh version. Still have the problem.
    Thanks for the help

    That issue can be caused by a corrupted or incomplete Visual C++ installation (multiple versions can be installed side-by-side; SxS) that is missing some runtime components (Redistributable Packages) that Firefox depends on (problem with an embedded manifest file that specifies a specific runtime version).
    You need to install the missing components (e.g. VisualC++ 2005 Redistrbutable).
    * https://www.microsoft.com/download/en/details.aspx?id=5638
    *[[/questions/908165]] The URL is not valid and cannot be loaded
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=713167 bug 713167] - Microsoft.VC80.CRT SideBySide errors, browsercomps.dll

  • When I try and download app updates via wi-fi to my Ipad I get an error message "Your account is not valid for use in the Australian Store. You must switch to the US store before purchasing."  I am in the US how do I switch?

    When I try and download app updates via wi-fi to my Ipad I get an error message "Your account is not valid for use in the Australian store. Your must switch t the US store before purchasing. I am currently in the US on wi-fi. How do I switch

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3. Tap on your Apple ID
    4.Tap "View Apple ID"
    5. Enter your user name and password.
    6. Tap "Country/Region."
    7. Tap "Change Country/Region"
    8. Select the country/region where you are located.
    9. Tap "Done".
    Note: If the change doesn't take effect, sign out of account and sign in again.

  • Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded." How can I repair?

    Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded."
    How can I fix it?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • TS1368 Error message tells me to reset password.  After resetting password I get confirmation email that new password is set.   As soon as I try to access App Store I get error message that password is not valid.

    Error message tells me to reset password.  After resetting password I get confirmation email that new password is set.   As soon as I try to access App Store I get error message that password is not valid.

    Try logging out of your account on the iPad by tapping on your id in Settings > Store and then log back in and see if it then works.

  • Error Message - "Time Interval is not valid for dummy activities"

    Friends,
    I am trying to create a planned order on a resource at a plant. However it shows up an error message.
    An application program called an LCA routine. The following error
    occurred:
    Time interval is not valid for dummy activities. Probable causes
    error are an extremely long processing duration or times that li
    outside the time interval (1.1.1970 + 30 sec, 1.1.2038 - 1 sec).
    Could anyone help pme out with this,
    Thanks in advance.
    -A

    Hi,
      Please check the control key  and activity type  in routing.
    Thanks,
    DV

  • System freez with error message

    For the last 2 weeks, my PPC G4 powerbook has been freezing after the screen goes gray and an error message tells me to "press the power button and hold for 10 seconds". This allows the machine to reboot and work for a varied amount of time. When the machine has rebooted, there is a message that states "OS X unexpectedly quit. Do yo want to report this".
    I erased the volume, installed all the software & updates and the same message has appeared 3 times in one day. Can anyone shed some light on this message and possible remedies?

    In the Utilities folder, there's a program called Console. Open up the Console utility and see if it shows any errors. If it does, post the errors here and try googling for them.

  • My ipod won't sync. keeps coming up with error message saying ' itunes could not back up ipod because a session could not be started with the ipod' help?

    My ipod won't sync to my itunes. Keeps coming up with the error message 'itunes can not back up the ipod because a session could not be started with the ipod? it has been coming up with this message for the lst 2 weeks now. Will let me charge it but won't let me sync anything. Really not sure what to do or where to start or anything!

    Follow these instructions to completely remove Apple software
    http://support.apple.com/kb/HT1923
    Then use free Ccleaner to repeatly repair your registry until it's fixed.
    http://www.piriform.com/ccleaner/download/standard
    download iTunes again from Apple.
    http://www.apple.com/itunes/
    If you have 64bit Vista or Windows 7, look for the seperate download of iTunes for that further down the page.
    Once installed, use the Apple Software Update under your Start Menu to fully update all Apple components.
    Your content will remain on the drive in the Music > iTunes Folder, nothing is deleted.
    You  should be making backups of your content regularly, either through  iTunes or via copying the iTunesFolder in your Music folder to a  external drive.
    Windows  is notorious for having "other" issues that make it unstable, we as  volunteers helping others can't always resolve those issues.

  • TS3212 itunes starts download, goes thru most of the way then stops with error message the Itunes could not be configured and won't finish downloading and installing

    itunes wont completly download and install. it starts downloading goes thru most of the download then a pop up error message says itunes couldnt be configured and tells me to press finish and it closes
    how do i get itunes to completely install??

    a pop up error message says itunes couldnt be configured
    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • I can't access my itune account? Error message : your accout is not valid to access US Store. Youvat switch to Philippine Store  before making any purchase.

    Why I can't I access my iTune account on my iPhone 5? This error message appears: Your account is not valid in US Stores. You must switch to Philippine Store before making a purchase.
    I have recently change my address to US where I'm staying and revert back to my old address in the Philippines but I can't still access my account using my iPhone.

    Go to Settings - iTunes&Appstores - Tap your Apple ID - Log out - Log in again - Try again to download/purchase an app.
    Let me know if this doesn't solve the issue

  • How do I enable Firefox 4 to do a search on more than one word (e.g. "yahoo mail") without receiving the error message "the URL is not valid and cannot be loaded"?

    After loading Firefox 4.0, I changed the address bar search engine to Google Search by Name, so I'd be taken straight to the most relevant webpage when I type in a word.
    It works fine when I type in one word, but if I use a search with more than one word (e.g. "yahoo mail" or "google maps") I get an alert saying "The URL is not valid and cannot be loaded". Is there any way I can fix the address bar to accept multiple word searches?
    I've tried disabling all my add-ons, but it didn't make any difference.

    Hi, this should sort out your problem:
    1. Type in "about:config" into the address bar, this will open the settings menu. Click on "I'll be careful, I promise!"
    2. Search for "keyword.URL" in the filter bar.
    3. Enter "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=" into the value field.
    I'm no expert, but I had the same problem which got on my nerves after being so used to being able to type anything in, and following these steps fixed it.

  • Why do I get error message "The URL is not valid and cannot be loaded" when everything looks OK?

    This message pops up while using programs like yahoo mail. I delete it and everything continues as normal.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Payroll's Error message: Posting balance is not cleared (period 02 / 2014 a)

    Dear Experts,
    I am new to SAP HR. And would like get help for this issue
    After EHP 6 upgarde, when process the payroll, system prompt this error message: Posting balance is not cleared (period 02 / 2014 a).
    Checked the RT and it showed that the tax employee deduction was RM90.93. But when it comes to payslip display the tax amount showed different figure of RM90.94 which might be the cause for “posting balance is not cleared” message

    Hi,
    ChecK Manoj Shakya's response in the thread.
    Posting to FI-err :3G103, posting balance is not cleared
    Cheers,
    Manoj.

  • Tying to install itunes and I get error message "This file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel.  Help

    am tTying to install itunes and I get error message "This file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel. Can anyone help me?

    Hi,
    Here is a similar thread for your reference:
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel
    http://social.technet.microsoft.com/Forums/en/w7itproappcompat/thread/036e3cf6-bff7-4ef2-bd0a-555cd2399ad4
    Hope this helps
    Vincent Wang
    TechNet Community Support

  • I have a problem with installing PS13 as I get an error message "This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements." how do i do this?

    i have a problem with installing PS13 as I get an error message "This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements." how do i do this

    Try downloading the trial. It ought to detect that you have a 64-bit system.
    You aren't using Vista, are you? PSE 13 requires at least win 7 and I think a few folks with vista have gotten a similar error message on trying to install it.

Maybe you are looking for