It all depends on the project.. Sometimes it necessary especially when you have a team of programmers with you.. If you are solo - you can cut down alot on the documentation since you are the only one that will understand it.. Aside from that - its rather IMPOSSIBLE to gather good requirements from most clients.. since most have no clue abotu software or technology.. just that they want to make there "stuff" easier.. if you ask themn for details.. they will give you a 1 paragraph summary.... sometimes you can shoot from the hip - which turns out into a total mess if you arent careful.. it almost borders on the evolutionary model which as we know is used when there no requirements or requirements are unknown which in the real world is typically more often the case than not.. would be nice if could follow those steps in a real life scenario - or have others outside the development process - which have the patience to let it flourish.. Danny!
Danny Rodriguez
Posts
-
Design Documents For CodeProject Apps -
A CRY FOR HELP - Threading , Sockets, Asynchronous headachesOkay.. the ordeal continues.. I am still receiving the same problem.. Ive set sockets timeout via the SetSocketOptions but it appears to do nothing with asynchronous sockets. so then i moved onto another solution - which was to create a new thread which would wiat for a certain time period to elapse.. once it does it would manually kill the socket. unfornately this did nothing.. also - i contact the isp and the are not doing anything so that idea is out the door.. any suggestions.. the basic problem is setting a timeout on a socket which is being use in async communications.. any suggestion. im starting to get disperate :( Danny!
-
A CRY FOR HELP - Threading , Sockets, Asynchronous headacheswelp! it appears i spoke to soon - the app stopped working yet again - now its either my isp that keeps blocking or something else - i have resorted to fiddling with the socket options.. :D lets see if this works out.. Danny!
-
How to develop Message Center systemyour post is rather vague.. you should consider elaborating a bit more on what it is you want to do.. certain parts of this system or the entire thing.. Danny!
-
ASP.NET Text Boxwell it appears that you are reloading from the database the same value again from the pageload method of the page objec.t you might want to check to see if you added in the pageload method a mechanism checking for postback. example
... PageLoad( .. ) { if( Page.IsPostBack ) { // save data from textboxs to database and load them into the // page controls } else { // load initial values of the controls on the page } } ...
Danny! -
Visio reverse engineering pluginSince we are on this topic - does architect allow you to forward engineer from uml diagrams? i have yet to use architect edition - but does it give you the same capabilities as rational rose where it generates the code stubs for you from your uml diags? Danny!
-
ArrayList comparsionazusakt wrote: I have 3 ArrayList, each of them stored some string color name, I want to ask how can I check any duplicated strings between them? first off - why do you have 3 arraylist which seem to be related to eachother - wont 1 suffice? azusakt wrote: Ofcourse, I can load all strings from one arrayList, and then use ArrayList.Contains(string) to check. however, any fast way to check this ?? Can I only use ArrayList.Contains() to compare with other ArrayList directly? you might consider changing your datastructure to something that provides constant time mechanisms.. an arraylist is basic - some of the operations performed on it - (i think :D ) are not necessarily constant time complexity. how about something that using a hashing function of some sort ? like for example if you were to have 3 hashtables you could simply do a containskey which is constant time on thme ... you might want rethink what you are doing though - can you suffice with just 1 and then pass a reference to the remain parts of your program that require this datastructure? Danny!
-
A CRY FOR HELP - Threading , Sockets, Asynchronous headachesleppie wrote: Some how I dont think the .NET threadpool is gonna cut that Well instead of using thread pools manually im using them by means of asynchronous communication. to my understand - when communicating asynchronously with sockets (i.e. BeginConnect EndConnect etc etc ) these mechanisms use threadpooling in the background. Now it all depends on how you use these mechanism. For example - my first attempts maxed out the thread pools and i was only able to do 25 connections and blah - it got stuck there. I was able to by pass this with creating only 1 object that would do the main communication. Originally i had created an object which handled the entire connection including buffer / socket as well as the async parts. but for some nutty reason - this method did not prove to work - possible because garbage colleciton - although it was manually called - would not collect the lingering objects which were ready for collection.. leppie wrote: - socket buffersizes and timeouts, by default they will wait for ever... when it comes to this - during asynchronous communications the appropriate exceptions are thrown informing you of these. leppie wrote: - Linger options - Socket options (god knows what they all do....) well alas you have me at this one. right now im not using any socket options - since it seems to be working quite well without them.. ending comments... i took the first suggestion and implemented a random wait interval between each connection to each server. this proved to work perfectly - since that post the application has gone through 4000 servers and its still going - which is by far - further than its gone before. i simply put in a random interval between 1 and 30 seconds. although its a trade off for now - in time - the production system wont have these restrictions (i.e. flood control or worm detection whatever they call it ) Again thanks all for the advice and comments. Also - any more suggestions? p.s. a word on asynchronous sockets... ive test various methods of socket communication - async, sycn, manual thread pooling, custom threading... everything.. ive been able to achieve equal results if not better with the manual threading in comparison to asyhc mechanisms - but it was far trickier to achieve. has anyone implemented a server app - web server? ftp server? irc serveR? anything with async sockets in c#? just curious about your results..
-
A CRY FOR HELP - Threading , Sockets, Asynchronous headachesHrmmm you know what - i didnt think about that.. Maybe I should put a delay between requests - like a random delay to see if that stops the problem.. Good idea! Anymore suggestions? Danny!
-
A CRY FOR HELP - Threading , Sockets, Asynchronous headachesGreetings CP! Well - it appears I've been presented with a roadblock and cant seem to find the problem. Heres the situatio. Ive created an app that has to scann 16000+ servers - for now - all that has to be done is connect and send and receive once asynchronously. I am able to get the entire process down - the problem that occurs is that at random times the app just halts. It just stops connecting to the servers - no exceptions thrown - no nada. Its not a threading problem - unless its a bug in the threadpooling for asychronous socket communications. To draw out some broad strokes about the current scenario Classes MainForm applications main form ConnectionState stores connection information - buffer - socket - server hostname - start time / end time / elapsed time ConnectionManager this object is used in the main form (connection state is not accessed directly) - i start the process with a method called CheckServers() which is passed to a ThreadStart object in the main form for a Thread object named worker - the worker thread is started and is set to a background thread from the main form MessageEventHandler a delegate used to pass the messages from the buffer to controls on the main form I know this is a somewhat complicated issue to deal with over these forums.. but - i have traced every aspect of my code - 2-3 days spent in the debugger watching everything and still no luck. Any suggestions? Danny!
-
VS.NET 2003 Code View bugsWhile coding for many many hours back to back - I've noticed that soemtimes - VS.NET 2003 takes away the intellisense and the color coding schemes in the code view. Anyone found a fix for this? Or know why? The only work around Ive found is close out the ide and open it up again - but this can be frustrating sometimes when it does it back to back even after closing the ide and making sure the process isnt running anymore.. Could it be a caching problem? Danny!
-
VS.NET 2003 BugsWhile in the Form Designer sometimes if you click on a control on a form - let say a tabcontrol - and it has been selected the mouse pointer will not move out of the control. You cannot move to the anything outside the bounds of that control on the form.. Any ideas? Danny!
-
Error loading Windows Form from console Apptry something like this instead SomeForm form = new SomeForm(); form.ShowDialog(); the code above returns a DialogResult but you dont need to necessarily get that value unless you want something back from the user regardless of this - why would you be adding gui elements to a console application to begin with - you might want to create a Windows Forms Application instead.. Danny!
-
WinForms and delaysRecently I was creating a WinForms application. I made several seperate projects - each with a different GUI. One of the thigns I noticed is that at random - win form apps like to delay themselves when dragging the main form around. Try this out for yourself. make a form drag some lightweight components on there and then compile it.. make a few more with the same components - you might note - one is faster - meaning more responsive with dragging than the other. my question is this - why is this happening and how can it be prevented?? comments? questions? ive been beating my head against the wall trying to find out why. Danny!
-
deploy webserviceDid you extend the web site you created to include front page server extensions? Either way what errors are you getting? Specifics would help out in this one.. Danny
-
Whats the performance difference?Greetings all!! Checking out the ASP.net start kits (refering mainly to the Commerce kit) a few questions arose.. Basically, is there a difference in performance or any other reason why you would make your own components to gain db access rather than just access a web service from a aspx page? To be specific - if you are familiar with this start kit - Take the example of logging in a user. In the start kit they have created a component (CustomerDB i believe) which handles this verification and hits the database. Whats the difference between using a component as in this kit compared to a webservice which performs the same duty? Any light that can be shed on this topic would be great! Thanks for taking the time to read! Regards, Danny thebeings@hotmail.com
-
Event Logging from Web Services and WebFormsGreetings All! My question is (i think pretty straight forward) mainly about logging errors from a web services or a webform. What I would like to do is write to the event log from a web service and/or webform. I have read some of the articles on codeproject on how to do this.. but achieved zero success .. Can anyone help? To further explain what I want to do.. An example web method : [WebMethod] public void someMethod() { try { // soem random code that might throw and exception } catch(Exception e) { // write to event log here } } This is just one example.. There are more ofcourse.. But again if anyone can shed some light on this subject it would be greatly appreciated! Regards, Daniel Rodriguez
-
SQL in C# questionFYI, Problem #1 Where are you connecting from? Are you connecting from a web service? Windows Form? Asp.net? Problem #2 Problem #3 Read on on the .NET Documentation. Specifically with the SqlCommandBuilder.. It will automatically generate the SQL queries you require.. Its not as fast, to my understanding, as your own - danny
-
creating an add-in with c#Greetings! I found myself trying to create an add-in in Vs.net using C# but was not quite sure where to start. I have searched the site and several others including the msdn.microsoft.com site for information in regards to this. If anyone has any information/tutorials/point in the right direction type assistance please inform! My end goal is to create an add-in for outlook.. Thanks! -theBeings