C# .NET app. debug version works well, but Release version doesn't

G

Guest

Hi everyone,
I've a C# .NET application that works as expected when
built in the debug mode. However, it behaves strangely when built in the
Release mode.

Having the .pdb file included makes the applications work well. Can anyone
please suggest on this problem?

There are a number of try/catch blocks and trace/debug statements in the
application code. I was wondering if this has any bearing on the Release
build. Please suggest.

Thank you
Ravi
 
L

Lloyd Dupont

Hi everyone,
I've a C# .NET application that works as expected when
built in the debug mode. However, it behaves strangely when built in the
Release mode.
could you more explicit?
what, for example, do you call "behave strangely"?
 
G

Guest

Hi Lloyd,
I've a code that uses Win32 API. I trace the events of various
windows and handle them to perform some actions. These events are available
through the Windows AccessibleEvents.

With the Release version, some of the events are being unnecessarily thrown
for some process with a negative ID. This does not occur with the Debug
version. This is causing the application to close by itself in the Release
version.

Any suggestions would be greatly appreciated.

Thanks
Ravi.


In the Release mode,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top