473,395 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Breakpoint in the invoked assembly

Hi all,
I dynamically load assembly and call invoke. But in this case I can't set a
breakpoint in the source code of the assembly. So my question is:
I need a way to break somehow in the dynamically loaded (.Load(byte[]))
assembly. Can I set programmatic brekapoint, if yes how ?
Thanks
Boni
Nov 17 '05 #1
2 1768
I dynamically load assembly and call invoke. But in this case I can't set a
breakpoint in the source code of the assembly. So my question is:
I need a way to break somehow in the dynamically loaded (.Load(byte[]))
assembly. Can I set programmatic brekapoint, if yes how ?


If you app's design allows, try to use another version of Load
(Load(byte[], byte[]) and pass the contents of the assembly's PDB file
in the second parameter. Then you should be able to debug the assembly
on source level, including breakpoints.

Regards,
Oleg
[VC++ MVP]

Nov 17 '05 #2
Thanks Oleg,
I will try that.
"Oleg Starodumov" <com-dot-debuginfo-at-oleg> schrieb im Newsbeitrag
news:Oh**************@TK2MSFTNGP10.phx.gbl...
I dynamically load assembly and call invoke. But in this case I can't set
a
breakpoint in the source code of the assembly. So my question is:
I need a way to break somehow in the dynamically loaded (.Load(byte[]))
assembly. Can I set programmatic brekapoint, if yes how ?


If you app's design allows, try to use another version of Load
(Load(byte[], byte[]) and pass the contents of the assembly's PDB file
in the second parameter. Then you should be able to debug the assembly
on source level, including breakpoints.

Regards,
Oleg
[VC++ MVP]

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Lavery | last post by:
Hi all, We've got a vb.net assembly (dll), which is exposing a COM interface so it can be called from our legacy VB6 application. When we call a particular method (which is designed to return...
4
by: Wal Turner | last post by:
Consider the following simple class: public class ClassA { public static string VAR = "hello"; } public void MethodA() { while(true)
3
by: c0uch | last post by:
the first and third methods are in a usercontrol object. txtValue is a TextBox the float.parse in the if statement on line 3 always works fine. the second float.parse in the third method is...
1
by: Jennyfer Barco | last post by:
Hello I have a question. I have a project called "Primary" and in that project I have a reference to a Com application called "engine". In "engine" I have a function that does many things and calls...
1
by: John F | last post by:
Hello, I'm dynamically loading a child form saved in a DLL. I have this code working and it's pretty straightforward. What I'd like to do is pass an object type to an invoked method in the...
0
by: noleander | last post by:
Hi. Ive been using Visual C++ for two years on an application. The application is one solution, containing 10 projects. 9 of the projects build libraries (*.lib). I've been debugging the...
6
by: Bruce | last post by:
I have a reference assembly that I wrote. The assembly can throw exceptions. I am handling these exceptions but, when running my code from VB, VB still insists on setting a breakpoint where the...
7
by: goldie11 | last post by:
Hi Everyone, I don't know why - but suddenly when I put breakpoints on some pages of my application, the breakpoints change into empty circle with some exclamation icon on the right bottom of...
2
by: Ronny | last post by:
I use C# in VS2005 and can't set a data breakpoint(the option is disabled). Is that normal? Is there a workaround? Regards Ronny
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.