Abi_ramanan's Q&A profile
Visual Studio 2008 (Pre-release) Memory Leak problem when using bitmap image as tooltip?
My code: Image img = new Image(); BitmapImage bi = new BitmapImage(); bi.BeginInit(); bi.UriSource = new Uri(@"C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg"); bi.EndInit(); img.Source = bi; btn1.ToolTip = img; //btn1 is a Button Symptom: Every time when the tooltip of "btn1" shows, some memory is consumed and will not be released later. So, is it the problem of my code or the winfx Thanks a lot. I don't think that's a WinFX problem. I believe that, as long as the btn1 element exists, its property value (in this case, the bitmap image) is stored in memory. So, if you really want it gone, set btn1.too ...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
Visual Studio Debug | Start Without Debugging missing
Upgrading from VB 03 to VB 05, and one of the virtual labs says... "Select the Debug | Start Without Debugging menu command to run the application." There is no such option in my VS 2005 Professional, and I don't see how to add it. Please advise Bob Hi That's interesting. I haven't used this feature in VS 2005 before but I was convinced it existed but even in my Team Suite edition I can't see it. I have also looked in the Options section and don't see any mention of it. Maybe somebody else might be able to shed some light on that. Having said that however, if you hold down Ctrl and press F5 you will be able to start your application without debugging. I tested this by placing a breakpoint on a Form_Load r ...Show All
SQL Server Error while executing SSIS package from other SSIS package
Hi, In our project we have two SSIS package. And there is a task (Execute SSIS package) in First package that calls the execution of second package. I m continuously receiving an error "Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available." As we are running first package by job, job runs successfully logging above error The protection level of second package is set to "EncryptSensitiveWithUserKey" Can anybody please suggest how to handle it ...Show All
Visual Studio 2008 (Pre-release) Returning appropriate fault information in a custom UserNamePasswordValidator
I'm looking at the WCF samples for creating a custom UserNamePasswordValidator (WCFSamples\TechnologySamples\Extensibility\Security\UserNamePasswordValidator\CS\service). The sample's CustomUserNamePasswordValidator implementation demonstrates that if a username/password combination is not valid, to throw a SecurityTokenException. However, since the exception occurs during the authentication stage of the pipeline, prior to the message being authenticated, the exception thrown by the client is not a SecurityTokenException, but is always a MessageSecurityException that indicates that: {"An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and de ...Show All
Community Chat Windows Vista Gaming Performance
I just read over on Neowin that gaming performance in Vista will be 10-15% slower in Vista. Can someone tell me whether or not this is true Thanks! - James Are you sure you have updated your drivers Maybe your ammount of RAM or processor speed is low If not, it's a serious problem! I think they must fix in the final version or Vista will not mean anyhting for most of the users. ...Show All
SQL Server AS 2000 with 64 bit OS
I moved one of my AS 2000 olap db new server -Windows 2003 "64-bit" OS with lot more processor then old server "32-bit" Windows OS. Good news is my cube processing I save 50% time but my query performance is slow, I was thinking my query should fly. I have AS 2000 "32-bit" in "64-bit" Windows server. I have same settings in AS 2000 as old server. Thank you - Ashok Well, first of all, if you running IA 64, you should install 64bit version of Analysis Services and run natively. Second, running on higher end machine doesnt neccessarily means single query performance is going to improve drastically. With higher-end hardware, you should get higher throughput, ...Show All
SQL Server SELECT USER_NAME() !!!!! Urgent
I wrote a trigger which writes to a audit table. To get the user name I use to use SELECT USER_NAME() this used to return something like a12345 this worked fine until we moved to production where the username also had the domin name with it . Now the output of the query is something like DOMAIN/a12345 t he value of "DOMAIN' is different for different users, and the "/" may or may not be present in the user name Can some one please give me code just to return the user name like a12345 Well, then try it like this: select substring(user_name(), charindex('/', user_name()) +1, 256) /Kenneth ...Show All
Visual Basic WScript is missing/broken
Hi I have an app I built a while ago under Win2000, but have since "upgraded" to XP.... It appears to compile just fine, but when I run it on another machine, I find this in my log: Public member 'exec' on type 'IWshShell2' not found. Meanwhile, back in my IDE (either VS 2003 or 2005, same thing), the only thing that shows up in the autocompletion for oShell, after creating it like this... is "GetType" oShell = CreateObject("WScript.Shell") obj = oShell.exec(strExec) Note that the .exec remains lower case. It's like I'm missing a reference to whatever the WScript.Shell is in. Any ideas At this point I'm seriously considering chucking this entirely and starting over with java. Thanks ...Show All
SQL Server Another Major Flaw with Reporting Services!
Where is the text (.txt) export functionality I don't see any ascii text export mechanism without the .csv extension. Where is actual .TXT file of the reports. How do I get a .txt conversion out of the reports without messing with the .csv files. I would've wanted direct .txt export from the generation mechanism. This seems extremely basic form of reporting generation. I can't believe you can't get txt report out of reporting services. Enkh. I definitely agree with ENKHT. I have the same issue. One of our external partners expect a txt file with specfic columns and associated data. In other words, they read each line and know exactly where the start and end point of each column. And ha ...Show All
SQL Server Implementing "preconditions"
I have about a half-dozen insertion tasks that depend on a condition: SQLServerProcessDate == OLEDBprocessDate. If the task executes early, old data gets inserted and needs to be backed out later on. (This happens about two-three times a month.) The jobs start at 8:00 PM, but on occasion processing runs late. In order to make the task intelligent enough to not insert old data, I've thought of a couple options: 1.) Separate scheduled job runs continuously, comparing process dates. When the dates match, it sends a message to the other jobs. Pro: less repetitive. Con: another scheduled job ! I'll have to learn the message queue task; a little bit complex; flood of database activity on message reception may slow system down 2.) Compare the dat ...Show All
Visual Basic KeyDown Event
I have what I'm sure is a simple problem..... I'm using MS Environment 2003 V 7.xxxx I have a windows form (PartFunctions) that I use as a menu. I have placed 4 buttons on the form so the user can select one of the options and open 1 of 4 forms. I also placed another button at the bottom of the form to allow the user to Exit this form. I want to allow the user to Click the buttons or use the keyboard to access any of these buttons. The problem I'm having is, once I added the buttons to the form, the PartFunctions.keyDown event is not being triggered. If I don't have the buttons on the form that event does get triggered. Any ideas Private Sub PartFunctions_KeyDown( ByVal sender As Object , ByVal e As ...Show All
Internet Explorer Development Is it possible to get raw HTTP requests and responses in my own Explorer Bar
I wanna develop an Explorer Bar for IE to intercept RAW HTTP requests and responses. These includes raw data initiated by the URL entered in IE address bar, and images' URLs within that main HTML file. Is it possible Hi, I am interested in doing something similar which is to - list the images/css/js... files that are a part of a page - list the time it took to download them - list whether the item was served from the cache or not - display the http headers associated with that response ... Eric, you mentioned a few possiblities above. Regarding the namespace handler, could you share any pointers on it. I saw links for implementing a pluggable protocol handler but it seems that with the n ...Show All
Visual Studio 2008 (Pre-release) The maximum string content length quota (8192) has been exceeded while reading XML data.
I'm getting this message when invoke an operation on the service. I have the readerQuotas configured in the client's config file as follows: < readerQuotas maxDepth = " 32 " maxStringContentLength = " 2048000 " maxArrayLength = " 16384 " maxBytesPerRead = " 4096 " maxNameTableCharCount = " 16384 " /> I still get the error. Any help will be appreciated, Thanks, Kavita, Thanks for the reply. I don't see the MaxMessageSize attribute in <readerQuotas/>. Do you mean maxReceivedMessageSize = " 2048000 " in <binding/> If so, as you see I've increased it from it's original value of 65536 to 2048100 ...Show All
SQL Server cells not diplaying
I have 2 dimensions dimA and dimB. Dim A has members Aa and Ab while dimB has members Ba, Bb and Bc. The fact table has columns dimAKey, DimBkey, CountofX. I need to display a result that shows counts for all members for dimA (whether there is a value in CountofX or not) but for dimB I only want to see the members that have values. eg. DimA DimB CountofX ---------------------------- Aa Ba 3 Aa Bb 4 Aa Bc 2 Ab Ba 7 Ab <blank> <blank> Ab Bc 3 Can someone help me Thanks Your example does not really make sense, you might have simplified it a bit too much, you could get something like the following, but it does not sound like this i ...Show All
