This suggests strongly that the code in fact never gets run. Debug it to figure out why.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925
Make sure that the dll is actually loaded - look in the 'Modules' window
for your DLL and if it's loaded, compare the path with the one you think
you use. Also, consider copying the PDB file along.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
"Igor Tandetnik" wrote:
> .
>
exe is C# compiled at VS 2008. dll is unnamged c++ compiled at VS2003.
after compiling the dll in debug mode, I copied
the corresponding dll, exp, lib, and pdb to the debug folder of exe project.
exe project has debug unnamged codes checked.
When exe start, the codes can step into the dll codes from C# exe project
without problems, ONLY IF I set the starting breakpoint in C#. Howwever,
though I set breakpoint in C++ dll in the same method, my program will not
stop there (regardless different thread or not, just found it).
One thing I just found, if I set breakpoint at C# codes, I can actually step
into the C++ dll codes. If I set breakpoint in the same method of my C++
codes, program will not stop.
I think maybe I did somthing wrong on the way of set up break point. Where
can I see teh Module window? I did not find it in my windows options in
VS2008.
Thanks
Chris
"Victor Bazarov" wrote:
> .
>
Thanks
Make sure your debugger is set to "mixed" mode, not "auto".
Currently, the dll project is not part of my exe project solution, as they
are compiled at different studio. If I set the breakpoint in dll project,
copy over the dll never get the break point triggered. However, if I open the
cpp file from the solution of my exe project, even at run time, and then set
breakpoint there, it works. Even though I only open a file, not really a
project, and the dll was compiled when the breakpoint was not set.
It is working but I am wondering why. BTW,where can I see that Modules
window you refer to in the first msg?
Thanks
"Victor Bazarov" wrote:
> .
>
I'm not sure I understand that either.
Back in the VC6 (and earlier) days, the only way to debug a DLL was to start the
executable from the DLL project. There was a line in the DLL project settings
which (if memory serves) was called "Executable for debug session". Presumably
the same can be done using the "Command" line in the new IDE. Does this work?
--
David Wilkinson
Visual C++ MVP
"David Wilkinson" wrote:
> .
>