This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Andrew, I've just been upgrading my application to Lightspeed 1.2 and have changed to use the new Get/Set methods from my entity properties. I've stumbled onto an odd problem with one of my entity classes - the attached repro should exhibit the problem - basically Lightspeed throws an ArgumentException with the message "An item with the same key has already been added." when it processes my entity for the first time. It looks like Lightspeed is generating a duplicate key for some internal hash - also, it looks to be related to the DisplayAddress property which calculates a value for use in databinding. Any help would be appreciated, Cheers, Greg |
|
|
Hi Greg, Thanks for the repro. Looks like a bug in the new property name inferencing. I'll work on the fix today so it should be available in tonights build. As a work-around you can use the old style Get/Set methods passing the property name as a string. Cheers, Andrew. |
|
|
Hi Andrew, Thanks for the update. I'll check out the new build when I get home. Out of curiosity, what time does your nightly build run? Cheers, Greg |
|
|
Hi Greg, The nightlies are generated at 5:30am NZ time. I have however kicked off a manual generation of the nightlies just now so you should be able to grab the latest version with Andrew's fixes included now. Let us know how you get on. Hope that helps, John-Daniel |
|
|
Hi JD / Andrew, I just downloaded the lastest build (1.2.133.6884) and the repro still seems to exhibit the duplicate key exception. Can you confirm the build available on the website contains this fix? Cheers, Greg |
|
|
Hi Greg, Just closing off this thread. Once I sorted the nightly build out this issue was resolved. Thanks, John-Daniel |
|
|
We just got this problem, and as we haven't been able to find any bug in our code yet, I tried to download the latest nightly build as it seems from this thread that this bug has been encountered before and has maybe been fixed. Then I noticed that non of our code runs with the latest nightly build. It seems that the Repository class has been removed. Is it so? I would like to verify if the problem we have is with Lightspeed or in our code, but we can't (close to launch of our product) rewrite our code now to work with the latest lightspeed changes just to check if a bug _maybe_ has been fixed. Best regards Björn Andersson Admeta AB |
|
|
Hi Björn, Sorry for your inconvenience. We're very close to releasing LightSpeed 2.0 hence the change in nightlies. I will put together a drop from the 1.0 branch for you. Cheers, Andrew. |
|
|
Hi Björn, The nightly build was using the 2.0 branch in error. I've changed it back to 1.2 Cheers, Andrew. |
|