Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mce16 opened this issue May 5, 2020 · 4 comments
Open

Comments

@mce16
Copy link

mce16 commented May 5, 2020

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.

@theseankelly
Copy link
Member

Can you use loader snaps to determine the missing dll?

https://docs.microsoft.com/en-us/archive/blogs/junfeng/debugging-loadlibrary-failures

@mce16
Copy link
Author

mce16 commented May 7, 2020

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

@theseankelly
Copy link
Member

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
Copy link
Author

mce16 commented May 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants