|
There are two sides to the dll problem - YOUR dlls, and 'system' dlls.
Your dlls are part of your app, they are compiled from code you write, and that you could change.
System DLLs are like the MFC DLLs, that will not change unless you change your development environment.
Move the system dlls to the local systems, so they are always available. Keep your dlls & executable on the network, but, like you said, force load them.
It's been years since I've done VC++/non- managed, so I don't remember any system calls for loading DLLs.
Top of my head, put a 'known' method in each of the dlls (like 'void LoadGrahicsDLL(); ' in graphics.dll). Spin off a thread that calls each of them after a minute or so, so it is not directly affecting your load time. I know there are also ways to force the dll to load by name. This link may help, and there are other CodeProject DLL loading articles as well.
Delayed DLL Loading[^]
I have not looked at this in detail, but it is C++, not sure if managed or not.
Another thing you could do is to make a directory in temp or even 'program files', and copy any dlls there when you load, and than force load the dlls from there. In affect, installing on the fly.
I guess you could even take this to the extreme, and have a small program that is the one the users think they are loading that makes sure the local copy is correct and starts the real (local) program. You just have to figure out a way to keep them from figuring out that is the real app and running it directly.
This leads to all kinds of testing scenarios to determine what would die, and at what stage it would.
All of this to say that no, now I'm not sure how to catch the exception, or if there even is an exception available to catch.
I remember that we used to have a similar problem with a local net deployed app (during testing), and just wrote it off as a cost of having network deployment. I don't recall that we did or did not get a log entry. We just told the test team that of course it would die if the exe came across the network, and they pulled the network cable out.
Silver member by constant and unflinching longevity.
|
|
|
|
|
Windows is a demand-paged operating system. It only reads pages from executables as they are referenced. If the OS has lost contact with the file system that the executable came from, when a new page that hasn't been used before (or was discarded because it hadn't been used recently) is referenced, an error may occur. If it does, Windows cannot continue executing the process and so kills it.
There are linker flags which you can use to tell the linker to mark the executable so that the OS reads the whole file into the swap file before beginning execution. Use /SWAPRUN:NET to mark for network execution and /SWAPRUN:CD to mark for removable disks such as CD-ROM. You can use editbin to mark the executable after linking.
"Multithreading is just one damn thing after, before, or simultaneous with another." - Andrei Alexandrescu
|
|
|
|
|
After quite some time I finally tried out your suggestion today and it seems to solve my problem.
Thank you so much!
|
|
|
|
|
I have someone with a laptop, with a partitioned HDD. The main partition is now full, but there is space available on the other one. Is there a tool I can use to combine the two, without formatting, on XP?
|
|
|
|
|
Many resize tools to choose from such as Symantec's Partition Magic, Paragon's Hard Disk Manager, and many others from this Google Query[^].
(caution to back up first just in case or corruption etc...)
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I have a situation where I may need to set up email accounts for different users on shared machines. Am I correct in assuming that the Email Account settings in Outlook are specific to the logged on user? I don't want one user doing a send and receive and Outlook doing it for all accounts, only for that user's account.
|
|
|
|
|
Brady Kelly wrote: Am I correct in assuming that the Email Account settings in Outlook are specific to the logged on user?
Yes, they are user-specific.
|
|
|
|
|
In device manger, hardware update wizard is not found.I am using windows xp.
Can an body tell me how to enable this wizard
Thanks in advance
With regards
Deepu
|
|
|
|
|
Hi,
I want to create a batch file that should run 3 different .exe that are placed in a single folder and the location of the folder could be anywhere in the system. Is there a command in batch file that allows me to run the .exe from their current location? Please help
Cheers!
Ethen
|
|
|
|
|
If my memory serves me correctly, you will need to set up search paths and to do this you will need to execute the SET PATH command to set these up for example :
SET PATH=C:\;C:\WINDOWS;D:\MYSTUFF\PROGS
Then when you attempt to execute an executable program, the operating system will search the paths set in order, until the program is found or all paths have been checked.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
|
hi everyone,
I ve a requirement of a project to develop on RTOS (Real Time Operating System).
So, i want to know which FREE RTOS should be chosen for project that does serial port communication?
How does it work?
And the main Question : which are the languages that are supported for such application development?
Any answer or hint will be appreciated....
Regards,
-SIFAR.
|
|
|
|
|
Totally out of my league, but a good start on where to look is often wikipedia[^].
|
|
|
|
|
The only thing I can suggest there is learn a hell of a lot of assembly and the c language
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
Win2000 Backup - restore - gets stuck. Either wizard or without it gets stuck in "Enter backup file name".
I have rearranged my dynamic disks and need to restore original data.
So far I managed to do only one backup! Eight more to go and I am really frustrated with the process.
Any clue what is happening?
Thanks for reading
Vaclav
|
|
|
|
|
Dear,
I need help in vb/vb.net to check wheather installed drivers (i.e) lan drivers, sound cards, etc are properly installed.
For eg., mycomputer->properties->devicemanager will give all the details of the driver installed in the machine, but this is manual involves user interaction.
But through either vb/vb.net i need to give status of the installed drivers to check wheather it is properly installed or not.
|
|
|
|
|
Hi, I have a problem about the limit of the power resource at my work place. My office have a server with 40 clients. The power will cut off around 6pm or 6:30pm and will be available again around 6:30am in the morning (because of the fuel price growth to high the management decide to cut the power). It is really difficult for me to manage the server. Because I couldn't perform any task such as backup and schedule to clearn virus at the weekend.
One thing that I concern is about the scheudle to shutdown the server. Sometime the power was cut off before the schedule reach its time. My purpose it, how could we detect the UPS of the server when it detect that if there is no power supply around 30 second then it will shutdown the server. I know the command to shutdown the server immediately but i don't not know how could we detect the power on UPS when it is disconnect. Does anyone has any idea? Thank in advance!!!
|
|
|
|
|
There are some UPS in the market available having the functionality on showing the USP capability to the machine using a serial BUS......
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
What brand and model UPS is it?
|
|
|
|
|
|
This model is equipped with both a USB and a serial connector. So you can connect a cable to the server and install the APCs own program (Powershute) for handling the shutdown of the server.
|
|
|
|
|
Thank you very much for your support. I will try to do it and when if i have any question i will return to you. Thank
|
|
|
|
|
Hello again, I alreay install the software of this UPS and connect the UPS with the server via USB port. But I found nothing happend when the power is cut off.
As I check with event viewer I Found the following error and information:
Event Type: Error<br />
Event Source: APCPBEAgent<br />
Event Category: None<br />
Event ID: 3005<br />
Date: 12/12/2008<br />
Time: 7:50:51 AM<br />
User: N/A<br />
Computer: SERVER<br />
Description:<br />
"Communication Not Established"<br />
<br />
Event Type: Error<br />
Event Source: APCPBEAgent<br />
Event Category: None<br />
Event ID: 3003<br />
Date: 12/11/2008<br />
Time: 5:58:47 PM<br />
User: N/A<br />
Computer: SERVER<br />
Description:<br />
"UPS Battery Is Discharged"<br />
<br />
Event Type: Error<br />
Event Source: APCPBEAgent<br />
Event Category: None<br />
Event ID: 3030<br />
Date: 12/11/2008<br />
Time: 5:58:41 PM<br />
User: N/A<br />
Computer: SERVER<br />
Description:<br />
"Insufficient Runtime Available"<br />
<br />
Event Type: Information<br />
Event Source: APCPBEAgent<br />
Event Category: None<br />
Event ID: 1061<br />
Date: 12/11/2008<br />
Time: 5:51:30 PM<br />
User: N/A<br />
Computer: SERVER<br />
Description:<br />
"AVR Boost No Longer Active"
This most problem that occure is an Event ID 3030. This event occure every minute. If you have any comment or solution please let me know. Thank in advance
|
|
|
|
|
It most probably means that the UPS has been running after the power outtage the evening before until the battery is flat and then shuts off.
It takes a day or so to recharge the battery to have what the UPS is considering to be enough power.
The default setting of Powerchute, if I remember correctly, is to keep on running until there is five minutes of power left and then signal to the server to shut down.
I would change this setting to shutting down the server five minutes after the power outtage.
This way you're going to save a lot of battery life time, lead-acid batteries likes to stay fully charged.
And the server will still be shut down is a nice way, which will keep your databases happy.
|
|
|
|
|
Jörgen Andersson wrote: It takes a day or so to recharge the battery to have what the UPS is considering to be enough power.
God!!! my office power just run from 7am to 7pm. And that time that we need to run our server. I don't know when the battery will be charge that UPS is considering to be enough power. As your expereince do you know how long (nearly exact time) that UPS could be fully charge?
Jörgen Andersson wrote: I would change this setting to shutting down the server five minutes after the power outtage.
Where did you change this setting?
Thank for your help
|
|
|
|