I get the following when converting any C# file to Oxygene
Value cannot be null.
Parameter name: collection
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at RemObjects.Fire.BaseLibrary.FBLFileBuffer.save(Boolean force)
at RemObjects.Fire.ProjectSystem.TextFile.<>c__DisplayClass32.b__0(String code)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Ok so wanted to send you the zlib library as a test case for this issue as this is what I was wanting to convert to Oxygene. This complied and ran fine but now crashes when running under Water 2433 in DEBUG mode with…
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Compiles and runs just fine in RELEASE mode.
I suspect the above issue needs to be another ticket…
The C# to Oxygene issue. On the attached project right click on any C# file (eg Deflate.cs) and select convert to Oxygene. The IDE will then crash
Odd. the Oxidixer issue does’t repro in Fire, I’ll need to have someone check in Water, tomorrow. Same for the actual runtime issue. This crash is new, as in it ran fine in a prior Elements version?
~> Process Zlib Island test started
The magic happens here.
starting...
String ticks: 637024843750020 Size: 338925
Stringbuilder ticks: 70 Size: 338925
about to compress
GzipStream
Compress
String 338925
Array 22897
!> Additional exception of type Ionic.Zlib.ZlibException on thread 58C4
!> Message:
#> (edb)
Not an access violation. It seems to originate from here:
If I store the data and decompress it with a known working gzip implementation from ionic on .net I get the exact same error. So something goes wrong in compressing it seems.
Hi Carlo,
Sorry have been away so only just back to this… on latest build 2437 actual issue (Oxidizer crash converting C# to Oxygene) is fixed
Compile and execution of zlib test - in release 100% ok. in debug now just fails. Was not sure what you had… eg update 4 is valid so issue with original zlib source ?
hrmm I was sure I had it working in both when I last tested it (but must admit it’s been a while). which zip should I try again? There’s no bug in zlib like that as far as I can tell it’s going to be in the compiler if it miscompiles.