[Only registered and activated users can see links. Click Here To Register...]
I do not know what to do, is there anyone to support?
thank you
I do not know what to do, is there anyone to support?
thank you
I mean isn't he right? I'm the last person judging anyone for not knowing what to do, but expecting an explicit problem which is more than "I don't know what to do" shouldn't be too much huh?Quote:
Yeah, removing Code from the ImportFactory so he can't parse anything.
Stop posting useless shit comments just to farm some posts.
I haven’t said to remove this line. I suggested to remove code he doesn’t understand. That is maybe most of the project but still. It is a good way to learn part by part.Quote:
Yeah, removing Code from the ImportFactory so he can't parse anything.
Stop posting useless shit comments just to farm some posts.
Do you really expect someone (who can't even fix the parser to parse Act 7 content) would be able to do such things? Cmon.Quote:
I haven’t said to remove this line. I suggested to remove code he doesn’t understand. That is maybe most of the project but still. It is a good way to learn part by part.
But as you seems to ask for the real answer to the question (that he will never understand) there it is. List in c# use array under the hood. Arrays are fixed size. When adding to the list c# vm is allocating new memory if needed to your array. In case of parallel it add based on previous value. (Size+1) unfortunately as it’s doing multiple thing it’s trying size + 1 multiple time. Doing it at the same time result in the value being wrong as the difference between the read and wrote value make that the original value changed.
Thread 1: what is the amount of slot => 0
Thread 2: what is the amount of slot => 0
Thread 1 : add 1 => 0+1 => 1
Thread 2 : add 1 => 0+1 => 1 Thread 1 already used this so it crash.
So how to fix it ? You have to use a threadsafe collection type to avoid this kind of error. Like a concurrent dictionary.
Ps this have been simplified that’s not totally what is happening but would be useless to explain in detail
No I don’t. That’s the reason for my first answer... you just wanted me to answer the real one so here it is. Obviously it’s too tricky. So my first answer of delete all the code you don’t understand and restore it step by step is the best one he will get...Quote:
Do you really expect someone (who can't even fix the parser to parse Act 7 content) would be able to do such things? Cmon.
Nothing more to say
Quote:
Stop posting useless shit comments just to farm some posts.
You are also increasing your point counter with these publications or ... are you answering the question of the creator of the thread? No.Quote:
Do you really expect someone (who can't even fix the parser to parse Act 7 content) would be able to do such things? Cmon.
Nothing more to say