Hi, Iam working on a C# windows application having around 20 projects. I need to quickly generate documentation for the whole project. I have heard of tools which reverse engineer the code into UML Class Diagrams. But i couldnt locate a working tool. After downloading a few, i came to know that none of them are actually performing what they are claiming to do. My doubt is, can the code be reverse engineered? and Any tool which actually performs this task? Thanks anyway, Rajesh
RajeshGuptha
Posts
-
Class Diagrams reverse engineer -
.NET code execution...Hi Led Mike, Thanks for the guidance, Ill read the article, and get back if needed. Cheers, Rajesh
-
.NET code execution...Hi Luc Pattyn, Thanks a lot for your guidance. Ill try all the possibilities, and read the articles which you have suggested. Hope to get some positive results.. Will get back to you! Thanks and Regards, Rajesh
-
.NET code execution...Hi Led Mike, Sorry i could not understand the comparison you are trying to mention here...If you dont mind could you please elaborate on that?? Regads, Rajesh
-
.NET code execution...Hi Luc Pattyn, Thanks for your valuable inputs.. While testing, none of the debugging tools were active.. i had ran the .exe of my application. My exe is not that big, though it requires around 20 dlls (20 projects in Visual Studio), one among them is really huge around 20MB, as it contains hundreds of images required by the application, and 4 COM components registered locally... Do you think this is a large number? And yes all these DLLs reside on local disks. If this is a large number, then should i think of redistributing code and reduce the number of DLLs?? I connect to DB on network, do you think this might create problems only for the first time? And for the remaining probabilities you said, is there a work around for those problems?? Have you come across situations like these??? I would be very thankful in getting further inputs from you, Regards, Rajesh
-
.NET code execution...Hi All, I have written a Windows application in C# running on Windows XP/2000 for .NET version 1.1 . When i execute the code, and load one of the modules for the first time, it takes around 3 sec. After unloading, when the same module is reloaded with all the same parameters, it takes only about 1 sec. All the conditions to reload the module are the same, all the SP's called are the same, which i cross verified by the ANTS performance profiler!!! But still there is considerable time difference!!! I thought that this difference was because of the JIT compilation which CLR does for the first time and for the successive times, JIT doesnt come into the picture, hence the time difference. But I tried generating the Native images (pre-compile the code) of the complete code using "ngen", and after observation, concluded that the behavior still pertained. I am now unable to locate the problem as in why the time difference exists? 1. Is it that im using "ngen" wrongly? 2. Is there some other reason for the strange behavior? I would be extremely thankful on receiving valuable inputs from the forum, Rajesh
-
Windows XP Process information.Hi All, Im developing a Windows application in C# running on XP/512MB RAM/40GB HD. My application uses complex graphics and hence is pretty heavy! It has loads of images to be displayed and all of those are loaded from resource files. Initially i was skeptical whether i would face any problems in loading these images. But fortunately i did not face any problem in that regard. But when i started building the application, because of its highly Graphical Interface, i started getting a WIN32 Exception which implies that the number of handles created by the application exceeds the limit. After having a look at the Task Manager, here goes the statistics, My applications uses 250MB of memory, 240 handles created, 10,000 User Objects created, 7 Threads running, 62 GDI Objects created. After the application creates 10,000 user objects, the exception is thrown by the framework. Can anybody help me in throwin some light whether XP has any restrictions in creating unser objects. And if so, then what is the alternative to the problem? Meaning, how to restrict the creation of user Objects. Or if i double the RAM, will the number go up?? Or any other alternative!! Thanks in Advance! Rajesh
-
Required .NET ProfilerHey Thanks Buddy. I had used ANTS Profiler and i found it to be very slow(atleast on my system)... But the other one was a very handy, and it made my life easy!!! And can i have some dedicated Performance profilers also?? Thanks anyway, Rajesh
-
Is there a way to handle OutOfMemory exceptions?Hi Sarab, I think that your problem is regarding the number of handles you create!!! If you know, Windows restricts each process in creating handles. For example, it is 10,000 handles for XP. But my experience says that this equation is that straight forward!!! It is also dependent on the memory the process occupies and the number of GDI objects being created by your app. To confirm this, try seeing the number of GDI objects and Handles being created by your app through the taskmanager->View->Select Columns... And if the number of Handles is going beyond 500 and GDI objects more than 300 or 400, then i think that you have located the problem!!! Even i had a similar problem, but not yet found the solution as such!!! The work around which i did was not storing such a huge data in memory which creates lots of GDI objects!!!! Though im able to get control over it, i feel that this is not the correct solution to it!!! Regards, Rajesh
-
Required .NET ProfilerHi, Can anybody suggest a good .NET Profiler which gives the details of the memory taken up by the application and also regarding the performance details of the application!!! Thanks anyway,
-
.NET Memory ManagementHi All, I have a doubt on the Out Of Memory Exception thrown by CLR!! Why does it do so, When Windows is providing a virtual memory of 4GB for a 32-bit processor for each and every process!! So according to this if an application starts, then a virtual memory of 4-GB is provided to it, and Windows keeps performing complex algorithms to swap data from RAM to physical memory!!! My doubt is when Windows is doing so much why at all we get an Out of Memory Exception?? I beleive that the memory management is a lot more complex than i have understood, can any of you please enlighten me on the same?? Thanks anyway, Rajesh
-
Mysterious application crashAs i said in the beginning itself that i have a try catch block in main also, but that is of no use, when it crashes. It still crashs without informing anything... And i have tried to monitor the crashing procedure, but there is no similarity among the different occurances. I could only suspect on the Out of Memory Exception, for which i have made sure from two memory profilers that all the objects which i create, am also disposing them when they go out of scope.. I think that the problem might be at some lower level(OS level) which iam not able to get it right!! Thanks for your suggestions. Regards, Rajesh
-
Custom Cursors disappears !!!Hi, I am attempting to simulate a drag n drop operation in one of my custom components (build from scratch). For this reason, I was changing the cursor to a custom drag cursor (that will give the appearance of dragging) which is defined static and will be read from the file as follows: private static Cursor dragCursor = new Cursor(".\Images\MyCursorFile.cur"); It loads fine and I am able to use it quite well. However, sometimes, the cursor just does not show and I have to close and re-open my application to get back the cursor. I have no clue why this happens as there is no reproducable path to the problem. Any ideas? (Or any other way to load a .cur file without having to load from a file?) Thanks. Regards, Rajesh
-
Mysterious application crashDear all, My .Net WinForms Application quietly closes off without a warning and I am unable to understand the root cause of the problem, as it happens sporadically. I am working with .Net Framework 1.1 on Windows XP (tested on both SP 1 and 2). I tried the following: - Having a try/catch cover on all the important event handlers (OnPaint, OnMouse..., etc) and in the static Main() method (Application.Run(...)) - Set an UnhandledException handler for the present App domain. - Earlier, I was creating and releasing a COM object in a method that was being called many times. Now, I moved the creation into the class constructor and the releasing into the Dispose(). Yet, none of these options have either stopped the crash or have given me a clue. Is there a way in which I can get hold of any low level API's or tools that will be able to execute my application in a shell, which will give me a greater control on locating the cause of the crash. Any ideas will be greatly appreciated. Thanks for reading. -Rajesh.
-
Problem in Drag and DropHi, I have implemented the drag and drop functionality in my custom control...but i want to give the same visual appearance as Windows has given...like after picking a file or a control...a bitmap of itself is drawn with some transparency.... i wanted to know how to get the transparent image of the control selected at runtime??? can anybody help me? Thanks and Regards, Rajesh
-
How to Rotate ControlsActually i tried transforming the region of the control to a rotation... for example, Region reg = new Region(); Matrix matObj = new Matrix(); matObj.RotateAt(/*some angle*/, /*with respect to some point*/); reg.Transform(matobj); myControl.Region = reg; Iam able to attain the rotation...but supposing the region (reg in this example)is in another shape(than rectangle)...say ellipse, then the shape of the ellipse is not visible completely....reason is that the rectangle coordinates(i.e. the original rectangle size) used to draw the ellipse is smaller than the rotated structure...(after rotation, the location of points are actually out of the bounds of the controls client rectangle...) So i tried to get the size of the outer rectangle which has completely both the original and the rotated rectangles... by some trignometry... but nope, im not getting the exact coordinates... can you help me in this?? Thanks and Regards, Rajesh
-
How to Rotate Controls?Actually i tried transforming the region of the control to a rotation... for example, Region reg = new Region(); Matrix matObj = new Matrix(); matObj.RotateAt(/*some angle*/, /*with respect to some point*/); reg.Transform(matobj); myControl.Region = reg; Iam able to attain the rotation...but supposing the region (reg in this example)is in another shape(than rectangle)...say ellipse, then the shape of the ellipse is not visible completely....reason is that the rectangle coordinates(i.e. the original rectangle size) used to draw the ellipse is smaller than the rotated structure...(after rotation, the location of points are actually out of the bounds of the controls client rectangle...) So i tried to get the size of the outer rectangle which has completely both the original and the rotated rectangles... by some trignometry... but nope, im not getting the exact coordinates... can you help me in this?? I Thanks and Regards, Rajesh
-
How to Rotate Controls?Hi, I want to rotate a control, take for example a button Control or a label control to some angle. But i dont know how to attain that.. i tried setting the region of the control with a graphics path whose transform set to rotate about its center...but im not able to get the output... Can anybody help me? Thanks, Rajesh
-
Regarding Mouse Move event!!Hi, im trying to capture the position of the mouse from the mouse move event and changing some properties. But the mouse move event doesnt seem to be fast enough to capture the movements immediately and change the properties accordingly!! Can anybody help regarding this? Thanks and Regards, Rajesh
-
Can i add a background image to the Windows datagrid?thanks a lot Jim. Im sure that i can proceed on with this.