Accueil → WINDEV 2024 → Always problems with .net
Always problems with .net
Débuté par mimmo, 28 sep. 2022 16:26 - 1 réponse
Posté le 28 septembre 2022 - 16:26
Hello everybody
I don't want to be boring but I have this problem with .net
Unfortunately it seemed to have disappeared, now it has reappeared
The mistake is this

Exception has been thrown by the target of an invocation

I state that I load the dlls with net assembly

This happens to me when I do a Dynamic instantiation of a .NET object
That is a new object
This is a small piece of code but it gives an error

pclWaveSource is dynamic object "NAudio.Wave.Wavein"
pclWaveSource = new "NAudio.Wave.WaveIn"

the library is nAudio, the error gives it on "new"

The weird thing is that this code worked for a month, two days from failure.
I don't find documentation explaining how to correct it
Thank you for any suggestions.


Posté le 29 septembre 2022 - 10:32
One caveat the error is generated by a desktop application