I'm writing a tool to report information about .NET applications deployed across environments and regions within my client's systems.
I'd like to read the values of assembly attributes in these assemblies.
This can be achieved using Assembly.ReflectionOnlyLoad, however even this approach keeps the assembly loaded. The issue here is th...
I have a module that uses ctypes to wrap some functionality from a static library into a class. When the module loads, it calls an initialize function in the static library. When the module is unloaded (presumably when the interpreter exits), there's an unload function in the library that I'd like to be called. How can I create this hook...
My goal is to have this program send a logout command when the user is logging off or shutting down their pc.
The program is connected to a server application via a tcp socket using a Winsock object. Calling singleSock.SendData "quit" & vbCrLf is simply a way of logging out. I am going to start capturing data with Wireshark, but I'd l...
Is it possible to create a cookie after a user has deleted his/her browser cache (+cookies) entirely?
E.g.
Predefined variables loaded into memory
var userID = 1337;
var IP = 222.222.222.222;
var trackingUID = 'LaughingAtDancingFooBars';
If the above method of storing the data doesnt work, perhaps storing the data inside the document...
For example on a page I have
$(document).ready(function()
{
$('#some-element').click(function()
{
// do something..
});
});
Do I also need to add the unbind code - or will jQuery automatically do this for me?
$(window).unload(function()
{
$('#some-element').unbind();
});
...
We are loading an assembly (a DLL) which reads a configuration file. We need to change the configuration file and then re-load the assembly. We see that after loading the assembly the 2nd time, there is no change in the configuration.
Anyone see what is wrong here? We left out the details of reading in the configuration file.
AppDomai...
I've created an object called loginInterface in flex builder. When this object is initialized it loads the login interface, creating buttons, input boxes and so on.
I created a method for this object called unload. I also have a method which returns whether the interface has been loaded yet. Now, I want to unload the object so that the ...
(Just so you know I am learning to develop for iphone, without interfacae builder)
I'm coding my first multi-view app, which has a root viewcontroller and two other viewcontrollers, and the root viewcontroller uses lazy loading, so when viewDidLoad, it creates the first viewcontroller and adds its view to the subview, but doesn't create...
I'm trying to have a php script run when the user navigates away from the page. This is what I'm using currently:
function unload(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ...
My MFC ActiveX is simple active. I make it by MFC ActiveX template of Visual Studio 2008.
i just add call show message dialog when ActiveX destroy to test.
CmfcActivexCtrl::~CmfcActivexCtrl()
{
AfxMessageBox(_T("destroy"));
}
I open my page embed this ActiveX. After I navigate to other address.
if i disable skype-addon then mes...
Hello.
I'm using a third party COM component by means of a .NET interop assembly in IronPython, as seen here: http://stackoverflow.com/questions/1237200/how-can-i-use-a-vb6-com-reference-in-ironpython
My experience in this area has been great, I'm very impressed by the amount of stuff that works seamlessly... except one thing.
The 3rd...
I have some C# code (let's call it "script") I am compiling at runtime. It uses an interface in my main program that I use to access its functions. Once compiling is done I have CompilerResults.CompiledAssembly in which case I can CreateInstance(Type).
Once I am done using the script I would like to unload completely. From what I und...
Hi,
its very simple. I have a self made jQuery hidden content switch.
I use jQpanView in the Div´s.
It only works, when I load the jQpanView for every hidden content DIV once. But then, it also starts the function for every clicked tab again.
Here we go:
the problem example
.
The link
<a href="#" id="apozin_30_pic1" class="apozin_3...
At runtime, I'd like to be able to unload a DLL and reload a modified version of it. My first experiment went down in flames. Can anyone tell me why? Thanks in advance!
private static void Main()
{
const string fullPath = "C:\\Projects\\AppDomains\\distrib\\MyLibrary.dll";
// Starting out with a version of MyLibrary.dll which o...
I have a Window that contains a custom UserControl. The UserControl needs to know when the Window containing it has been closed so that it can terminate a thread.
My best guess as to how to accomplish this is to handle the UserControl's Unloaded event. However, the Unloaded event only seems to be firing when the user actually clicks t...
Can I rely on the window unload event to be triggered when a user closes a tab/window/browser?
Edit:
Found a list of what triggers the unload event in IE. http://msdn.microsoft.com/en-us/library/ms536973%28VS.85%29.aspx
I would like to know in which edge cases the unload event won't be triggered.
...
Hi,
I have a XML image gallery created within a custom class.
This is the way I add the gallery to stage:
var mainContainer:MovieClip = new galleryXML(stage, "xml/image_gallery.xml");
This works perfectly.
But I'm thinking in setup my navigation in the same way. Creat the pages within custom classes and them loading them as I lo...
Hi
I loaded some content in a DIV with AJAX. Then, i loaded different content from content that i loaded before. But it seems, previous loaded content is not gone, cuz there is a conflict between same named elements.
is there a way to clean up that previously loaded content?
Thanks in advance
...
I'm building a WPF navigation app, with pages.
I want to ask the user if he want to save the changes when he leaves a page.
Is there a way to do it?
...
I'm testing some code that does work whenever assemblies are loaded into an appdomain. For unit testing (in VS2k8's built-in test host) I spin up a new, uniquely-named appdomain prior to each test with the idea that it should be "clean":
[TestInitialize()]
public void CalledBeforeEachTestMethod()
{
AppDomainSetup appSetup = new A...