Click here to Skip to main content
15,910,009 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: datetime.tryparse("datetime in dd/MM/yyyy format",datetimeobject) returns false for dd/mm/yyyy Pin
Pete O'Hanlon13-Sep-11 2:01
mvePete O'Hanlon13-Sep-11 2:01 
GeneralRe: datetime.tryparse("datetime in dd/MM/yyyy format",datetimeobject) returns false for dd/mm/yyyy Pin
PIEBALDconsult13-Sep-11 15:45
mvePIEBALDconsult13-Sep-11 15:45 
GeneralRe: datetime.tryparse("datetime in dd/MM/yyyy format",datetimeobject) returns false for dd/mm/yyyy Pin
DaveyM6913-Sep-11 23:33
professionalDaveyM6913-Sep-11 23:33 
GeneralRe: datetime.tryparse("datetime in dd/MM/yyyy format",datetimeobject) returns false for dd/mm/yyyy Pin
jschell13-Sep-11 11:26
jschell13-Sep-11 11:26 
QuestionInstalling VSS for VS 2008 Pin
sarang_k11-Sep-11 22:47
sarang_k11-Sep-11 22:47 
AnswerRe: Installing VSS for VS 2008 Pin
Richard MacCutchan11-Sep-11 22:51
mveRichard MacCutchan11-Sep-11 22:51 
AnswerRe: Installing VSS for VS 2008 Pin
TheGreatAndPowerfulOz12-Sep-11 12:38
TheGreatAndPowerfulOz12-Sep-11 12:38 
GeneralRe: Installing VSS for VS 2008 Pin
PIEBALDconsult13-Sep-11 15:50
mvePIEBALDconsult13-Sep-11 15:50 
Questionsource code Pin
vishnumoorthy10-Sep-11 1:36
vishnumoorthy10-Sep-11 1:36 
AnswerRe: source code Pin
Richard MacCutchan10-Sep-11 2:36
mveRichard MacCutchan10-Sep-11 2:36 
QuestionRe: source code Pin
Eddy Vluggen10-Sep-11 13:02
professionalEddy Vluggen10-Sep-11 13:02 
Questionproject source code Pin
vishnumoorthy10-Sep-11 1:03
vishnumoorthy10-Sep-11 1:03 
AnswerRe: project source code Pin
Richard MacCutchan10-Sep-11 1:16
mveRichard MacCutchan10-Sep-11 1:16 
GeneralSanskrit Keyboard Pin
Sesharaman9-Sep-11 21:31
Sesharaman9-Sep-11 21:31 
GeneralRe: Sanskrit Keyboard Pin
Richard MacCutchan9-Sep-11 23:00
mveRichard MacCutchan9-Sep-11 23:00 
GeneralRe: Sanskrit Keyboard Pin
Sesharaman9-Sep-11 23:44
Sesharaman9-Sep-11 23:44 
QuestionCould not load file or assembly 'Microsoft.Practices.CompositeUI, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Pin
swjam9-Sep-11 3:17
swjam9-Sep-11 3:17 
AnswerRe: Could not load file or assembly 'Microsoft.Practices.CompositeUI, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Pin
jschell9-Sep-11 6:58
jschell9-Sep-11 6:58 
QuestionSide-by-side installation of .Net frameworks on Citrix Metaframe servers Pin
Dylan Morley8-Sep-11 22:40
Dylan Morley8-Sep-11 22:40 
AnswerRe: Side-by-side installation of .Net frameworks on Citrix Metaframe servers Pin
Matt U.9-Sep-11 8:01
Matt U.9-Sep-11 8:01 
AnswerRe: Side-by-side installation of .Net frameworks on Citrix Metaframe servers Pin
jschell10-Sep-11 7:53
jschell10-Sep-11 7:53 
GeneralRe: Side-by-side installation of .Net frameworks on Citrix Metaframe servers Pin
Dylan Morley11-Sep-11 21:46
Dylan Morley11-Sep-11 21:46 
QuestionCreate multiple instances of class for multi-threading Pin
HentoDeluxe8-Sep-11 11:40
HentoDeluxe8-Sep-11 11:40 
Hi,

I've been googling for hours without finding anything, so I have to turn here! (Frequent reader, first time poster).

I have a VB.net class (myMechModel) that is used to solve a mechanical problem. The class contains all (mechanical) parameters (mass, stiffness, length) are needed to solve the problem and it stores the results in a collection within the class. The class has a method that is being called to run the simulation (myMechModel.Calculate()).

I now want to run multiple simulations of the simulation, but change some of the parameters between each simulation. I could run it sequentially, but I really want to run it in parallel (each simulation run takes about 2 second).

I've been trying to get it working with Parallel.Tasks, but of course calling myMechModel.Calculate() just results in a threading conflict because multiple threads try to write results to the same results collection.

I've been looking into cloning the initial class for each task and then changing the values I want (like mass, stiffness, length). But before I go down that path, I'd like to here comments on what would be the best way of dealing with this!
AnswerRe: Create multiple instances of class for multi-threading Pin
MicroVirus8-Sep-11 12:54
MicroVirus8-Sep-11 12:54 
GeneralRe: Create multiple instances of class for multi-threading Pin
HentoDeluxe9-Sep-11 5:17
HentoDeluxe9-Sep-11 5:17 

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.