Posts by lgomide • 606 points
6 posts
-
1
votes1
answer1434
viewsA: Sequence contains error in Elements Asp.net
The error says that you tried to extract an element from a sequence, but it had none. Probably the error comes from this line (method First() ) string chave = dados.AllKeys.Where(k =>…
-
9
votes2
answers932
views -
2
votes1
answer96
viewsA: Memory Allocation - Infinite loop when using the free() function
You just did the malloc of the element novo, soon makes no sense to effect the (free) release of it just below. If you do, the memory will be out of place as soon as the method returns. When trying…
-
1
votes1
answer43
viewsA: Change DB4O data to C#
To update an object with db4o, it is necessary to first recover it from the bank, then change it and save it, with db4oContainer.Store(entity) . There is no way to update an object without…
-
12
votes2
answers534
viewsA: What can make a regular expression slow?
This link contains a good explanation about, whose ideas I also explain here below, with an example I built and I went around in my machine. Invalid entries can cause very poor performance with…
-
10
votes2
answers2140
viewsA: How to "clean" static variables?
A static variable (declared within a method) will keep its value between successive calls. If you don’t want to keep the value between successive calls, why not just use local (nonstatic) variables?…