tirupati_mullick's Q&A profile
.NET Development What type of collection to use
I am going to be doing 2 for loops. One cycles through one set of ProductIDs and another cycles through a different set of ProductIDs. I want to add Each Product ID, ProductID to a collection. I'm not sure what I should use, a hashtable example: foreach(Product p in myvariable1) { add p.ProductID to collection and call it ParentProductID } foreach(Product p in myvariable2) { add p.ProductID to collection and call it RelatedProductID } I will retrieve the hash table later and use it in a call to my method which insert each Pair into a Relationship table and so I'm gonna want to cycle through that collection and do something like this: foreach (value pair in my collection of ProductIDs) {   ...Show All
SQL Server Reporting Services MemoryLimit
We're having trouble with memory configuration in Reporting Services 2k5 SP1, running on Win 2k3 SP1. We have a very large report, which we've been running to benchmark performance. First, here are the results of our testing: Initially, the server had 512mb of RAM. When running the report, the w3wp.exe process used up to 400mb of RAM and Reporting Services usually timed out before delivering the report. We increased the RAM in the server to 1024mb, and found we could run the report. It took around 02'30" to complete, and the w3wp.exe process peaked at 520mb of RAM usage. When we tried to run two instances of the report concurrently, RAM usage peaked around 800mb, and Reporting Services timed out before delivering the ...Show All
Visual Studio Team System FxCop vs FxCopCmd (VS2005)
Hi! I am just wondering if there are any difference between the internal analyzer (FxCopCmd 8.0.x) in VS2005 and the stand-alone version of FxCop (1.35) Or can I assume they will produce the same output /Rick Hi Rick, see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=719554&SiteID=1 and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=719594&SiteID=1 Regards, Jeffrey ...Show All
.NET Development Dynamically call a web service?
I have 2 project that operate seperatly, A will pass B one some XML (through a web service) then B will return a DataTable to A. How can I make this stuff work so that I can just ask the user for the name of the web service, the invoke the methods of the web service Is there classes for this kind of stuff in asp.net 2.0 i.e. WebService web = new WebService(url); DataTable tbl = web.MyMethod(); etc... Cheers, Mark Mark, Do you want to parametrize just the service's url or the whole service definition If it is just the url you can set this in the proxy class (Url property) Rgds, Rodrigo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. question on classes in XNA
ok...this is a very basic question, but stopping me from doing anything useful. I'm trying to create a basic "Sprite" class, but the telesense doesn't even recognize the class object I am creating. Are classes somehow shut off in XNA or am I missing something simple here This code below makes C# angry Sprite mySprite; mySprite = new Sprite(); mySprite.x = 5; Put it in a namespace namespace YOURPROJECTNAME{ class Sprite { ..... } } If you did "add class" from the project it should create this for you. ...Show All
SQL Server MTS Threads
I am wondering how to determine the the number of threads an MTS object can handle, and where you can view this information in the mts explorer. Thanks Mike ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft's future policy for redistributing Xbox 360 games?
Before I commit serious time and effort to the XNA framework, I'm wondering if anyone knows Microsoft plans for allowing us to redistribute our games for Xbox360. I'm an academic. Let's say I want to make some educational/simulation games that my students can use on the Xbox 360. Will I be able to provide them with a CD or download link in XBox live As far as I can tell so far, the only games I can write are for myself. It would be nice to be able to publish the game to see a limited number of User IDs that are not in the creators club (say 10 or so) as a start to testing wider use. I was thinking of this if I were to try and get my nephews into computer programming it would be nice to publish some gam ...Show All
Visual Studio Express Editions Accessing records for processing in VB Express / SQL Server Express
I am a rank VB newbie and have run up against a brick wall with the app I am trying to develop. How does one embedd SQL inside VB code to access data in the database for processing The documentation and tutorials talk about using predefined widgets (like tables and grids) to view and edit the data by I want to read records into variables to do stuff with them . I just want to connect to the database, embed some SQL inside my code so that I can access and process records in the database. Make sense I would appreciate any help... Simone here is some pseudo code for you to take a look at.... Dim cmd As New OleDb . OleDbCommand Dim cnxn As New OleDb . OleDbCo ...Show All
Windows Forms Error installing .Net Framework 2.0 from bootstrap
Hello, This is my first post, so be gentle with me. I have created my first VB VS 2005 project. I have successfully published and can run the project on my machine. I am using ClickOnce FullTrust with .Net Framework 2.0. I have the project signed and the prerequiste of the .Net Framework 2.0 to be installed from the vendor's website. However, when I try to run the setup.exe to install the project on another machine I get the following error in the install.log: The following properties have been set: Property: [AdminUser] = true {boolean} Property: [ProcessorArchitecture] = Intel {string} Property: [VersionNT] = 5.0.4 {version} Running checks for package '.NET Framework 2.0', phase BuildList Error: Unable to locate file 'd' require ...Show All
Visual Studio Adding an intellisense/snippet popup control to the code window
I have a managed package that I'm working on that will display and manage your clipboard history. I'm trying to add a feature where when the user presses a keyboard shortcut, a popup list control (just like intellisense/code snippets look like) populated with list items representing their last 5 clipboard entries. I've not been able to locate an example or sample code demonstrating how to create that type of window border or how to implement this control/window into the code window, such that when you scroll or resize the IDE, the popup window coordinates stay relative to the code window. Is this even possible If so, can you point me in the direction of an example Cheers, Bobby Perikles, This was exactly what I needed. You did a gr ...Show All
.NET Development FileStream doesn't release resources
I have an application that is creating a number of images. After they have been created I try to FTP them to my webserver. This is done essentially by: Each image is saved by: 1. Create a filestream System.IO.FileStream fs = new System.IO.FileStream(Path + FileName, System.IO.FileMode.Create, System.IO.FileAccess.Write); 2. Save the image Image.Save(fs, System.Drawing.Imaging.ImageFormat.Jpeg); 3. Close the filestream fs.Dispose() fs.Close(); Now, when i try to send them to my webserver, i use a class that opens a filestream by input = New FileStream(FileName, FileMode.Open) But this produces an exception: IOException The process cannot access the file '<filename>' because it is being used by another process. If i create the images, ...Show All
Visual C# Exception???
System.ObjectDisposedException: Cannot access a disposed object named "DataGridTextBox". Object name: "DataGridTextBox"......I am getting this exception and unfortunaltly i dont know why or how to catch the exception so i know what line of code is throwing this....any help on how i can get this error handeled The reason of exception is quite clear from the message it is showing. You are trying to interact somewhere in your code with a disposed object "DataGridTextBox". To get the exact line of code, use try/catch block around the block of code and use StackTrace Property to see from where this was raised. I hope this will help in understanding the problem and correcting it! Best Regards, Riz ...Show All
SQL Server My sqlcache doesn't work consistently under ASP.NET 2.0, any suggestion?
I have some problem with ASP.NET cache, I found other people has similar problem, but I didn't find real solution. The one bother me most is the SQLCacheDependency doesn't work stable. I insert object in cache and has SQLCacheDependency linked. After a period of time, it stopped working. That means the the object is still in cache, but change on db side doesn't remove the cache entry. I am not sure if it is ASP side or SQL side, I feel it is ASP side. I am using 2.0 + SQL 2005. Once the db command notification stop working, you have to restart IIS or clear all items in cache since you don't kno which one is changed. The following is the code I use to handle the cache : string cacheKey = LinkSites.GetMappedKey(virtualPath, fi ...Show All
Software Development for Windows Vista conime.exe
Hi Oliver, Could you please refer to the thread below http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1097952&SiteID=1&mode=1 Thanks for your help and answer! Vian The conime.exe is located in "C:\WINDOWS\system32", and the version number is "6.0.5600.16384". I work in Nortel, who is the partner of Microsoft, if this doesn't work, I will contact the partner support representative. Thanks for your information! Thanks, Vian ...Show All
Windows Forms Urgent: Mage.exe Issue with -RequiredUpdate
Hi All, I want to ensure that whenever the Application Installed through Click Once runs, it would check for updates before starting. Using the Publish wizard and the mageUI.exe this can be set. And the resultant Deployment Mainfest looks like this. <deployment install="true" disallowUrlActivation="true" mapFileExtensions="true"> <subscription> <update> <beforeApplicationStartup /> </update> </subscription> <deploymentProvider codebase=" file://server/Test.application " /> </deployment> But when I try to create the deployment manifest manually using mage.exe there seem to be no option to specify this update option. The resu ...Show All
