[Mono-list] Consuming unmanged code, global/static variables, ASP.NET pages

Chris Harris chrisandharris at gmail.com
Wed Feb 22 14:01:56 EST 2006


Looking for some guidelines on consuming some of our library (in C) into
.NET for use with ASP.NET pages

I'm concerned about our global and static variables that are needed in some
of our libraries.  In a single threaded C# application this would be no
problem.  Initialize the libraries at startup, destroy on close.

But for ASP.NET pages, how would I handle initialization, since multiple
pages are being served at the same time making use of these libraries?

Would I initiailze for each page request as needed in the C# code behind
page?  Or is this going to have problems when multiple requests are issued?
Also what about a function that contains a static variable?

Basically these are the questions I have, but I just can't find any
resources to explain how ASP.NET applications are threaded, and how it would
effect consumption of unmanaged libraries.  If anyone can even point me in
the right direction I'd be very grateful.

TIA,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060222/9b0dffc9/attachment.html


More information about the Mono-list mailing list