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(circular referance)...
Thanks for all helps...
Hakan 4 1687
On Mar 6, 12:48 am, "Hakan ÖRNEK" <orn...@gmail.comwrote:
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(circular referance)...
Thanks for all helps...
Hakan
Assembly.LoadFrom
Activator.CreateInstance
etc.
--
Tom Shelton
Hi Tom,
Thanks for help. I 'll try "Assembly.LoadFrom"+"Activator.CreateInstance" .
Thanks again..
Hakan
"Tom Shelton" <to*********@comcast.netwrote in message
news:11**********************@s48g2000cws.googlegr oups.com...
On Mar 6, 12:48 am, "Hakan ÖRNEK" <orn...@gmail.comwrote:
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(circular referance)...
Thanks for all helps...
Hakan
Assembly.LoadFrom
Activator.CreateInstance
etc.
--
Tom Shelton
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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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:...
|
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...
|
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...
|
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)...
|
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...
|
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.
...
|
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...
|
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...
|
by: vimalankvk80 |
last post by:
what will happen, if we forget to return ostream referance ?
class A
{
Private:
int _a;
int _b;
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |