Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: different Behaviour of controls according to login Pin
Expert Coming15-Feb-09 21:09
Expert Coming15-Feb-09 21:09 
AnswerRe: different Behaviour of controls according to login Pin
Nuri Ismail15-Feb-09 21:43
Nuri Ismail15-Feb-09 21:43 
GeneralRe: different Behaviour of controls according to login Pin
Expert Coming15-Feb-09 21:57
Expert Coming15-Feb-09 21:57 
AnswerRe: different Behaviour of controls according to login Pin
MumbleB15-Feb-09 22:08
MumbleB15-Feb-09 22:08 
AnswerRe: different Behaviour of controls according to login Pin
arun_pk15-Feb-09 23:24
arun_pk15-Feb-09 23:24 
QuestionC# :: Updating SQL Table Form DataGridView Pin
WinSolution15-Feb-09 21:00
WinSolution15-Feb-09 21:00 
QuestionHow to show a selected treeview node' s attribute & value in listbox using C#? [modified] Pin
rasingh115-Feb-09 20:57
rasingh115-Feb-09 20:57 
QuestionHow to Debug C# Class Library that is invoked by an external Application? Pin
undecypherable15-Feb-09 19:45
undecypherable15-Feb-09 19:45 
Hi All,

I am creating a C# Dll that is invoked by an external application (3rd Party application) and want to Debug my class libray (by setting breakpoints) when it is invoked.

My scenario is:

- External application is running and it triggers my DLL and automatically calls a specific DLL function.

- C# Class Library (dll) is part of a VS2008.NET solution and can be Invoked from External Application:
1. If I Attach it to my "External application process" using "Attach to Process" option.
In this case, I am unable to set the breakpoints as it says "Symbols Not loaded" and when i check in Debug->Modules window, I do not see my .dll loaded.


2. If I add a Windows application project and then "Run" my solution. ("Windows Application" as "Startup Project" and creating an instance of my Class Library in it)
In this case, I can set the breakpoints, but when the function is Invoked by "External Application" it does not stop at the breakpoint.


Can anyone please advice as to how I can debug my Class Library when it is invoked by an external application (unmanaged code)?

Please note, I have set the build and debug configuraion of my class library project to "Debug".

Sample Code (if it helps to understand more clearly):

Class Library
-------------

namespace Sample
{
     public class SampleClass
    {
        public bool SampleFunction(CustomClass vt)
        {

            MessageBox.Show("Hello!"); //I need a Breakpoint here so that i can debug from here onwards
            return true;
        }
    }
}


My External application, invokes method "SampleFunction" automatically on a certain event and passes CustomClass object in it.


Thanks,
AnswerRe: How to Debug C# Class Library that is invoked by an external Application? Pin
pedersen-roxen17-Feb-09 21:07
pedersen-roxen17-Feb-09 21:07 
QuestionSpeech Compare Pin
Rahul Babu15-Feb-09 19:33
Rahul Babu15-Feb-09 19:33 
AnswerRe: Speech Compare Pin
Christian Graus15-Feb-09 19:57
protectorChristian Graus15-Feb-09 19:57 
QuestionRaw Data to Image in C# Pin
Dhaval Faria15-Feb-09 19:21
Dhaval Faria15-Feb-09 19:21 
AnswerRe: Raw Data to Image in C# Pin
Guffa15-Feb-09 19:47
Guffa15-Feb-09 19:47 
QuestionHow to round the result up to the integer? Pin
Ravi Munde15-Feb-09 19:13
Ravi Munde15-Feb-09 19:13 
AnswerRe: How to round the result up to the integer? Pin
S a n d y15-Feb-09 19:34
S a n d y15-Feb-09 19:34 
AnswerRe: How to round the result up to the integer? Pin
Vikram A Punathambekar15-Feb-09 19:43
Vikram A Punathambekar15-Feb-09 19:43 
Questioncan we force the GC to collect memory . Pin
prasadbuddhika15-Feb-09 18:54
prasadbuddhika15-Feb-09 18:54 
AnswerRe: can we force the GC to collect memory . Pin
Gonxh Aniket15-Feb-09 18:57
Gonxh Aniket15-Feb-09 18:57 
GeneralRe: can we force the GC to collect memory . Pin
prasadbuddhika15-Feb-09 19:06
prasadbuddhika15-Feb-09 19:06 
GeneralRe: can we force the GC to collect memory . Pin
Vikram A Punathambekar15-Feb-09 19:47
Vikram A Punathambekar15-Feb-09 19:47 
GeneralRe: can we force the GC to collect memory . Pin
Christian Graus15-Feb-09 19:58
protectorChristian Graus15-Feb-09 19:58 
GeneralRe: can we force the GC to collect memory . Pin
Wes Aday16-Feb-09 4:09
professionalWes Aday16-Feb-09 4:09 
GeneralRe: can we force the GC to collect memory . Pin
N a v a n e e t h15-Feb-09 20:58
N a v a n e e t h15-Feb-09 20:58 
QuestionTreeview document to save existing xml file... Pin
raj23136215-Feb-09 18:47
raj23136215-Feb-09 18:47 
QuestionHow save treeview xml document to xml document Pin
raj23136215-Feb-09 18:46
raj23136215-Feb-09 18:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.