Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7916881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:58:11+00:00 2026-06-03T14:58:11+00:00

I am running into a wall with the whole p/invoke issue. I need to

  • 0

I am running into a wall with the whole p/invoke issue. I need to do this programmatically in C#.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:58:13+00:00Added an answer on June 3, 2026 at 2:58 pm

    I did the p/invoke stuff (with the LSA wrapper) a couple of weeks ago. I got an exception the first time I run the wrapper, but it succeeded the second time on Win2k8 server 64 bit.

    Something like this worked for me

    try{
       DoThePInvokeMagic();
    }
    catch(Exception){
        // Sometimes the first invocation fails, but the second time it seems to work       
        DoThePInvokeMagic();
    }
    

    Unfortunately we did not have time/prio to investigate further why this happened and why it worked the second time, since we got it working on all our servers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be a simple thing to do, but I'm running into a wall
This should be trivial, but my brain is running into a brick wall tonight.
I've been running my head into a wall trying to figure this out. Take
I am running into a wall regarding changing the password and was wondering if
I think I'm running into an inheritance conceptual wall with my Java arrays. I'm
My application keeps running into Timeout Expired SqlExceptions. The thing is that this query
EDIT: I am basically running into the following documented issue . I am using
I'm running into problems implementing statuses for a model. This is probably due to
This seems like it would be a simple question but I keep running into
Note(update): No need to read this entire wall of text.. problem + solution further

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.