Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
2
Erster Beitrag:
vor 4 Jahren, 11 Monaten
Letzter Beitrag:
vor 4 Jahren, 11 Monaten
Beteiligte Autoren:
stefan.kern, Cesar Flores

.Net Assemblie (.dll)

Startbeitrag von Cesar Flores am 05.08.2013 14:50

Hi all.

i imported a dll as a .NET Assemblie, this dll has two methods
one of this encrypt and the other decrypt both with same parameters.

when i use the encrypt function all works fine, but when i try with decrypt method the following error is displayed:

Error at line 39 of Local Procedure ValidatePass (server) process.
Unable to invoke method of type

----- Technical Information -----

Project : C1_Origin

WL call:
Process of 'Local Procedure ValidatePass (server)' (PAGE_Login.PROCEDURE.ValidatePass), line 39, thread 0

What happened?
Unable to invoke method of type

Error code: 200002
Level: fatal error (EL_FATAL)

Dump of the error of 'wd170net4.dll' module (17.0.35.0).
Identifier of detailed information (.err): 200002
Additional Information:
EIT_PILEWL :
Local Procedure ValidatePass (server) (PAGE_Login.PROCEDURE), line 39
Click of BTN_Aceptar ( CELL_NoName1 ) (server) (PAGE_Login.BTN_Aceptar), line 12
EIT_DATEHEURE : 05/08/2013 09:37:47

----- Sub-error #1 -----

What happened?
Error returned by .NET Framework:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Probable I/O race condition detected while copying memory. The I/O package is not thread safe by default. In multithreaded applications, a stream must be accessed in a thread-safe way, such as a thread-safe wrapper returned by TextReader's or TextWriter's Synchronized methods. This also applies to classes like StreamWriter and StreamReader.
at System.Buffer.InternalBlockCopy(Array src, Int32 srcOffsetBytes, Array dst, Int32 dstOffsetBytes, Int32 byteCount)
at System.Security.Cryptography.PasswordDeriveBytes.ComputeBytes(Int32 cb)
at System.Security.Cryptography.PasswordDeriveBytes.GetBytes(Int32 cb)
at Encriptacion.CryptoProvider.Decrypt(String cipherText, String passPhrase, String saltValue, String hashAlgorithm, Int32 passwordIterations, String initVector, Int32 keySize)
at Encriptacion.CryptoService.Decrypt(String cipherText, String passPhrase, String saltValue, String hashAlgorithm, Int32 passwordIterations, String initVector, Int32 keySize)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CDotNetMethod.bInvoke(Char* pszTypeName, Char* pszMethodName, Char* pszParameters, MethodInfo gcMethod, Object gcObj, CSLevel* pclPile, Int32 nNbParamPile, Int32 bValeurRetour, STOperationDotNet* pstOperation)

Error code: 200007
Level: fatal error (EL_FATAL)

Dump of the error of 'wd170net4.dll' module (17.0.35.0).
Identifier of detailed information (.err): 200007

does any one have any idea!

Note:
when imported the .dll new types of variables where included like
int16, int32, int64

already try with this but when i try to assign a value like:
N is int32 = 2 an error shows "Incompatible types during assignment"
[attachment 593 Capture.PNG]

Antworten:

Hi,

is your app an multithreading application ?

Regards

Stefan.

von stefan.kern - am 05.08.2013 21:02
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.