Peter Wimmer's Q&A profile
Visual C++ Page file usage question
My program is running a numerically intensive loop. Within this loop I am continuously allocating and deallocating memory. When I run the program and monitor its behavior using the Windows Performance Monitor app, I notice a gradual linear increase in the page file usage. It just keeps climbing indefinately with no end in sight (like a ramp function) as long as I let the loop iterate. When I shut the app down the page file usage drops back to the original value. What does this mean (what are the possible causes of this) Thanks for any help everyone. Hello Re: Page file usage question As "Simple Samples" points out, such questions are really outside the scope of this foru ...Show All
Visual Studio Express Editions cant find .cs files
When I reinstalled VC# 2005, my .cs files from my project folder seemed to vanish. Now, instead of a Form1.cs file, there is a Form1.resx file instead! Is there some way to convert back to a .cs file Thanks to everyone. I'll try all the suggestions. All is not lost though, for some reason(call it a premonition) I copied some of the main source code as a .txt file and took a screenshot of the UI's. During the many hours it will take to reproduce some of the projects I'll be telling myself "back up properly, back up properly" over and over again!!! Thanks again. ...Show All
Windows Forms Do not want product to appear in add/remove program
Hi, I am creating an MSI using Visual Studio 2005, setup wizard. i do not want the product to appear in the add/remove program section. is that possible using the setup wizard I see option of changing the icon but not whether i want it to appear at all. Thanks Dinesh That is the behavior i need, that the customer cannot uninstall, the product will be deployed via SMS. To uninstall then, i could send the same MSI via SMS again but with the intent to uninstall msiexec /uninstall Installer.msi /q does that make sense Thanks Dinesh ...Show All
.NET Development Problems Launching ASP.NET WebService
Hi, I'm a student developing a simple webservice for a project. Am following a tutorial in a Deitel book on developing a simple Webservice in Visual Studio 2005. I have an XP pro machine with SP2. The Webservice builds just fine. However when any attempt is made to "Start" the Webservice, I am presented with the following error. A name was started with an invalid character. Error processing resource 'http://localhost/HugeInteger/HugeInteger.asmx'. L... I have observed this forum and found that there is a commandline tool (aspnet_regiis.exe) that can help diagnose the problem. When using the "lv" argument I am told that both v1.1 and v.2 are installed on my laptop. If v1.1 is listed before v2.0 in the output, do ...Show All
SQL Server Analysis Services 2000 SP3 or SP3A - how to identify ?
Hi, Is there a way to identify whether I have Analysis Services 2000 SP3 or SP3A Thank you very much. Code wise, you can read the registry on the server's LOCAL_MACHINE \ Software\Microsoft\OLAP Server\CurrentVersion and look at the VersionNum and CSDVersionNumber ...Show All
.NET Development Element incorrectly omitted from web service request
Hi, I have a strange problem with the class generated by Add Web Reference (VB 2005) for an Axis web service. There is one function, getUser() , that has a nillable positiveInteger user_id parameter. When Nothing is passed for this parameter, it is omitted rather than being sent with a true nil attribute. The really odd thing is that the problem appears to be related to the presence of two other methods that also have a user_id parameter. I have found three ways to work around the problem: Remove the generated code for the two other methods. Change the name of the user_id parameter for getUser() in the generated code. Use wsdl.exe to generate the proxy class instead. Doing any of these things causes a null value to correctly generate t ...Show All
SQL Server How to exeute dmx query?
hi, I am using CLR stored procedure having my dmx query.I need to exeute that Query and get the resultset as dataset how to do this Here is my code sample namespace PredictPerformance { class perf { public static dataset getPredict(int StudID) { ---- return ds; } } } Execute the proc: SELECT PredictPerformance.getPredict(1) FROM [Stud_Model] how to get the result Thanks, Karthik. Your code handles correctly the Prepare execution (with Context.ExecuteForPrepare).The server is, however, not aware of this in the pre-execution phase. You should decorate your function declaration with a a special attribute, like below [SafeToPrepareAttribute(true)] public static DataTable ...Show All
Visual Studio Express Editions How do I COMPLETELY uninstall?
Every time I uninstall and re-install Visual C++ 2005, the computer seems to remember that the program was installed previously and tries to restore my old settings. I don't want this to happen. How do I COMPLETELY uninstall Visual C++ 2005, so that it is as if the program were never installed previously I've tried uninstalling from the control panel, deleting the "Visual Studio 2005" folder in My Documents, and deleting C:\Program Files\Microsoft Visual Studio 8. What more do I need to do Apart from the above, there is one more place. In the registry under HKEY_CURRENT_USER\Software\Microsoft\Visual Studio. If you delete the 8.0 key then it will remove all your personal settings for VS8. Y ...Show All
.NET Development new Thread questions
Cdelegate cDelegate = new Cdelegate ( ); ThreadStart trSt = new ThreadStart ( cDelegate.csvTOsql ); Thread trd = new Thread ( trSt, 5000 ); trd.Start ( ); I ran this code and it seems to be working fine, however, two things remain unclear. (1) Do I have to take any special steps to terminate the thread after work of the delegate is done. If so, how can I do it (2) I ran it a few times in debug. The delegate csvTOsql transfers some scv files (about 200 of them to SQLEXPRESS server. On the second run and that run only I got a runtime error message that I neglected to copy since I expected it to be repeated. It never came up again but I expect it to show up in the future. I will try to reproduce it from memory: Thread (perhaps, p ...Show All
Smart Device Development vs2005 compiler is fatally flawed: generates bad code
In this very simple excerpted code, the compiler fails to do its job. If you want it recreated, I propose someone there try to recreate it. I've already got it happening here. It's as simple as it gets. From the type of failure, it looks like it's going to happen a lot. r12 is assigned the address of mc.decodePriority only if gDecodeMaxPriority >= 3, yet it, r12, is still used as the store address when it is not >= 3. r12 is pointing to nowhereland in the code below, when, for example, gDecodeMaxPriority is 0. if (mc.inWaveMode != 2) { // not if in CopyFile mode 0009637C add ...Show All
SQL Server UPDATE TRIGGER. HELP!!!
I created a trigger to change a personnel_id from another table if status field changed. CREATE TRIGGER TR1 ON TABLE1 FOR UPDATE AS NOCOUNT ON IF UPDATE (stataus_id) BEGIN If EXISTS (select * from inserted i inner join deleted d on i.status_id=2 and i.status_id<>2) UPADATE table1 SET Personnel_id= a. personnel_id from table 2 inner joing table 1 b on a.user_id=b.user_id END When I tried to update the next row after privious one updated I recievd a message : Data has changed science tehResult pane was last retrieved. Do you want ti save you changes now Click YES to commit you changes to database. Click No to discard your changes and Cancel to continue eding. What I am doing wrong I qu ...Show All
Visual C# multithreading
I need to do multithreading. It is my fist attempt. It failed. This is the setup: There is a form with tabControl and a few pages. There is a progress bar on one of them. It is supposed to measure progress of file downloading. WIthout multhithreading it is dead while the files are downloaded and then in the end it jumps to 100%. This is what I did. Everything compiled but the progress never was activated even after the downloading was over. In other words my code actually made the things worse. In the main form I put in this code at the start of procedure that is handling the download: ThreadStart threadDelegate = new ThreadStart ( Work.DoWork ); Thread newThread = new Thread ( threadDelegate ); newThread.Start ( ); T ...Show All
Software Development for Windows Vista Window form Not responding vb.net 2003
i have created window form class name Cinterface when i instantiate this Cinterface form from with in click event of another form it is working perfecty ok like private sub Button_click(byval sender as object,byval e as Even...... dim nf as new Cinterface nf.show() end sub but when i use same code to instantiate Cinterface form from with in some other user defined event handler form popup but stops responding like dim ob as new some_class AddHandler ob.user_defined_eventname ( AddressOf processdata ) ' this user_defined_event will be raised from some_class and handled by processdata() of this class private sub processdata() { dim nf as new Cinterface nf.show() ' This code is poping up the Cinte ...Show All
Visual Studio Express Editions How to delete this registry key
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v hellobob /t Reg_sz /d C:\bobby.exe /f > nul 2 things to make sure of...one is that you have your application setup as a full trust application...you can do this from the myproject window security tab...next is to make sure you have rights to the registry as a user on your PC...if not then you have a security nightmare on your hands and will have to impersonate a valid administrator account. ...Show All
Visual Basic string functions - remove x number of char starting at char?
I'm nearly done with an application that I've created to correct data mistakes. The application will loop through a directory of several thousand files and then replace various bits of data. Most of the data is static. Example, smtp address. So, i set up a search criterial and iterate through the files and replace string "xyz" with string "abc" in all the files. Works just fine. My last problem is a bit odd. These files are SENDMAIL.VBS scripts. The data and information in them, for the most part is quite fluid. For instance, I may have the start of my fax number at position 50 (column) where another document may have it starting at position 32 (column). So, here's what I've been experimenting with trying to a ...Show All
