 |
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
I'm writing an app that supports plugins, using the SimplePlugins library.
Plugins live in a separate subfolder.
Both the app and its plugins reference the SimplePlugins DLL.
For the plugins, the SimplePlugins assembly performs a sanity check to ensure that the plugin module includes at least one object derived from PluginBase (that lives I the SimplePlugins assembly).
So in the grand scheme of things, the app loads first, and uses the SimplePlugins creates a new app domain for each plugin assembly, and then performs said sanity check which calls the IsSubclassOf reflection method.
The sanity check fails unless I change the Copy local property for plugin's reference to SimplePlugins.DLL to false.
My question:
Why doesn't IsSubclassOf find the specified derived type without setting Copy local to false? Is it because I'm crossing app domains? Is it because the plugin is loading a different copy of the SimplePlugins DLL?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
 |
I have an application using System.DirectoryServices.AccountManagement. This exe is in network and almost all user can run the application. For one user, The error is displayed as follows:
Unhanded exception has occured in your application. Could not load file or assembly 'System.DirectoryServices.AccountManagement, Version 3.5.0.0, culture =neutral Public key token = .b77assks778wsdcsd8' or one of its dependencies. The system cannot find the fie specified.
He is having the .Net framework 3.5 and 4. Can some one help me resolving the issue.
Thanks in advance.
|
|
|
|
 |
That's the wrong public key token. It should be b77a5c561934e089.
Is that a typo in your question? If not, it sounds like his .NET installation is corrupt.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
dear sir ,
i want filter data from database using two date time picker and one text box to get accurate filtered record in datagridview
please help me
|
|
|
|
 |
Member 12367484 wrote: please help me Help with what? You need to explain where you are stuck and what part of your code is not working.
|
|
|
|
 |
How can I detect a VPN connection?
How can I detecting application request from VPN, Is it possible?
modified 22-Jul-16 5:24am.
|
|
|
|
 |
A VPN connection to what?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
There is any way for detecting client request is from Virtual Private Network or directly client computer?
|
|
|
|
 |
A client request TO WHAT?
You haven't told us anything about your application.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
Not under normal circumstances.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
I suspect the IP address, workstation id, user id, logon type, etc. might give you a clue.
Checkout the Windows Security logs.
|
|
|
|
|
 |
mInternauta wrote: I need something that can store various files in a container (like a virtual disk). ..something like a file-archive (like PkZip, LHA), but without the compression?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
Eddy Vluggen wrote: ..something like a file-archive (like PkZip, LHA), but without the compression?
The only problem with these algorithms is that there is a reconstruction of the file when an entry is removed or added.
What becomes unusable.
|
|
|
|
 |
mInternauta wrote: The only problem with these algorithms is that there is a reconstruction of the file when an entry is removed or added. Similar to a VHD, a file being modified is being written to. Having hooked a Dokan to a ZIP-file, it simply feels like a file-system.
Alternatively, you'd use a local database.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
Eddy Vluggen wrote: Similar to a VHD, a file being modified is being written to. Having hooked a Dokan to a ZIP-file, it simply feels like a file-system.
Alternatively, you'd use a local database.
Do you recommend any particular compression algorithm?
|
|
|
|
 |
You'd be using it as a file-archive, so I assume you're more interested in speed than getting a good compression. PkZip has (just like some others) the option "not to compress" anything. Meaning you'd have a (or multiple) dumb container(s) for storing/retrieving files.
You may want to create a test-setup and compare this to a local SQLite database; I'm not sure which of the two would perform better.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
Thanks, i'll make some tests.
|
|
|
|
 |
You're welcome
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
There are no "random exceptions"; you need to isolate the problem so you can consider an appropriate action (fix; abandon; whatever).
Work with one "file type" at a time instead of a "lot of files" starting out.
|
|
|
|
 |
This is a backup software so i need it to work with any file type. I've tried to isolate the problem, but it would take a long time to understand the algorithm and fixes it.
|
|
|
|
 |
mInternauta wrote: but it would take a long time to understand the algorithm and fixes it
That's why they pay you the big bucks.
Seriously, if you have a well-known library that is crashing all the time, then you are probably using it outside the bounds it was intended to be used. I would:
0. RTFM! and check that you are using the APIs correctly.
1. Check for limits on file storage (number of files that may be stored, upper limits on file sizes)
2. Check for limits on container size
3. Check for limits on the file-system containing your container (e.g. FAT32 can only handle files up to 4GB in size)
4. ...
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|