Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Calling native code from .Net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne Garvander - 11 Feb 2008 14:28 GMT
I call native code from my .net app
 <DllImport(SENDFORMPDFTest, EntryPoint:="FORMEXIST", _
               SetLastError:=True, CharSet:=CharSet.Ansi, _
               ExactSpelling:=True, _
               CallingConvention:=CallingConvention.Winapi)> _
The DLL works fine on localhost and production, but hangs on my test server.
Localhost and and test server has a new revision. We tried to put a log file
into the DLL, but nothing gets written to the logfile.
How can I trouble shoot this problem?
Signature

Arne Garvander
Certified Geek
Professional Data Dude

bruce barker - 11 Feb 2008 16:31 GMT
you want windbg and the sos.dll. see

   http://msdn2.microsoft.com/en-us/library/ms954594.aspx

-- bruce (sqlwork.com)

> I call native code from my .net app
>   <DllImport(SENDFORMPDFTest, EntryPoint:="FORMEXIST", _
[quoted text clipped - 5 lines]
> into the DLL, but nothing gets written to the logfile.
> How can I trouble shoot this problem?
Arne Garvander - 11 Feb 2008 22:51 GMT
My DLL needed a dependent DLL that could not be found.
I relinked my DLL with static linking to the dependent DLL. That solved my
problem.
Signature

Arne Garvander
Certified Geek
Professional Data Dude

> you want windbg and the sos.dll. see
>
[quoted text clipped - 11 lines]
> > into the DLL, but nothing gets written to the logfile.
> > How can I trouble shoot this problem?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.