2015-09-10 1 views
2

Je suis en train de convertir mon système de matlab 2012a x64 en matlab 2014b x64. Cependant, je reçois cette erreur. J'utilise .Net 4.5, Visual Studio 2012 + mise à jour 5.Matlab builder NE 2012A x64 migreting vers 2014B X64

A first chance exception of type 'System.Exception' occurred in MWArray.dll 
Additional information: Start-up options discovered in multiple assembiles. 

je frappe F5 et je reçois:

A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll 
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception. 

J'appuyez à nouveau sur F5 et je reçois:

A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll 
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception. 

voici mon code:

private static MWArray ConvertBlackLevelResultsToMWArray(BlackLevelData blackLevelData) 
     { 
      var blackLevelResultsGroupedbyExposure = from blResult in blackLevelData group blResult by blResult.ExposureTime; 
      var exposuresCount = blackLevelResultsGroupedbyExposure.Count(); 
      var blackLevelCells = new MWCellArray(1, exposuresCount); //the exception is here 

J'ai utilisé ref .net lector afin de passer en revue toutes les dépendances dans d'autres fichiers DLL, ils ont tous se référer à la version correcte MWarray 2.14.1.0

Pouvez-vous suggérer Un moyen de savoir quel est mon problème?

grâce

Répondre

1

Vous devez supprimer tous les attributs

[assembly: MathWorks.MATLAB.NET.Utility.MWMCROption ("- nojit")] 

de tous les lieux, auquel ont été ajoutées pour 2012a MCR.

+0

Fou que je ne me souvenais même pas que – Gilad