Writing files

Sep 15, 2010 at 1:26 AM

Hello,

I'm getting an exception while attempting to rewrite stdf files.

To start I'm just doing this:

var origstdf = new StdfFile(args[0]);
var newstdf = new StdfFileWriter("tst" + args[0]);
newstdf.WriteRecords(origstdf.GetRecords());

Which results in this:

System.MissingMethodException occurred
  Message=Method not found: '?'.
  Source=LinqToStdf
  StackTrace:
       at UnconvertFromFar(StdfRecord , Endian )
       at LinqToStdf.RecordConverterFactory.<>c__DisplayClass11.<CreateUnconverterForType>b__10(StdfRecord r, Endian e) in C:\Projects\Downloads\LinqToStdfv1Beta1\src\Main\LinqToStdf\RecordConverterFactory.cs:line 276
  InnerException:

Sorry but much of this code is over my head so anything to point me in the right direction would be appreciated.

Oct 7, 2010 at 7:55 AM

Hey there,

I'm getting the same exception here. Any clue yet?

Regards.

Oct 7, 2010 at 12:12 PM

Well, it seems the reason is .NET Framework 4.

Coordinator
Aug 22, 2011 at 3:20 AM

Apologies, guys.  I didn't see this.  ...for a whole year. :(

There are considerable issues with record emitting. It's not surprising that these may manifest themselves differently in .NET 4.  One of the problems I have is that since I no longer work in the semiconductor industry, I don't have access to STDF files to do testing.

Anyway, I'm working on some updates that should make the library more performant, and I can work on some of these problems if I know a little more about the problem.  Can I have the stdf that's causing the problem, or does it happen with anything?