-1

I have a problem: different behavior of the same code (same .exe).

When I run my app in Debug mode (VS 2015), it behaves as expected.

Running this app in Release mode is also fine.

However, after packaging (packaging tool is "NugetPackageExplorer.exe", I use Squirrel.windows to make and install .exe file), when I install my .exe, the application does not behave normally.

Has anyone experienced a similar problem? I'm so confused and can't solve this, since I can't use the debugger.

Thank you for reading my question. Please answer.

P.S. Before considering a downvote, please let know me the reason in the comments.

1
  • already i try Top MENU - > Debug -> Attach to Process. after Attach to Process, it is so normal, but without debuger it isnt normal...... Commented Oct 10, 2019 at 9:29

2 Answers 2

1

I answer myself.

enter image description here

few days ago, i modify Class Name IdleTimeFinder to NativeMethods. IdleTimeFinder's role is just check the time that the user does not use PC.

after roll back all of code operate normally.

Sign up to request clarification or add additional context in comments.

Comments

0

I have experienced a similar issue in the past. It turns out that the heap is allocated differently if you run with the debugger attached. Here's the answer with details: an answer to a similar question. That said, turning off the debug heap didn't solve my problem (or advance my understanding of it).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.