Click here to Skip to main content
15,902,938 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Moving large files, delayed write error in XP Pro SP2 Pin
Dave Kreskowiak20-Oct-08 5:17
mveDave Kreskowiak20-Oct-08 5:17 
GeneralRe: Moving large files, delayed write error in XP Pro SP2 Pin
RichardM120-Oct-08 6:11
RichardM120-Oct-08 6:11 
Questionproblems with application being launched from network drive Pin
T.T.H.8-Oct-08 23:36
T.T.H.8-Oct-08 23:36 
AnswerRe: problems with application being launched from network drive Pin
RichardM19-Oct-08 13:23
RichardM19-Oct-08 13:23 
GeneralRe: problems with application being launched from network drive Pin
T.T.H.9-Oct-08 22:09
T.T.H.9-Oct-08 22:09 
GeneralRe: problems with application being launched from network drive Pin
RichardM110-Oct-08 13:34
RichardM110-Oct-08 13:34 
GeneralRe: problems with application being launched from network drive Pin
T.T.H.12-Oct-08 22:56
T.T.H.12-Oct-08 22:56 
GeneralRe: problems with application being launched from network drive Pin
RichardM113-Oct-08 14:11
RichardM113-Oct-08 14:11 
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. Roll eyes | :rolleyes:

Silver member by constant and unflinching longevity.

AnswerRe: problems with application being launched from network drive Pin
Mike Dimmick19-Oct-08 0:26
Mike Dimmick19-Oct-08 0:26 
GeneralRe: problems with application being launched from network drive Pin
T.T.H.5-Feb-09 2:50
T.T.H.5-Feb-09 2:50 
QuestionCombine partitions without formatting? Pin
Brady Kelly8-Oct-08 6:01
Brady Kelly8-Oct-08 6:01 
AnswerRe: Combine partitions without formatting? Pin
User 17164928-Oct-08 8:21
professionalUser 17164928-Oct-08 8:21 
GeneralUser Accounts vs EMail Accounts Pin
Brady Kelly7-Oct-08 7:35
Brady Kelly7-Oct-08 7:35 
GeneralRe: User Accounts vs EMail Accounts Pin
Dave Kreskowiak7-Oct-08 10:11
mveDave Kreskowiak7-Oct-08 10:11 
GeneralHardware Update Wizard not found Pin
Deepu Antony7-Oct-08 0:45
Deepu Antony7-Oct-08 0:45 
QuestionNeed help in Batch files Pin
Ethen5-Oct-08 23:25
Ethen5-Oct-08 23:25 
AnswerRe: Need help in Batch files Pin
Steven J Jowett8-Oct-08 9:51
Steven J Jowett8-Oct-08 9:51 
QuestionJust a note for anyone worrying about windows security (And that before someone logs in!) Pin
LloydA1114-Oct-08 13:32
LloydA1114-Oct-08 13:32 
QuestionReal Time OS Pin
Sifar - 02-Oct-08 20:02
Sifar - 02-Oct-08 20:02 
AnswerRe: Real Time OS Pin
Jörgen Andersson3-Oct-08 2:23
professionalJörgen Andersson3-Oct-08 2:23 
AnswerRe: Real Time OS Pin
LloydA1114-Oct-08 12:51
LloydA1114-Oct-08 12:51 
QuestionWin2000 Backup stuck in "Enter backup file name" Pin
Vaclav_1-Oct-08 12:42
Vaclav_1-Oct-08 12:42 
QuestionHow to detect status of driver installed in PC Pin
Member 456732525-Sep-08 2:16
Member 456732525-Sep-08 2:16 
QuestionProblem to detect power cut off Pin
Mekong River24-Sep-08 23:33
Mekong River24-Sep-08 23:33 
AnswerRe: Problem to detect power cut off Pin
vimal_yet25-Sep-08 1:28
vimal_yet25-Sep-08 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.