|
like i said i need a reference but if cant give any so it's fine
|
|
|
|
|
Reference for what?
Designing the entire application? You're not going to find one.
Working with SQL Server from your code? Easy, just Google for "C# working with SQL".
Working with ASP.NET? "C# ASP.NET tutorials"
If you're looking for a guide to walk you through building the entire app step-by-step, you're going to be sorely disappointed.
You were given all the reference material you need in class.
|
|
|
|
|
Yeah, no one is going to write this for you and the chances of you finding a program on the 'Net that does what you want is practically 0.
The point behind this project is to show that you have learned something and that you can apply what you've learned. Apparently, you're only prepared to show you figured out what Ctrl-A, Ctrl-C, Ctrl-V does when you "write" code.
|
|
|
|
|
no offence but ure right but i just need a reference but if you don't have any in mind so it's ok, chill
|
|
|
|
|
You were just given a bunch of references appropriate to your problem
|
|
|
|
|
Of course I can. I will even supply you with documentation. The application will cost you £120,000 and we will work out an annual support agreement.
|
|
|
|
|
thanks for the offer but it's simply one of those "make it n then leave it" so sorry mate i just need a working program so i can have an idea on how to approach to this project
|
|
|
|
|
Complete application? Are you kidding? This is like some school kid asking us to complete his homework. You think that's right task? It won't help him. Same way it won't help you. Project work's purpose is to assess your skill & other things so you should start research on your project instead of asking someone to complete your project.
Let me tell you something....
In past, many students asked questions(some were project related) on following things
0) Choosing a project topic Ex.
1) Tutorials/articles related to some concepts. Ex. Algorithms
2) Choosing architecture for their project. Ex. Client-Server or N-Tier
3) Asked for reference books. Ex. Useful Reference Books[^]
4) Asked for course websites. Ex. Lynda, Pluralsight
5) Career suggestions
6) Interview
7) etc.,
If you have any question(s) like from above list, we're happy to help you.
|
|
|
|
|
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, or learn the Magic Words: "Do you want fries with that?"
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Just go to codeplex.com and start searching.
Any project there that uses C#, vb.net, WPF, etc. would be a "Visual Studio" project.
Probably a "recipe tracker" would fit the bill (i.e. db maintenance).
|
|
|
|
|
Hello all and thanks for reading me. I have a simple console application in c# that gets a continuous stream from a camera. the pseudo code is
bool takepicture = false
while (true)
{
Stream
Stream some more
if (takepicture)
{
capture and save the image to a file
takepicture=false
}
}
In the end what i would like to do is for a Visual Basic !!!!!!!! program to be able to call my c# console app and when something happens in the visual basic (like press a button) it will change the variable takepicture to true. I don't even know if this is possible and if it is what should i be searching for?
Thanks again.
modified 9-May-14 9:15am.
|
|
|
|
|
Yes, it's possible alright. You're talking about inter-process communication. Why do you want to use VB though?
Also, because both C# and VB.NET compile down to the same thing you could probably just reference the C# assembly from your VB code if it could run in-process.
Regards,
Rob Philpott.
|
|
|
|
|
A possible solution could be to have the VB application update a text / xml etc file, which would be polled by the c# console app to check if the user wants to take a snapshot. Maybe !
Everyone dies - but not everyone lives
|
|
|
|
|
if yes can you give me clear idea about that.
|
|
|
|
|
|
some of my classes implementing IDisposable, then it came up in my mind to test how the IDisposable works.
so i try this.
public class cc : IDisposable
{
bool isDisposed;
int[] sampleData;
public cc()
{
sampleData = new int[50000000];
}
~cc()
{
Dispose(false);
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
public void Dispose(bool isDisposing)
{
if (!isDisposed)
{
if (isDisposing)
{
sampleData = null;
}
}
isDisposed = true;
}
public void smp()
{
for (int i = 0; i < 50000000; i++)
{
sampleData[i] = i;
}
System.Threading.Thread.Sleep(20000);
Console.WriteLine("middle");
Console.ReadLine();
}
public void s2()
{
int[] ssss = new int[50000000];
for (int i = 0; i < 50000000; i++)
{
ssss[i] = i;
}
}
}
now creating the object and calling the smp() method, the program memory consumption increase about 100mb to 150mb then after the object was disposed, i was expecting that it will the memory it will consumed but even i leaved the program open for several minutes, still it doesn't release the memory.
why is that happen? i already try to test it in debug mode and check the sampleData variable after disposed it was NULL.
is there wrong it there?
BTW on the method s2(), does ssss will release the memory if the object is destroyed?
modified 9-May-14 7:11am.
|
|
|
|
|
It sounds like you have a slight problem with your understanding of how freeing up memory affects the memory allocated - there's no shame in that as it's not the most intuitive area. Basically, when you observe your .NET application running, the memory that you see is the memory that the .NET runtime has requested be allocated to run. Allocation of memory is a costly process, so the runtime grabs it in big chunks and doesn't necessarily release it when it has done a GC sweep. Simplistically, your application keeps a chunk of free memory available that it can grow into (in the same way that a serial dieter may keep old clothes that are several times larger just in case they put the weight on again). If the OS demands memory, your application will generally release this unallocated memory (equivalent to charity shops becoming really aggressive and coming round to your house and demanding old clothes).
|
|
|
|
|
So do you mean that even the object is already disposed, the memory it consumed will not decrease until the OS will demand it?
|
|
|
|
|
Or the .NET runtime decides it no longer needs it.
|
|
|
|
|
thank you very much,
one more question.
in the method s2()
public void s2()
{
int[] ssss = new int[50000000];
for (int i = 0; i < 50000000; i++)
{
ssss[i] = i;
}
}
i declared the variable "ssss" and it is not exposed out side of the method, what will happen to it if the object is disposed?
|
|
|
|
|
It gets freed. Anything that is no longer in scope or no longer has a reference to it gets freed/disposed.
|
|
|
|
|
thank you so much to all response, it help me to fully understand the IDisposable
|
|
|
|
|
I want to call a URL for a specified number of time even if there is a timeout exception or any other exception.
is there a method in c# which does this?
|
|
|
|
|
Just wrap the call in a loop and put the call itself inside a try/catch block.
|
|
|
|
|
I have to draw a rectangle using lines whose co-ordinates and measures are already provided.
In the below code, if I call CloseFigure function. C# assumes the drawing is incomplete and hence it draws an another line diagonally to close the rectangle.
If I use a AddRectangle function, the drawing is complete. No issues with that.
How can I complete a drawing, properly using lines?
private void OnPaint(object sender, PaintEventArgs e)
{
Pen redPen = new Pen(Color.Red, 2);
// Create a graphics path
GraphicsPath path = new GraphicsPath();
// Add two lines, a rectangle and an ellipse
Graphics g = e.Graphics;
path.StartFigure();
path.AddLine(20, 20, 20, 400); // left
path.AddLine(20, 20, 400, 20); //top
path.AddLine(400, 20, 400, 400); // right
path.AddLine(20, 400, 400, 400); // bottom
path.CloseFigure();
//This will close the drawing, by drawing a line between starting and ending point
}
|
|
|
|