Prevent DLL source from being displayed on exception


Ashkan Mobanin Kiabani

I have some custom build dll libraries that I built myself. Apparently I have some error handling in my code and a custom exception is thrown

If(Error)
     throw new Exception("Something went wrong!");

The problem is that when the application uses the library and an exception that I have defined is thrown, Visual Studio displays the source code of the dll library when the exception is thrown.

Is there a way to prevent Visual Studio from showing the source code of the breakpoint to the application itself, the called method that caused the exception?

Example: If System.File.WriteAllTextan exception is thrown, the code doesn't show its source, System.IO.dllthrow the exception to my own code

Ashkan Mobanin Kiabani

As Hans Passant suggested. I have to use the release version of the dll to hide the source code from being shown.

Related


Prevent data with the same ID from being displayed

Itsawawz I want to prevent repetition of amaun_caj, amaun_pelbagai, amaun_penalti, amaun_tunggakan, so if the id_akaun is the same, the data will not appear, my code only works on amaun_caj, and for the rest, no single data appears, what is the problem? <?php

Prevent Arraylist values from being displayed twice in Java

Tidi Rastogi I have a method that returns an arraylist. But Arraylsit shows its value twice. The code is - ArrayList<Double> ref_jsp=new ArrayList<Double>(); public ArrayList<Double> refernece(String name) throws SQLException, ParseException { String fi

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

Prevent "undefined" errors from being displayed in PHP

Steve I have PHP code that is trying to read a lot of values that may or may not exist. These failed reads show "undefined" errors. I can mute it with something like if(!empty($meta['image_1_url'])) $image_1_url = $meta['image_1_url']; But I'd rather PHP not

Prevent Arraylist values from being displayed twice in Java

Tidi Rastogi I have a method that returns an arraylist. But Arraylsit shows its value twice. The code is - ArrayList<Double> ref_jsp=new ArrayList<Double>(); public ArrayList<Double> refernece(String name) throws SQLException, ParseException { String fi

Prevent DLL source from being displayed on exception

Ashkan Mobanin Kiabani I have some custom build dll libraries that I built myself. Apparently I have some error handling in my code and a custom exception is thrown If(Error) throw new Exception("Something went wrong!"); The problem is that when the appl

Prevent commands from being displayed in batches

Brendon Shaw I just installed MinGW on a Windows 10 machine and set up the sample program so I can test that it works. I use a batch file so that I can keep the program running pause. However, when testing I got: command prompt I just want the output to be dis

Prevent PDF web links from being displayed inside Microsoft Edge

Diving suit When using Microsoft Edge in Windows 10 (v1803), if I click a web link (like this one ) to a PDF file , Edge will open the PDF in a tab using its internal PDF viewer. How can I configure Edge to open PDFs in the default external PDF viewer such as

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

How to prevent application DLL from being decompiled?

Majid Khalili As far as I know, some applications decompile DLLs to get source code from application files. Not only do I not want others to have the source, but I don't want others to use the source, I mean the DLL file. So how should I lock down the DLLs, an

Prevent data with the same ID from being displayed

Itsawawz I want to prevent repetition of amaun_caj, amaun_pelbagai, amaun_penalti, amaun_tunggakan, so if the id_akaun is the same, the data will not appear, my code only works on amaun_caj, and for the rest, no single data appears, what is the problem? <?php

Helpers that prevent text from being displayed

User 3924026 This helper should look for hashtags and make them routes/links. Instead, it makes the text invisible. How can I fix this? Here is the code: handlebar.js Handlebars.registerHelper('hashtag', function(posttext) { posttext.html(); posttext =

Helpers that prevent text from being displayed

User 3924026 The helper should look for the hashtag and set it as a route/link. Instead, it keeps the text from being displayed. How can I fix this? Here is the code: handlebar.js Handlebars.registerHelper('hashtag', function(posttext) { posttext.html();

How to prevent application DLL from being decompiled?

Majid Khalili As far as I know, some applications decompile DLLs to get source code from application files. Not only do I not want others to have the source, but I don't want others to use the source, I mean the DLL file. So how should I lock down the DLLs, an

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

Prevent DLL source from being displayed on exception

Ashkan Mobanin Kiabani I have some custom build dll libraries that I built myself. Apparently I have some error handling in my code and a custom exception is thrown If(Error) throw new Exception("Something went wrong!"); The problem is that when the appl

Prevent commands from being displayed in batches

Brendon Shaw I just installed MinGW on a Windows 10 machine and set up the sample program so I can test that it works. I use a batch file so that I can keep the program running pause. However, when testing I got: command prompt I just want the output to be dis

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

``Empty values prevent the row from being displayed

bexi I want to display all students in a database based on the address entered by the user. Some are eligible, some are not. I still want to show their details anyway, but I'm having a hard time working with students who don't qualify. The following code throw

Helpers that prevent text from being displayed

User 3924026 The helper should look for the hashtag and set it as a route/link. Instead, it keeps the text from being displayed. How can I fix this? Here is the code: handlebar.js Handlebars.registerHelper('hashtag', function(posttext) { posttext.html();

How to prevent application DLL from being decompiled?

Majid Khalili As far as I know, some applications decompile DLLs to get source code from application files. Not only do I not want others to have the source, but I don't want others to use the source, I mean the DLL file. So how should I lock down the DLLs, an