473,498 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reinitialize a dll

A few days ago I posted the below as result of the kind reply from
Bruce. I still need an answer on:
Thanks a bunch for your reply!

What does it mean for dll to support a "reinit". How is this defined?

Regards /Snedker

bruce barker skrev:
a recycle only unloads the appdomain, it does not restart the worker
processes. this means unmanaged dlls are not unloaded. when it reloads
the dll are reloaded, if your 3rd party dll don't support a reinit then
they will not work.
>
-- bruce (sqlwork.com)

Morten Snedker wrote:
>I'm not sure if this is the right group, but:

When the IIS performs a recycle on an given Application Pool, the
website on this pool seems to loose references to third-party DLL-files
in the bin-folder.
>>
We then have to start/stop the site go get it to work.

The recycling is now disabled to avoid the issue.

Any ideas as to why?
Regards /Snedker
Oct 19 '07 #1
2 1605
What he meant was that unmanaged (non-.NET) dlls are *not* in the AppDomain
to get unloaded it only holds managed assemblies.
Does that help?

--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Morten Snedker" wrote:
A few days ago I posted the below as result of the kind reply from
Bruce. I still need an answer on:
Thanks a bunch for your reply!

What does it mean for dll to support a "reinit". How is this defined?

Regards /Snedker

bruce barker skrev:
a recycle only unloads the appdomain, it does not restart the worker
processes. this means unmanaged dlls are not unloaded. when it reloads
the dll are reloaded, if your 3rd party dll don't support a reinit then
they will not work.
>
-- bruce (sqlwork.com)
>
Morten Snedker wrote:
>I'm not sure if this is the right group, but:
>>
>When the IIS performs a recycle on an given Application Pool, the
website on this pool seems to loose references to third-party DLL-files
in the bin-folder.
>>
>We then have to start/stop the site go get it to work.
>>
>The recycling is now disabled to avoid the issue.
>>
>Any ideas as to why?
>>
>>
>Regards /Snedker
Oct 19 '07 #2
Nah, not really.

The third party dll is a .net dll and should be a part of the
AppDomain. But after the IIS performs a recycle every night, these
third-party dll's aren't accessable. Disabling the recycle works - but
that's not at long term solution.

Thanks for your reply.

/Snedker

On 19 Okt., 19:36, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yohohhoandabottleofrum.comwrote :
What he meant was that unmanaged (non-.NET) dlls are *not* in the AppDomain
to get unloaded it only holds managed assemblies.
Does that help?

Oct 19 '07 #3

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

Similar topics

5
1705
by: Martin DeMello | last post by:
Within Blender, I have access to a list of Objects, each Object containing a list of Meshes and each Mesh a list of Faces. I'd like to implement a face iterator, with both a next() and a prev()...
7
2695
by: Steve Jorgensen | last post by:
Here is some code to generate code for raising and getting information about custom errors in an application. Executing the GenerateXyzErrDefs procedure generates the code. <tblXyzError>...
21
10102
by: Steve - DND | last post by:
I know it's possible to require inheriting classes to implement a particular function or property, but is it possible to require a inheriting class to implement a constructor of it's own? ...
9
2509
by: ruca | last post by:
How can I declare a global variable in my .js file, that I can preserve her value each time I need to call any function of .JS file in my ASP.NET application? Example: var aux=null; function...
1
6587
by: Nicholas Holder | last post by:
A client creates a connection to the server using the TCPListener/Client classes and transfers data via a NetworkStream. When the client connects, the server creates a process and redirects its...
2
1099
by: dgk | last post by:
It's our testing server and someone managed to zap it so that Default Web Site won't start. It complains about some file being in use. Can we reinstall IIS and start over without scrapping the...
1
2578
by: Seigfried | last post by:
An array can be initialized with code like this: Dim myArray() as String = {"1", "2", "3"} What I'd like to do is reinitialize the same array. Something like the statement: myArrray = {"4",...
4
4881
by: souravmallik | last post by:
I have a structure declared in a header file, and its initialized in the header file too. struct rectype{ char out_storenum; unsigned int out_usrcode; unsigned int...
2
1433
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I have the following class: public class Test private shared mObject as Object = New myclass.object .... Normally, a new instance of that class will share the existing value of mObject. ...
0
7125
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
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7203
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...
1
6885
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
7379
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...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1417
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 ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.