473,320 Members | 1,951 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.

Come evitare CrossThreadException

Ciao a tutti, siamo migrati da poco a Visual Basic .NET 2005 e,
praticamente subito, abbiamo iniziato la battaglia con questa
benedetta eccezione. Da quanto ho capito, il problema nasce quando si
tenta di accedere ad un oggetto tramite un thread diverso da quello
che lo ha creato, e il modo suggerito da Microsoft per ovviare il
problema è quello di usare i metodi InvokeRequired e Invoke tramite
l'utilizzo dei delegati.
Stiamo sbagliando noi, oppure c'è un qualche metodo per risolvere il
problema? Ho provato l'utilizzo della proprietà
"CheckForIllegalCrossThreadCalls" ma ho visto che alla lunga mi da dei
problemi...

Grazie mille a tutti
Ciao Enrico

Jun 25 '07 #1
0 904

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris Tanger | last post by:
I am creating a class that has a method "Write" that I wish to make threadsafe. The method must block calling threads until the task performed in write is complete. Only 1 thread at a time can...
3
by: Newbee Adam | last post by:
what OS come with .NET framework!? How can I install .Net Framework on say a win 98 and win 2000 machine? does the .Net framework need for the win 98 and 2000 machone come with visual...
2
by: luckdor | last post by:
Mi spiego meglio: Come sicuramente sapete RegMon È un'applicazione che monitorizza il registro di Windows; praticamente rivela tutte le chiamate o le scritture nel registro. Non riesco a...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
2
by: Hari | last post by:
Hi, How can I find out what site a visitor has come from using ASP? Suppose my website is sample.com and I have one page in the website that is used by the visitor to request products and...
26
by: vlsidesign | last post by:
I am a newbie and going through "The C programming language" by Kernighan & Richie on my own time (I'm not a programmer but I want to learn because it can save me time in my normal job, and it is...
1
by: Karthiga1984 | last post by:
Hi Table Structure company name Phone No Products Example Company Name Phone No Products
12
by: Pablo | last post by:
Hi at all I have a little problem (for you) that for me is a mission impossible. I have two web site The first site conain a link to the 2th. and 2th.web site contain a link to the first. ...
85
by: pereges | last post by:
#include <stdio.h> typedef struct { double x, y, z; }vector; int main(void) { int i;
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.