FabulaTech Forum (https://www.fabulatech.com/forum/board-networkserialport-action-display-num-37319804.html)
Serial Port Solutions >> Network Serial Port Kit >> Debugging with the NSPK's ApiDll.dll
(Message started by: rhayek on Aug 17th, 2005, 4:03pm)

Title: Debugging with the NSPK's ApiDll.dll
Post by rhayek on Aug 17th, 2005, 4:03pm
In trying out the NSPK's ApiDll.dll, I was able to incorporate the functions into my VC++ source code, and run my application to create and remove shared ports with the expected results. However, I ran into the following problem:
The software works fine when I compile and link my source code (which calls the NSPK API DLL functions), then run it by executing the executable file. But it takes almost 30 seconds to load the library when I try to run my application from the VC++ debugger, after which it works fine.

I tried it both ways: by linking ApiDll.lib statically into the application, and when I load it with LoadLibrary(_T("ApiDll.dll"));

Thanks in advance for any help.

Title: Re: Debugging with the NSPK's ApiDll.dll
Post by Andrew on Aug 18th, 2005, 3:45am
Our answer will be sent to your email address.