The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: help with VB.NET?



Hi Ian,

I'm on my 2nd week of .NET so I can understand your frustration...!?!
I doing it in C# so even if I could give an example off the top of my
head (which I doubt would be correct anyway!) I'm not sure how much
use it would be in VB (as VB hides some stuff delegate from you I
think).

First advice: MSDN Magazine column/issue archive
http://tinyurl.com/a8m9y

Have a hunt there and then in all the usual haunts (CodeProject, CodeGuru
etc.)

Hope this helps,
Andy.

On 8/10/05, Ian Lowe <ian.lowe@xxxxxxx> wrote:
> I'm at the "tearing my hair out" stage.. and those who have
met can
> confirm... I aint got much to lose!
>
> I'm trying to use xpllib v3 in VB.Net 2005 beta 2 (although I suspect
> that my problems would be there in earlier versions too...)
>
> The problem seems to be threads...
>
> I have a form which has a listbox - for storing events and so on. I
have
> added the xpllib into the form, and it's correctly firing up,
> configuring etc.
>
> When it gets a message, it correctly responds, extracts the parameters
I
> need, and goes to add them to the listbox...
>
> At which point, the darn thing throws an exception, and complains...
> "Cross-thread operation not valid: Control 'lbCallLog' accessed
from a
> thread other than the thread it was created on".
>
> Which is more than a little frustrating - to put it mildly.
>
> I have tried to add a "delegate" to my form, as this seems
to be how
> threads allow communication to proceed... but tbh, I might as well be
> coding in Swahili.
>
> Any .NET gurus there that can help someone get to grips with treads,
> delegates etc?
>
> Ian.
>
>
>
>
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
> To Post a Message: ukha_xpl@xxxxxxx
> To Subscribe:  ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx
> Yahoo! Groups Links
>
>
>
>
>
>
>



xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.