|
So what's your question?
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I forgot to say that when navigate through a "Collection" o "Semantic association" the same "Entity" instance can be accessed by different way - i can find the book "It" under the "King book" collection or under the "Horror book" collection and in both case the next(previous) instance depend on the structure i navigate.
Stated that,the main question is:
1) which design pattern can i use to manage this navigational mechanism?
and also :
which class diagram better illustrate the entire problem?
thank you
|
|
|
|
|
I got a pictureBox and I put an image on it.
please show me how to print that image.
Thanks
Rock Throught The Night
|
|
|
|
|
|
Hai,
I am new to C#, Can any one find a solution for my problem. I created an webservice and itz working fine in my localhost but getting error when uploaded in to my webserver, I am getting an error like
Server "\" App
please give me a solution
Thanks in Advance
VV
|
|
|
|
|
Nice double post. You'll probably be waiting a long time for this one.
Vinod2508 wrote:
please give me a solution
This is very cocky!
Yes, I program in VB6, but only because I use it to fill my addiction to having a dry place to sleep and food to eat!
|
|
|
|
|
Hai,
I am new to C#, Can any one find a solution for my problem. I created an webservice and itz working fine in my localhost but getting error when uploaded in to my webserver, I am getting an error like
Server "\" App
please give me a solution
Thanks in Advance
VV
|
|
|
|
|
Be more specific. What is the entire exception type and message? Typically, when you move a web application and get errors, it's either because some dependent assembly isn't located on the server (or at least where you think it is) or because you hard-coded paths and they aren't the same. With the actual exception text, it's impossible to say.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thankz for your reply
Can u please tell me the step to host an web service
I have created an web application on local host and it is working fine on my localhost. When I uploaded it in to my remote host it gave me error. what I have done is that
Copied my application directory in to a virtual directory on host which have .net support.
Waiting for Your Valuable reply
Thanks in advance
|
|
|
|
|
That virtual directory should be an application. In the IIS configuration manager, right-click on the directory and click the button to create a new application. If you don't, the Web.config from the root will apply and your Web.config can only override a couple sections (like <authorization> ). Since you still haven't told me the exact error (and if you don't see it, follow the directions about turning custom errors off), I can't tell you what's wrong.
If you need to know more, read the Visual Studio .NET documentation that explains all this. It's important to understand what you're doing.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thankz for your reply
Can u please tell me the steps to host an web service
I have created an web application on local host and it is working fine on my localhost. When I uploaded it in to my remote host it gave me error. what I have done is that
Copied my application directory in to a virtual directory on host which have .net support.
Waiting for Your Valuable reply
Thanks in advance
|
|
|
|
|
I've always tought that when you create a new Item, you should always dispose it when you are finished with it, but when I create a:
Random rand = new Random();
The option to do rand.Dispose() does not exist.
Why is this? And what is the rule on disposeing?
Thanks
Thomas
|
|
|
|
|
Dispose generally exists to clean up unmanaged objects, the garbage collector deals with fully managed objects.
|
|
|
|
|
IMHO, System.Runtime.InteropServices.Marshal.ReleaseComObject(object o) is a better way to "tidy up" unmanaged objects in the pool...
Jeremy Kimball
I have traveled the gutters, lo these many days, with no signs of life. Well met.
-brianwelsch
|
|
|
|
|
not all objects of all class types need to be disposed.
only objects that should releasr some resources like open files , DB/Network connections, Handles.
this soes not apply to Random class.
|
|
|
|
|
Search the documentation for Finalization, Garbage Collection and Disposing. There are plenty of infos on this topic.
Also you could read this article[^] of MSDN magazine.
www.troschuetz.de
|
|
|
|
|
I just read a good debate over some uses of IDisposable interface over at Ian Griffith's blog[^] that you might find interesting.
#include "witty_sig.h"
|
|
|
|
|
Hi all,
In C#.NET, how to launch an slave application from a master application, then the master applicaton can close the slave master if the slave application is not needed anymore ?
And how to pass information between the two applications?
Thanks
|
|
|
|
|
FOr starting application you can use Proccess.Start() method. Fr passing parameter you can see StartInfo propoerty of this class. For closing it I think you have to use some win32 API , I don't remember exactly now which one. Other CPains may help you.
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
Use the static Process.Start methods to launch your slave application. You will need the path of the executable and can optionally specify arguments which will be passed to your application.
Both overloads of the Start method return a object of the Process class. Store it and call the Kill method of this instance when you want to shut down your slave application.
For passing of information between applications, there exist several ways. You could use a socket connection, Remoting or just send Windows messages. It depends on what you want to send, if the communication should be uni- or bidirectional and some other facts.
www.troschuetz.de
|
|
|
|
|
Calling Process.Kill like Stefan said is an option, but it's not a very good one. This terminates the process and leaves the OS to free handles. If you need your process to close these yourself for any reason, use Process.CloseMainWindow then Process.Close . See the method documentation for Process.Close for an example.
To communicate between the two applications, you should consider using .NET Remoting with a TcpChannel if they are both .NET applications. This is by far the easiest way for communications, despite the overhead of TCP (in .NET 2.0, they are adding an IpcChannel ). If they aren't, then there's a myriad of ways to do this from using RPC (you'll have to P/Invoke the necessary APIs in your .NET application) to global memory to shared pipes, etc.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
THX for the correction considering the Process.Kill method. I will remember that
www.troschuetz.de
|
|
|
|
|
I'd like to start a help-project in my VS.Net. The VS-Help states, that I have to start a new project an then follow the instructions of the New Project Wizzard.
But if I do so, there is no New Project Wizzart. How get I back to this wizzard?
Thanks
Ariadne
|
|
|
|
|
Just click on the File menu and select New->Project. There's your "wizard". From there you can create different project types. Some have wizards and some are just templates. In order for a Help project to show up, you need to download the VSHIK from http://msdn.microsoft.com/downloads[^].
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks Stewart!
but if I try to install VSHIK.exe I get
Visual Studio .NET must be installed to run this insallation package
But VS.NET is installed...
Did I something wrong?
|
|
|
|