Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DLLImport cause crash in naviswork plugin

1 REPLY 1
SOLVED
Reply
Message 1 of 2
firemousefish
535 Views, 1 Reply

DLLImport cause crash in naviswork plugin

Hi,

 When I write a plugin for naviswork, and I use DllImport to interget a unmanaged wrap C++ library, it crashed all the time. It works when I create a seperate C# windows form application.

 

Class Function

[DllImport("MyDll.dll",

  CallingConvention = CallingConvention.Cdecl,

  CharSet = CharSet.Unicode)]

public static extern void MyFunc(int a);


 

Function.MyFunc(2)

 

It cause crash in naviswork with unhandle exception.

 

Anyone has idea why this happen? or naviswork plugin doesn't support DllImport?

 

Thanks

1 REPLY 1
Message 2 of 2

 solved, check the naviswork 32bit or 64bit, it need to be consistent with dll

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report