|
Hi led mike,
Basically, there is a possibility that the dll can be given wrong input, and as a result, can get into a state that is tough to recover from. The dll wasn't designed for this kind of input, but it is a small probability and I don't want the user's application to crash as a result. Thus, if I could simply blow away the AppDomain and bring it up again without the user ever knowing, that would be phenomenal.
Is this any clearer?
Thanks,
klk
madness ? this.isSparta = true : this.isSparta = false;
|
|
|
|
|
Can you load a native DLL into an AppDomain? I don't believe so.
Do you have the DLL code?
It would work much better if the DLL is (or is a part of) a managed assembly.
If you have the code for the DLL, I would think proper error handling
in the DLL is a much better solution.
Otherwise, making the DLL a managed assembly will work fine, but you
may want to consider the implications - performance, marshaling across
the appdomain boundary, etc...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: If you have the code for the DLL, I would think proper error handling
in the DLL is a much better solution.
Yes. And if you don't have, and since it sounds like it's a pile of garbage, the next thing to consider is replacing it with your own code.
led mike
|
|
|
|
|
K.L.K wrote: Is this any clearer?
No. Do you see Mark is still asking you questions?
led mike
|
|
|
|
|
hello sir,
i am using vs.2005 .how can i use msde 2000 deployment with vs.2005 because
it does not appear in tool>addinmanager .this works fine with vs2003
but i dont understand how to use it with vs2005
thanks in advance
|
|
|
|
|
I have an web application ,i want to introduce touch screen in the application which is in .net framework.
I have no idea about how to integrate touch screen concept in the web application...
can any one help me please.
Hope you may help with logic to integrate.
Atleast give me the links where i can get information.
i think ,it's embedded related, i need some external hardware is what i think!!!
Anyway please help me out...
Thank you in advance...
|
|
|
|
|
I think that all u have to do is to plug the touch screen and start browsing. Nothing to add to the code unless u want to use some additional feature from the vendor's APIs.
Off course your controls should be larger to suit human fingers
Hope this helps
Best Regards
3ala2
|
|
|
|
|
Hi all.
I've searched around and can't find a solution to a pickle i'm in.
I'm writing a type of auto-complete selection process. I would like the box to highlight the
closest match as a user types in text.
Given a list of strings such as
R05
R09
R087
R321
R3394
G5832
If the user types in R09
String.Compare will return R05, R09, R087, R321, R3394
I want to find the string that has the largest match (In this case R09)
I could write a routine that does this, but didn't know if one exists in an assembly somewhere...
Anyone have any thoughts?
Thanks,
Tom
|
|
|
|
|
Youll have to write a custom method that does this using the String.StartsWith() method:
And, considering the example you gave, I feel you should process your textbox text in a loop that will do the following:
str.StartsWith("R09");
str.StartsWith("R0");
str.StartsWith("R");
So, the loop would decrement the index of the textbox string and check each time with - "R09","R0" and "R".
|
|
|
|
|
You may want to look for articles on "natural string comparison".
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
I'm having a little trouble trying to complete a fairly simple C# remoting app I found in a tutorial.
The server includes a declaration of an event-handler delegate the server class uses and the event argument class for the event. The client is then supposed to associate its event handler to the server's event (e.g., server.eventname += new eventhandlername(client.handler) ), periodically do things to raise the event, and finally remove its handler from the server's handler list when the client closes.
When I try to run the client, however, the server throws the following exception:
"An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
"Additional information: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level."
I'm reading this as some sort of a code access permissions problem, but so far I haven't been able to quite chase it down, much less figure out how to correct the problem. The event argument class definition in the server is marked as Serializable, but the event-handler delegate isn't; should it be? That doesn't seem right to me, but I'm obviously not getting something....
Thanks,
Ron Ritchie
|
|
|
|
|
Hello? Anybody there?
Ron Ritchie
Ron Ritchie
|
|
|
|
|
I am not sure if this is the correct form, but as I think the problem is a result of something in .NET I am posting here.
Running a program (written in C# and using .NET 2.0) on a local machine. Using that program to access a file on a network drive, working on the file (the file is a SEGY file, like a JPEG, and lines are overlaid on the file, information about the lines get saved while the SEGY file is unchanged), and saving the work as a text file. It appears, depending on the size of the file trying to be written, the program hangs. A file of 900K can be written successfully, but when the program hangs it stops with about 230K written (working on a local machine only the save which hangs on a network drive works fine). Adding a flush after each write 'appears' to solve the problem (appearing to solve the problem isn't good enough). The writes are in a for loop, running in debug and adding a break point inside the loop, the break point is not tripped.
Has anyone had any experience with this or can they point me where I may be able to find an answer?
this thing looks like it was written by an epileptic ferret
Dave Kreskowiak
|
|
|
|
|
Looks like FTP problem to me.
What's the O.S. installed on the images server?
Best Regards
3ala2
|
|
|
|
|
I would like to know is there any release/build engineer related information is present here at CodeProject. I'm working as Technical support engineer and engaged into release of asp.net/sql server based files. I need to know any information/ group for this over here.
thanks
Raj
rajesh
|
|
|
|
|
I've read this three times and I am still not sure what you're asking for.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi cris,
I 'm asking about information for release tools like NAnt, Cruise Control
thanks
raj ram
raj
|
|
|
|
|
rajg82 wrote: I 'm asking about information for release tools like NAnt, Cruise Control
Click the Site Map link under NEWS & COMMUNITY. There is a Development Lifecycle category that has an Installation sub category that lists 93 articles. I have no idea what's in there but it sounds like thats what you want to look at, yes?
led mike
|
|
|
|
|
thanks mike, the same i'm looking for
raj
|
|
|
|
|
Hello everyone,
I am actually preparing for a job interview and I had my first telephone interview last week. One of the things that came up in the discussion was generation of .NET bytecode directly!
Well, I am not supposed to know how to go about it, I guess but it would be nice to talk about it intelligently in the interview. Does anyone know where I can get some information about it and if someone has tried doing something like that. It would definitely be nice to be able to suggest some ways one can go about it etc.
Many thanks,
Keith
|
|
|
|
|
|
|
CodeDom.Compiler just is a wrapper around the C# compiler/VB compiler.
CodeDom is nearly useless for generating code because it supports only a few operators, I've often run into cases where CodeDom cannot generate the code I wanted.
And a call to an external compiler is quite expensive if you just want to dynamically generate a method!
Usually, generating .NET bytecode directly means Reflection.Emit[^].
|
|
|
|
|
Hi Guys,
While i understand the differenced between the operator and the Equals method, is there a rule of thumb for when to use them in code?
I've always tended to use == for value comparisons of known types (strings, ints, etc), and Object.Equals() when comparing unknown objects.
I have a colleague who insists on using Object.Equals() for every comparison, and while i don't like it, i can't think of a reasonable reason not to use it.
What are other peoples thoughts on this?
Cheers
Tristan
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Tristan Rhodes wrote: While i understand the differenced between the operator and the Equals method, is there a rule of thumb for when to use them in code?
If you did understand it, you wouldnt be asking
== and ReferenceEquals is more closely related, and == does ReferenceEquals if not overriden.
You can see the effect with structs/valuetypes, create 2 structs of the same type, and go through all 6 permutations of equality tests.
|
|
|
|