- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I get different results for the debug and release versions of a call to a DLL subroutine with a missmatched argument list. We are using a DLL plugin that we set up to "attach" multiple times with different internal data sturctures. We accidentally added the handle to the version subroutine in the first version of the plugin. Since the version routine cannot use the handle argument, we are removing it from the new versions, but we wanted to use the same subroutine name. So, we tested the connection with a missmatched argument list, and we are getting different results with release and debug versions. P.S. we load the DLL to pointers and assign the pointer immediately before each call to allow different plugins to be used as well as differnt internal data structures with the same plugin.
Original:
Subroutine Version(handle, version_structure)
New:
Subrougine Version(version_structure)
TYPE Version_t
INTEGER :: Major_Version
INTEGER :: Minor_Version
INTEGER :: Build_Number
INTEGER :: Revision_Number
END TYPE Version_t
When we load the old plugin with two arguments onto the new kernel with one argument in debug mode we get the correct data out of the version_structure. (Unexpected, but interesting.)
When we load the old plugin with two arguments onto the new kernel with one argument in release mode we get zeros back in the version_structure.
Does the debug code load the arguments differently? Or use the argument name somehow? Why does this work for debug but not for release mode?
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable