473,545 Members | 289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Circular referance and latebinding ...

Hi,
I have two dll's like First.dll and Second.dll compiled by vb.net, a object
in first.dll and, b object in Second.dll.
I need hold cross referances;
a.breferance=b and
b.areferance=a
I know this is a circular referance, but I solved this case with latebinding
in VB6.
I can not create late binding with Createobject(". ...") function in VB.NET
2005. I think so this function using for com objects. How can I create
latebindig objects....
Or any idea for cross referances(circ ular referance)...
Thanks for all helps...

Hakan
Mar 6 '07 #1
4 1695
On Mar 6, 12:48 am, "Hakan ÖRNEK" <orn...@gmail.c omwrote:
Hi,
I have two dll's like First.dll and Second.dll compiled by vb.net, a object
in first.dll and, b object in Second.dll.
I need hold cross referances;
a.breferance=b and
b.areferance=a
I know this is a circular referance, but I solved this case with latebinding
in VB6.
I can not create late binding with Createobject(". ...") function in VB.NET
2005. I think so this function using for com objects. How can I create
latebindig objects....
Or any idea for cross referances(circ ular referance)...
Thanks for all helps...

Hakan
Assembly.LoadFr om
Activator.Creat eInstance
etc.

--
Tom Shelton

Mar 7 '07 #2
Hi Tom,
Thanks for help. I 'll try "Assembly.LoadF rom"+"Activator .CreateInstance " .
Thanks again..

Hakan
"Tom Shelton" <to*********@co mcast.netwrote in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
On Mar 6, 12:48 am, "Hakan ÖRNEK" <orn...@gmail.c omwrote:
Hi,
I have two dll's like First.dll and Second.dll compiled by vb.net, a
object
in first.dll and, b object in Second.dll.
I need hold cross referances;
a.breferance=b and
b.areferance=a
I know this is a circular referance, but I solved this case with
latebinding
in VB6.
I can not create late binding with Createobject(". ...") function in VB.NET
2005. I think so this function using for com objects. How can I create
latebindig objects....
Or any idea for cross referances(circ ular referance)...
Thanks for all helps...

Hakan
Assembly.LoadFr om
Activator.Creat eInstance
etc.

--
Tom Shelton
Mar 9 '07 #3
Hakan ÖRNEK wrote:
I have two dll's like First.dll and Second.dll compiled by vb.net, a object
in first.dll and, b object in Second.dll.
I need hold cross referances;
a.breferance=b and
b.areferance=a
I know this is a circular referance, but I solved this case with latebinding
in VB6.
<snip>

Yes, this used to be a problem in VB.Classic because of the way the
garbage collector worked (reference counting). The garbage collector
in .Net doesn't have such problem and you can freely and purposelly
cross-reference, cause everything will -- hopefully -- untangle in the
end.

Therefore, you can have:

a.breferance=b
b.areferance=a

without restraint.

HTH.

Regards,

Branco.

Mar 9 '07 #4
On Mar 9, 10:50 am, "Branco Medeiros" <branco.medei.. .@gmail.com>
wrote:
Hakan ÖRNEK wrote:
I have two dll's like First.dll and Second.dll compiled by vb.net, a object
in first.dll and, b object in Second.dll.
I need hold cross referances;
a.breferance=b and
b.areferance=a
I know this is a circular referance, but I solved this case with latebinding
in VB6.

<snip>

Yes, this used to be a problem in VB.Classic because of the way the
garbage collector worked (reference counting). The garbage collector
in .Net doesn't have such problem and you can freely and purposelly
cross-reference, cause everything will -- hopefully -- untangle in the
end.

Therefore, you can have:

a.breferance=b
b.areferance=a

without restraint.

HTH.

Regards,

Branco.
That is true... I was assuming he meant circular assembly references
and was going to use late binding to avoid them.

assembly a requires typeinfo from assembly b because class a has a
reference to class b.
assembly b requires typeinfo from assembly a because class b has a
reference to class a.

---
Tom Shelton

Mar 9 '07 #5

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

Similar topics

2
3092
by: ernesto basc?n pantoja | last post by:
Hi everybody: I'm implementing a general C++ framework and I have a basic question about circular dependencies: I am creating a base class Object, my Object class has a method defined as: virtual String toString(); where String is defined as:
16
2819
by: Kiuhnm | last post by:
Is there an elegant way to deal with semi-circular definitions? Semi-circular definition: A { B }; B { *A }; Circular reference: A { *B }; B { *A }; The problems arise when there are more semi-circular definitions and
12
7047
by: Frank Rizzo | last post by:
I have a circular reference between 2 classes in the same project (i.e. each class refers to the other). The app runs fine and I am seeing no issues, which kind of surprised me. Are there any issues that I am not seeing (performance wise or garbage collection wise) with circular references? Thanks.
6
5063
by: Stephen Robertson | last post by:
We are currently in a dead end with a circular reference issue using vb.net, and are hoping someone might help us resolve it. Idea... We have frmmain calling frmperson (dim f as new frmperson) in search (no record) mode. When the search is executed, frmperson calls frmsearchresult (dim f as new frmsearchresult) which is a listing of...
0
1224
by: RJN | last post by:
Hi all I'm calling a shared method in the class. This error appears in production though I'm not able to reproduce. Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object args, String paramnames, Boolean CopyBack) Any idea what could be the reason and how to simulate this
0
2049
by: RJN | last post by:
Hi Sorry for posting again. I'm calling a shared method in the class. The following error is found in production though I'm not able to reproduce. Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object args, String paramnames, Boolean CopyBack) Object variable or With block variable not...
7
13510
by: barias | last post by:
Although circular dependencies are something developers should normally avoid, unfortunately they are very easy to create accidentally between classes in a VS project (i.e. circular compile-time dependencies). But then I started wondering how "easy" it would be to similarly make a NON-RUNTIME circular dependency between (implicitly linked)...
1
1444
by: Angelo | last post by:
Ok, I am utilizing the threadpool class to manage a number of threads. Priority is not important to me and neither is if the threads are background or foreground threads so I opted for the threadpool class. The issue is that I am latebinding on several libraries that I have. (They're actually plug-ins.) How would I send the methods to the...
3
1701
by: vimalankvk80 | last post by:
what will happen, if we forget to return ostream referance ? class A { Private: int _a; int _b;
0
7465
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7416
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7752
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.