Click here to Skip to main content
15,887,676 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to use two different versions of same dll in vb.net web application? Pin
Affan Toor13-Mar-12 2:28
Affan Toor13-Mar-12 2:28 
AnswerRe: How to use two different versions of same dll in vb.net web application? Pin
Dave Kreskowiak13-Mar-12 2:37
mveDave Kreskowiak13-Mar-12 2:37 
GeneralRe: How to use two different versions of same dll in vb.net web application? Pin
Affan Toor13-Mar-12 19:00
Affan Toor13-Mar-12 19:00 
AnswerRe: How to use two different versions of same dll in vb.net web application? Pin
Sentenryu13-Mar-12 3:23
Sentenryu13-Mar-12 3:23 
GeneralRe: How to use two different versions of same dll in vb.net web application? Pin
Affan Toor13-Mar-12 19:02
Affan Toor13-Mar-12 19:02 
GeneralRe: How to use two different versions of same dll in vb.net web application? Pin
Sentenryu14-Mar-12 1:50
Sentenryu14-Mar-12 1:50 
AnswerRe: How to use two different versions of same dll in vb.net web application? Pin
ZurdoDev16-Mar-12 6:28
professionalZurdoDev16-Mar-12 6:28 
QuestionShared Variables and Threading Issue Pin
D3STROYRofWRLDS12-Mar-12 10:02
D3STROYRofWRLDS12-Mar-12 10:02 
Hey All,

So I am currently attempting to wrap my head around create multi-threaded programs and I am currently running into an issue when using a Shared variable across multiple threads.

The program is structured as follows:

Public Shared IsActive as Boolean

Main Thread = GUI
Sets the Value of IsActive through a Button Control

Two Worker Threads
Both threads are while loops that read the IsActive Boolean

Ex:
While IsActive = True
Do Work
End While

However when I change the value of IsActive from the Main Thread it causes the worker threads to stop (ThreadState = 16).

I have been reading that I have to synchronize/lock shared resources and have tried SyncLock and Monitor methods without success (it is entirely possible I am not using the above correctly, so If someone could provide proper examples for the above situation using the mentioned methods please share them).

Thanks a bunch for any and all help, much appreciated!

If further code is needed let me know.

Thanks!
AnswerRe: Shared Variables and Threading Issue Pin
Dave Kreskowiak12-Mar-12 10:12
mveDave Kreskowiak12-Mar-12 10:12 
AnswerRe: Shared Variables and Threading Issue Pin
Luc Pattyn12-Mar-12 10:44
sitebuilderLuc Pattyn12-Mar-12 10:44 
GeneralRe: Shared Variables and Threading Issue Pin
D3STROYRofWRLDS12-Mar-12 10:58
D3STROYRofWRLDS12-Mar-12 10:58 
AnswerRe: Shared Variables and Threading Issue Pin
Luc Pattyn12-Mar-12 11:04
sitebuilderLuc Pattyn12-Mar-12 11:04 
Generalauto cut in receipt using vb6 (pls help) in generic driver Pin
akosirommel11-Mar-12 17:52
akosirommel11-Mar-12 17:52 
GeneralRe: auto cut in receipt using vb6 (pls help) in generic driver Pin
Mycroft Holmes11-Mar-12 18:04
professionalMycroft Holmes11-Mar-12 18:04 
GeneralRe: auto cut in receipt using vb6 (pls help) in generic driver Pin
Dave Kreskowiak12-Mar-12 5:04
mveDave Kreskowiak12-Mar-12 5:04 
QuestionCan anyone give me a sample data model of a flight reservation? Pin
Pelikss10-Mar-12 15:28
Pelikss10-Mar-12 15:28 
AnswerRe: Can anyone give me a sample data model of a flight reservation? Pin
Dave Kreskowiak10-Mar-12 18:12
mveDave Kreskowiak10-Mar-12 18:12 
AnswerRe: Can anyone give me a sample data model of a flight reservation? Pin
Estys12-Mar-12 2:19
Estys12-Mar-12 2:19 
QuestionRegister Wiaaut.dll Pin
ivo7510-Mar-12 10:52
ivo7510-Mar-12 10:52 
AnswerRe: Register Wiaaut.dll Pin
Dave Kreskowiak10-Mar-12 12:20
mveDave Kreskowiak10-Mar-12 12:20 
GeneralRe: Register Wiaaut.dll Pin
ivo7511-Mar-12 4:39
ivo7511-Mar-12 4:39 
GeneralRe: Register Wiaaut.dll Pin
Dave Kreskowiak11-Mar-12 10:13
mveDave Kreskowiak11-Mar-12 10:13 
GeneralRe: Register Wiaaut.dll Pin
ivo7511-Mar-12 10:37
ivo7511-Mar-12 10:37 
AnswerRe: Register Wiaaut.dll Pin
YuanJianzhong25-Mar-12 15:09
YuanJianzhong25-Mar-12 15:09 
QuestionExecuteScalar won't work? Pin
Midnight Ahri9-Mar-12 14:32
Midnight Ahri9-Mar-12 14:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.