matPutVariable() -> matrix::serialize::WrongSize at memory location
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm using Microsoft Visual Studio 2012 . I copied ' matcreat.c ' (from Matlab examples), I compiled it (succesfully), and I tried to run it in debug mode.
At first, it seems to work correctly. It generates an output file 'mattest.mat' containing the variables 'GlobalDouble', 'LocalDouble' and 'Localstring'.
But when I look at the 'output window' in VS, I notice that there are problems while executing the matPutVariable() function :
_First-chance exception at 0x000007FEFD83940D in Project1.exe: Microsoft C++ exception: matrix::serialize::WrongSize at memory location 0x00000000002DED90.
First-chance exception at 0x000007FEFD83940D in Project1.exe: Microsoft C++ exception: matrix::serialize::WrongSize at memory location 0x00000000002DED90.
First-chance exception at 0x000007FEFD83940D in Project1.exe: Microsoft C++ exception: matrix::serialize::WrongSize at memory location 0x00000000002DEDA0.
First-chance exception at 0x000007FEFD83940D in Project1.exe: Microsoft C++ exception: matrix::serialize::WrongSize at memory location 0x00000000002DEDA0.
First-chance exception at 0x000007FEFD83940D in Project1.exe: Microsoft C++ exception: matrix::serialize::WrongSize at memory location 0x00000000002DEDA0.
First-chance exception at 0x000007FEFD83940D in Project1.exe: Microsoft C++ exception: matrix::serialize::WrongSize at memory location 0x00000000002DEDA0._
What is causing this, and more important : how can I fix it?
With kind regards.
0 commentaires
Réponses (1)
Philip Borghesani
le 14 Avr 2015
Modifié(e) : Philip Borghesani
le 14 Avr 2015
First-chance exceptions are frequently normal. If you were to debug MATLAB you would see many thousand first chance exceptions. Matcreat has no try catch blocks and checks status returns so it is unlikely that this is an actual problem. Uncaught exceptions known as second-chance exceptions will cause program termination and an error message.
This looks normal to me. I compiled and ran matcreat.c with R2015a and saw 3 WrongSize first-chance exceptions, other MATLAB versions may have a different number of exceptions.
0 commentaires
Voir également
Catégories
En savoir plus sur C Shared Library Integration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!