[Mono-list] Help for porting: VC# 2008 express binaries crashing when run by mono

Andy Hume andyhume32 at yahoo.co.uk
Mon Jun 9 05:20:28 EDT 2008


I've created bug 398274 (https://bugzilla.novell.com/show_bug.cgi?id=398274)
and attached a pile of unit-tests.  They identify this and another wee bug. 
I assigned it to Jonathan for fix. :-)

Just in passing, the XML format for the settings is only used when the Form
has Localizable=true, that's why I wasn't seeing it initially in my VS2005
test project.  And the comma format occur when VS is running on a machine
which such a current culture; and the comma/decimal point only occurs with
non-integer percentages.  So a workaround is to negate any of those -- as
you did, making the percentages whole numbers is likely easiest.

Andy



herenvardo wrote:
> 
> 
> Jonathan Pobst wrote:
>> 
>> I've attached the relevant data from your .resx file.  A quick guess 
>> says it's probably using a culture that uses comma separators instead of 
>> decimal points for numbers, and our code is not international-proof.
>> 
>> This should be pretty easy to fix.  Either Andy or I will probably get 
>> to it in the next couple of days.
>> 
> I can confirm your guess: I did a bit of testing and replaced all these
> 33,3333 values in the resx file by 33: integer, so no issue about decimal
> separators. There might be a bit of precission loss in the distribution of
> the table rows (anyway, that's less than 1% in the worst case). After
> that, I recompiled from VS and tried it with Mono: everything is working
> fine now.
> Also, I'm working on a machine with a Spanish version of Windows and the
> regional configuration set to Catalan: both cultures use the comma as the
> decimal separator.
> Seeing the parts of the .resx file you highlighted, the issue seems quite
> obvious: comma-separated values where some of the values contain commas
> themselves: how could that **not** cause problems?
> I think the bug should be fixed, because it's a bug after all; but right
> now my program is able to just avoid it. If there is anything I can do to
> help fixing it, just let me know.
> 
> 
> Jonathan Pobst wrote:
>> 
>> Thanks for sending your files!
>> 
> Thanks to all of you for all the help! Once finished, the project is going
> to be published under GPL, so sharing some sources was not a problem :P
> 

-- 
View this message in context: http://www.nabble.com/Help-for-porting%3A-VC--2008-express-binaries-crashing-when-run-by-mono-tp17607386p17729166.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list