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

Visual Basic

 
AnswerRe: Which delimiter i have used while parsing a string with multiple delimeters? Pin
Herl the Pearl11-Apr-08 2:32
Herl the Pearl11-Apr-08 2:32 
GeneralRe: Which delimiter i have used while parsing a string with multiple delimeters? Pin
BooleanTrue11-Apr-08 2:58
professionalBooleanTrue11-Apr-08 2:58 
GeneralRe: Which delimiter i have used while parsing a string with multiple delimeters? Pin
Herl the Pearl11-Apr-08 3:08
Herl the Pearl11-Apr-08 3:08 
Generaluse vb.net to develop web based application Pin
shee_dee8610-Apr-08 22:50
shee_dee8610-Apr-08 22:50 
GeneralRe: use vb.net to develop web based application Pin
Christian Graus11-Apr-08 1:45
protectorChristian Graus11-Apr-08 1:45 
GeneralRe: use vb.net to develop web based application Pin
shee_dee8613-Apr-08 15:19
shee_dee8613-Apr-08 15:19 
GeneralRe: use vb.net to develop web based application Pin
Christian Graus13-Apr-08 15:57
protectorChristian Graus13-Apr-08 15:57 
GeneralArray of objects in an array of objects Pin
Mycroft Holmes10-Apr-08 22:26
professionalMycroft Holmes10-Apr-08 22:26 
I am using a queue of objects (workitem) to feed a thread for processing.

Public Class WorkItem<br />
Public mvDependancyGroup As String = ""<br />
Public mvStoreOutput As Boolean = False<br />
Public mvName As String = ""<br />
Public mvMethod As [Delegate] = Nothing<br />
<b>Public mvInput As Object() = Nothing</b><br />
Public mvOutput As Object = Nothing<br />
Public mvException As Exception = Nothing<br />
Public mvInQ As DateTime = Nothing<br />
Public mvStarted As DateTime = Nothing<br />
Public mvCompleted As DateTime = Nothing<br />


This works fine except for the mvInput (the array of objects representing the parameters to be passed to the delegate function). When I get a copy of the queue into an array of objects using the following code all the mvInput objects are the same values.
	Public Function GetInQueue() As WorkItem()<br />
			Dim oWI As WorkItem<br />
			Monitor.Enter(oInQ)<br />
			Dim arWI() As Object = oInQ.ToArray<br />
			Monitor.Exit(oInQ)<br />
			Dim arResult(arWI.Length - 1) As WorkItem<br />
			For i As Integer = 0 To arWI.Length - 1<br />
				oWI = CType(arWI(i), WorkItem)<br />
				arResult(i) = oWI<br />
			Next<br />
			Return arResult<br />
<br />
	End Function<br />


I'm pretty sure I am not the first to do this so:
Am I using oInQ.Array incorrectly?
Is there some magic I have missed?

The obvious work around is to turn mvInput into a delimited string which I will do if I cannot get a better resolution.

OR
Does this qualify as a Subtle Bug (like a flaming brick)

TIA

Never underestimate the power of human stupidity
RAH

GeneralRe: Array of objects in an array of objects Pin
Christian Graus11-Apr-08 1:45
protectorChristian Graus11-Apr-08 1:45 
GeneralRe: Array of objects in an array of objects - resolved Pin
Mycroft Holmes11-Apr-08 14:39
professionalMycroft Holmes11-Apr-08 14:39 
QuestionSending Extended ASCII values from serial port Pin
kranthikiran.a10-Apr-08 21:13
kranthikiran.a10-Apr-08 21:13 
GeneralRe: Sending Extended ASCII values from serial port Pin
Rajesh Anuhya10-Apr-08 21:48
professionalRajesh Anuhya10-Apr-08 21:48 
QuestionCrystal Report from SP ask Login Password Pin
bharat khandelwal10-Apr-08 19:53
bharat khandelwal10-Apr-08 19:53 
QuestionHow I can check cookies are enable or disable? Pin
Ashish Kumar Vyas10-Apr-08 19:23
Ashish Kumar Vyas10-Apr-08 19:23 
AnswerRe: How I can check cookies are enable or disable? Pin
Christian Graus10-Apr-08 20:03
protectorChristian Graus10-Apr-08 20:03 
GeneralVB.NET form location Pin
Joe Surls10-Apr-08 16:54
Joe Surls10-Apr-08 16:54 
GeneralRe: VB.NET form location Pin
Christian Graus10-Apr-08 17:40
protectorChristian Graus10-Apr-08 17:40 
GeneralRe: VB.NET form location Pin
Joe Surls10-Apr-08 17:52
Joe Surls10-Apr-08 17:52 
GeneralRe: VB.NET form location Pin
Herl the Pearl10-Apr-08 23:41
Herl the Pearl10-Apr-08 23:41 
Generalweb based application Pin
shee_dee8610-Apr-08 15:58
shee_dee8610-Apr-08 15:58 
GeneralRe: web based application Pin
LloydA11110-Apr-08 17:08
LloydA11110-Apr-08 17:08 
GeneralRe: web based application Pin
Christian Graus10-Apr-08 17:30
protectorChristian Graus10-Apr-08 17:30 
GeneralVS 2005 VB - MS ACCESS 2007 - Crystal Report XI R2 "Error: Logon failed.." Please help!! [modified] Pin
vbDigger'z10-Apr-08 14:33
vbDigger'z10-Apr-08 14:33 
GeneralID3v2 tag size not sync byte Pin
clusto10-Apr-08 11:35
clusto10-Apr-08 11:35 
GeneralText Box and String Manipulation Pin
Debi 10-Apr-08 10:39
Debi 10-Apr-08 10:39 

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.