473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Cross-thread operation not valid: Control 'hiddenrtb2' accessed from a thread other t

im getting this error and i cant figure it out.

Expand|Select|Wrap|Line Numbers
  1.     Public Sub mlogin()
  2.         Invoke(chkb, New Object() {"disable"})
  3.         Invoke(d, New Object() {achidrtb, "", "="})
  4.         Invoke(d, New Object() {hiddenrtb2, "", "="})
  5.         Invoke(d, New Object() {resultrtb, "", "="})
  6.         Invoke(d, New Object() {successes, "0", "="})
  7.         Invoke(d, New Object() {fails, "0", "="})
  8.         Invoke(d, New Object() {checkednum, "0", "="})
  9.         allowcheck = True
  10.         Dim linenum As Integer = 1
  11.         Dim accchk As String
  12.         Dim SErr As New TSteamError()
  13.         Dim iSteamReturn As Integer = 0
  14.         Dim isLoggedIn As Integer = 0
  15.         Dim sHandle As System.UInt32
  16.         Dim startoptions As System.UInt32 = 15
  17.         iSteamReturn = SteamStartEngine(SErr)
  18.         iSteamReturn = SteamIsLoggedIn(isLoggedIn, SErr)
  19.         iSteamReturn = SteamStartup(startoptions, SErr)
  20.         Dim TProgress As New TSteamProgress()
  21.         TProgress.Valid = 1
  22.         i = 0
  23.         Invoke(mul, New Object() {"x"})
  24.         Invoke(d, New Object() {hiddenrtb2, mu, "="})
  25.         Dim numlines As Integer = 0
  26.  
  27.         Dim List As String() = hiddenrtb2.Lines
  28.         Dim Line As String
  29.         For Each Line In List
  30.             numlines = numlines + 1
  31.         Next Line
  32.         Invoke(d, New Object() {acclistnum, numlines.ToString(), "="})
  33.         While numlines > 0
  34.             Dim line2 As String
  35.             line2 = hiddenrtb2.Lines(linenum - 1)
  36.             numlines = numlines - 1
  37.             linenum = linenum + 1
  38.  
any help would be appreciated.
Mar 10 '10 #1
1 918
tlhintoq
3,525 Expert 2GB
Cross-thread operation not valid: Control 'hiddenrtb2' accessed from a thread other thread
im getting this error and i cant figure it out.
It means that you made a control (hiddenrtb2) on one thread, but are trying to affect it from a different thread. That's not generally allowed.

If you want to access that control, you have to do it from the same thread that created it.
Mar 10 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
3
by: rollasoc | last post by:
Hi, Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app). Did a bit of testing. Loaded a previously saved file. A gray box appeared with the text and buttons all white...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
4
by: David Peach | last post by:
Hello, hope somebody here can help me... I have a query that lists defects recorded in a user defined date range. That query is then used as the source for a Cross Tab query that cross-tabs count...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
1
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I...
6
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have...
6
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or...
6
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? Thanks.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.