ros2-dotnet/ros2_dotnet

Exception thrown: 'System.DllNotFoundException' in rcldotnet_common.dll

mce16 opened this issue · 4 comments

mce16 commented

Hi

I managed to run the talker and listener example using the binary built. (Windows dekstop).

However, when i try to use the dlls in my Visual Studio 2017 project, although the talker and listener everything seems to run smoothly; i encountered the following in the output:
"Exception thrown: 'System.DllNotFoundException' in rcldotnet_common.dll"

I saw this issue reported by another user before; but the user has actually having another issue at the same time. So i believe not quite related to his. I am just wondering if i should bother about it; if this is just a normal output? because it is sending the output every time the ROS2 codes or function is called.

mce16 commented

Thanks.

I have used the gflags, here is the output from windbg; (the gflags somehow doesn't work with my visual studio debugger, its output doen't show anything, not sure why).

WindowsFormApp1.exe has made a call to RCLdotnet.Init() during initialization.

log.TXT

It doesn't look like any DLL has actually failed to load as of that breakpoint. Let the debugger go and see if it progresses to give any errors about dll loading in the text output.

mce16 commented

Sorry, i think i have attached the wrong log file, it should be this:

The application WindowsFormApp1.exe published successfully though, as i have a rcldotnet_listener getting the message without problem. But in the loader snaps (see attached log) there were a few errors in relation to DLL loading.

log2.TXT