Click here to Skip to main content
15,890,982 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error in DataContractSerializer class Pin
zincsulfate18-Oct-11 0:03
zincsulfate18-Oct-11 0:03 
GeneralRe: Error in DataContractSerializer class Pin
Dave Kreskowiak18-Oct-11 1:35
mveDave Kreskowiak18-Oct-11 1:35 
QuestionBug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus17-Oct-11 16:34
Firo Atrum Ventus17-Oct-11 16:34 
AnswerRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Luc Pattyn17-Oct-11 16:52
sitebuilderLuc Pattyn17-Oct-11 16:52 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus17-Oct-11 16:57
Firo Atrum Ventus17-Oct-11 16:57 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Mycroft Holmes17-Oct-11 17:43
professionalMycroft Holmes17-Oct-11 17:43 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Luc Pattyn17-Oct-11 17:49
sitebuilderLuc Pattyn17-Oct-11 17:49 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus17-Oct-11 18:14
Firo Atrum Ventus17-Oct-11 18:14 
Luc Pattyn wrote:
How many elements are in the third collection, the one that grows; initially, halfway, and when it fails?

Let me rephrase my previous remark, The length is not growing, it depends on the value of ShipInDecks (I use this ArrayList just to make sure the new ship hasn't been added into ShipInDeck).

Luc Pattyn wrote:
and how often are you doing all this cloning?

Cloning happens in crossover process (yes, this is Genetic Algorithm):
1. Clone 2 ShipChromosome (the class with mentioned code). //Where the error occured.
2. Do crossover from clones result.

Luc Pattyn wrote:
what happens to all those clones, are you storing them in yet another collection?

Which clones?
The class? public IChromosome Clone() create new object of ShipChromosome which should have the same value, hence the use of clone in the constructor.
The array? I just cloned them from another instance of the class so that I can manage it freely.

Luc Pattyn wrote:
LOH fragmentation

Looking into it.
This error doesn't show up much (okay, only once), so I'm just doing this because I'm curious(ie. too many free time).
Oxfords English < Official CCC Players Dictionary

Excuse me for my improper grammar and typos.
It's because English is my primary language, not my first language.

My first languages are C# and Java.
VB, ASP, JS, PHP and SQL are my second language.
Indonesian came as my third language.
My fourth language? I'm still creating it, I'll let you know when it's done! Big Grin | :-D

AnswerRe: Bug in .Net 2.0's ArrayList.Clone? Pin
BobJanova17-Oct-11 23:31
BobJanova17-Oct-11 23:31 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus18-Oct-11 15:31
Firo Atrum Ventus18-Oct-11 15:31 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
BobJanova18-Oct-11 22:43
BobJanova18-Oct-11 22:43 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
Firo Atrum Ventus18-Oct-11 23:14
Firo Atrum Ventus18-Oct-11 23:14 
GeneralRe: Bug in .Net 2.0's ArrayList.Clone? Pin
BobJanova19-Oct-11 2:40
BobJanova19-Oct-11 2:40 
QuestionHow do you define a default html in silverlight? Pin
Xarzu17-Oct-11 9:38
Xarzu17-Oct-11 9:38 
AnswerRe: How do you define a default html in silverlight? Pin
Mark Salsbery17-Oct-11 14:07
Mark Salsbery17-Oct-11 14:07 
QuestionIs this safe Pin
Mide5517-Oct-11 1:58
Mide5517-Oct-11 1:58 
QuestionRe: Is this safe Pin
Yuri Vital17-Oct-11 2:05
Yuri Vital17-Oct-11 2:05 
AnswerRe: Is this safe Pin
Mide5517-Oct-11 2:09
Mide5517-Oct-11 2:09 
GeneralRe: Is this safe Pin
harold aptroot17-Oct-11 2:22
harold aptroot17-Oct-11 2:22 
GeneralRe: Is this safe Pin
Mide5517-Oct-11 2:32
Mide5517-Oct-11 2:32 
GeneralRe: Is this safe Pin
harold aptroot17-Oct-11 3:23
harold aptroot17-Oct-11 3:23 
AnswerRe: Is this safe Pin
Luc Pattyn17-Oct-11 6:35
sitebuilderLuc Pattyn17-Oct-11 6:35 
GeneralRe: Is this safe Pin
harold aptroot17-Oct-11 7:40
harold aptroot17-Oct-11 7:40 
GeneralRe: Is this safe Pin
Luc Pattyn17-Oct-11 7:54
sitebuilderLuc Pattyn17-Oct-11 7:54 
GeneralRe: Is this safe Pin
harold aptroot17-Oct-11 8:09
harold aptroot17-Oct-11 8:09 

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.