Hi, i'm running into a wall right and need some help cause the program i'm working on just won't get to run as it should. It says it's missing a dll but that file is in the same folder as the .exe and don't know what to do about this.
To be more precise i'm making a new Thread run and call a function that is on this custom dll. Could someone explain what i'm doing wrong or how to fix this? Thanks.
System.Dll NotFoundException
Re: System.Dll NotFoundException
If you run Wine from the folder that contains the exe file, it should find the DLL file as well.
Or you could use wine start
If this does not help, you can use the loaddll and module winedebug channels to see what is going wrong.
Or you could use wine start
Code: Select all
cd /path/to/exe
wine program.exe
# or
wine start /unix /path/to/exe/program.exe
Code: Select all
WINEDEBUG="+loaddll,+module" wine program.exe
Re: System.Dll NotFoundException
Thanks, this has demostrated that other dll's are being loaded but not this one i need in particular. Also tried to register this dll but couldn't.
Re: System.Dll NotFoundException
Does the DLL file appear in the debug output? Or is the file just skipped?
You could also try to copy the DLL file to ~/.wine/drive_c/windows/system32/ or ~/.wine/drive_c/windows/syswow64.
You could also try to copy the DLL file to ~/.wine/drive_c/windows/system32/ or ~/.wine/drive_c/windows/syswow64.
Re: System.Dll NotFoundException
Have been looking it closer, seems it tries to load, and it does, but it puts me off that (wrapper managed-to-native) text..
if i take away the dll and move it to other place it makes no effect appart from the exception.message displaying psnetworkstatus.dll instead of psNetworkStatus_startHostStatusService2 inside the breakpoint log I made, thanks for the help.
Code: Select all
[2023/05/24 - 12:02:33.106] CheckConnectionStatus: C:\TPOSI\bin
0138:trace:loaddll:build_module Loaded L"C:\\TPOSI\\bin\\psnetworkstatus.dll" at 000000000AA90000: native
System.EntryPointNotFoundException: psNetworkStatus_startHostStatusService2 assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) wnstefconsole.Controller.psNetworkStatus_startHostStatusService2(intptr)
at wnstefconsole.Controller.ComprobarEstadoConexion () [0x00985] in <5b8f269a2ae347d68eda3ac1de1e51ea>:0
[2023/05/24 - 12:02:33.119] CheckConnectionStatus: General error checking connection status. System.EntryPointNotFoundException: psNetworkStatus_startHostStatusService2 assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) wnstefconsole.Controller.psNetworkStatus_startHostStatusService2(intptr)
at wnstefconsole.Controller.ComprobarEstadoConexion () [0x00985] in <5b8f269a2ae347d68eda3ac1de1e51ea>:0
[2023/05/24 - 12:02:33.119] BREAKPOiNT: This is where problem is
[2023/05/24 - 12:02:33.119] BREAKPOiNT: psNetworkStatus_startHostStatusService2 assembly:<unknown assembly> type:<unknown type> member:(null)
[2023/05/24 - 12:02:33.119] BREAKPOiNT: -------------------------------------------------------------------------------