Calling native code from .Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QXJuZSBHYXJ2YW5kZXI=?=

    Calling native code from .Net

    I call native code from my .net app
    <DllImport(SEND FORMPDFTest, EntryPoint:="FO RMEXIST", _
    SetLastError:=T rue, CharSet:=CharSe t.Ansi, _
    ExactSpelling:= True, _
    CallingConventi on:=CallingConv ention.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?
    --
    Arne Garvander
    Certified Geek
    Professional Data Dude
  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Calling native code from .Net

    you want windbg and the sos.dll. see

    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.



    -- bruce (sqlwork.com)


    "Arne Garvander" wrote:
    I call native code from my .net app
    <DllImport(SEND FORMPDFTest, EntryPoint:="FO RMEXIST", _
    SetLastError:=T rue, CharSet:=CharSe t.Ansi, _
    ExactSpelling:= True, _
    CallingConventi on:=CallingConv ention.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?
    --
    Arne Garvander
    Certified Geek
    Professional Data Dude

    Comment

    • =?Utf-8?B?QXJuZSBHYXJ2YW5kZXI=?=

      #3
      RE: Calling native code from .Net

      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.
      --
      Arne Garvander
      Certified Geek
      Professional Data Dude


      "bruce barker" wrote:
      you want windbg and the sos.dll. see
      >
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

      >
      >
      -- bruce (sqlwork.com)
      >
      >
      "Arne Garvander" wrote:
      >
      I call native code from my .net app
      <DllImport(SEND FORMPDFTest, EntryPoint:="FO RMEXIST", _
      SetLastError:=T rue, CharSet:=CharSe t.Ansi, _
      ExactSpelling:= True, _
      CallingConventi on:=CallingConv ention.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?
      --
      Arne Garvander
      Certified Geek
      Professional Data Dude

      Comment

      Working...