
Worrow
Avatar/Signature-
Posts
69 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Worrow
-
Hi, I have an application keep fetching email from Outlook through MAPI for every 15 seconds. I let the program run for like 3 days or more, and I noticed the memory usage of Outlook keep growing--from between 50MB and 60MB to between 70MB to 100MB. My application however remains about the same memory usage for several days run. What cause Outlook 2007 keep allocate more memory? Could I do something in my code to avoid this happens? Thanks in advance.
-
Hi, I have a question about calling a Oracle sp with several output parameters of Associated Array type. I got no problem to get them working as long as I defined the size of each parameter. However, since the size is supposed unknown in that stage. So exception will be thrown if my result set is bigger than the one I had defined. Is it possible to working with associated array without define the size (except the field width for varchar2)? Thanks in advance.:D p.s. Of course I could find other way to around it by using ref_cursor or get the size of result set first.
-
That Xp machine is fine. I didn't modify any default sound effect beside turned off navigation. I too was trying to use e.handled = true but without any luck. The default beep sound is still there in Vista. As long as I pressed any key which causing the selection change[cursor key, page up/down] inside the list, the 'ding' comes. Thanks for your suggestion.
-
Hi, I got a form with a listview and a button [compiled in VS2008]. In Xp, it works normal. But running under Vista, whenever I mouse click,key press inside the listview, I got a 'ding' sound. It becomes very annoying when using cursor key to go through the list. Anyone know how to stop the sound effect(beside turn down the volume)? Thanks in advance.
-
Which means XAML is supposed to build more fancy UI? That clear things up, thanks!:)
-
Just start trying XAML. Put a button and a textbox in it and built the application. The size of file seems the same as the WinForm one, but when I ran the application it took like 20+Mb instead of 8+Mb(for the WinForm, which I consider is huge already). Why the XAML made form takes so much memory? Doesn't XAML get transform into CLR which should be the same as the WinForm? I am surely missing something here:confused:
-
Without Paging, everything seems fine. But if I activated paging, every time I tried to update with a new value, I would always get the old value back (inside RowUpdating) Here is one of the line: string MaritalStatus = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[8].Controls[0])).Text; I set a break point there and found out the value is not the one I had just inserted. Instead it was the original value. Any clue? (It works without paging though)
-
Just found out there is a function under Sqlcommand called 'cancel'... Now I have another question. If I called trans.Commit right after sqlcmd.cancel, would this actually update whatever the stored procedure has done before the cancel command or doing nothing?
-
So I started a new thread in my C# application to run a stored procedure. Since it takes a long time to run, I want to let the user cancel this operation while the stored procedure is still running. My question is if I stop this thread, will the stored procedure (which run on a Sql2005 server) stop about the same time, or keep on going? In my case, I would like to stop that as well. Any suggestion? Thanks in advance.
-
Crystal Report ---"ParameterField.Add" throw NotSupportedexception
Worrow replied to Worrow's topic in Windows Forms
Well, the problem is I need to set the datasource of the report before adding any parameter. :o -
Here is the code: ReportDocument rptShippingList; rptShippingList = new ReportDocument(); rptShippingList.Load(Application.StartupPath+ "\\FullCartonPickingInstructionList.rpt"); ParameterDiscreteValue y = new ParameterDiscreteValue(); y.Value = "Transfer"; ParameterValues x = new ParameterValues(); x.Add(y); ParameterField param = new ParameterField(); param.Name = "Transfer"; param.CurrentValues = x; rptShippingList.ParameterFields.Add(param); <---Problem:confused: Everything is fine until the last line. I got a NotSupportedexception which I have not idea what the problem is :( I have already search the web but no one seems to have such problem! Anyone know what's going on here? Thanks in advance!
-
Thanks to all of you. From now on, I will dispose objects explicitly.:)
-
Somthing like this: private void DoSomthing() { AA a = new AA(); // do somthing with a a.Dispose(); // } Is it necessary call the last line (a.Dispose) ? In C++, I would do it w/o second thought. But in C#, I am not so sure about it. Any suggestion? Thanks in advance.
-
Wow, thanks to both of you. I had never considered there is a race condition going on! :o Thanks again!
-
Recently, I translated the code from VB.NET 2003 to C# 2005. I thought it should work the way like its VB counterpart, but no...here is the code to start the process: ProcessStartInfo startInfo = new ProcessStartInfo("mame.exe"); startInfo.Arguments = listView1.SelectedItems[0].Text; startInfo.UseShellExecute = true; Process proc = Process.Start(startInfo); proc.WaitForExit(); Unlike the VB version, every VERY FIRST time I start mame, the mouse pointer disappears, the whole Windows is freezing(almost). I can't do anything but CltAltDel to stop the MAME process. Then I try again (without close the frontend) and it works! Even if I close the frontend and re-start again, it's working too. I have no idea what is going on here, any pointer? :confused:
-
I have a web serive which handling some db works between the client and server. It uses one dll inside the Bin folder. Later I added another dll which handling zip file. The name of that dll is Interop.Shell32.dll. Then I tried to run the web service but I got an Error page instead! It says something about Configuration Error and Access is denied. I tried the same web serivce (with new dll)again on another machine and it works just fine. What kind of error is it? Is this has anything to do with Interop.Shell32.dll(the dll I added)? Thanks in adnvance.
-
In IE, My Favorite DropDown Menu, you can right click on it and get a context menu. I want to do the same thing in my application, however, once I make a right click, the DropDown Menu disappears (the context menu appears though). My question is how to keep the DropDown Menu stay after the context menu appears? Help me out please.
-
I have re-visited the setup program last night. Found out that the [sBT] property is actually there. But it is just an extra text variable, not the display message itself. It won't show inside the message. Basically, it is useless for a TEXT control. I am stilling looking for a way to access this message... :(
-
Select a newly added row in DataGridview.
Worrow replied to Worrow's topic in Database / XML / Reporting
Thanks for your reply. The problem I got is the dataset somehow sorted my newly added data. Let's say my current datagridview is sorted by the first column. If I add a record there, it will be added in sorted order. Which means it may not be added at the end of the datagrid. I thought I have written this (sort problem)down at the beginning of my first post, but I didn't :o -
Hi, I added a row to the datagridview with following codes: Dim drx As DataRow drx = _DataSet.Tables(0).NewRow drx.Item(0) = 1 drx.Item(1) = id ... _DataSet.Tables(0).Rows.Add(drx) I want my datagirdview automatically selected this new row right after the codes above. How can this be done? Thanks in advance.
-
What I want to do is trying to display some custom message inside the installer. I want to replace the "Please insert Serial Number" message with something else. So I used Orca open the msi file and searched where exactly the message belongs. I found out that a Control named 'SerialBodyText' contains this message. But the problem is it doesn't got a property name. So I name it 'SBT' and saved it. Inside my c++ dll, I have something like this: MsiGetProperty(hInstall, TEXT("SBT"), szMessage, &dwBuffer); MessageBox(NULL, szMessage, "Setup", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); I expected the exact same message shows up from the messagebox. Instead, I got an empty string. I have used the same code and tried some other property (which has build-in name) like PIDKEY. It worked just fine. Did I miss something important? Any help? :confused: Thanks in advance.
-
Especially for someone who has already learnt basic C++ (not, no at the beginner level, and not a Guru either.) The only VC++ I ever did is some opengl programming back in collage days and no more. Any recommendation(code must work in VC.NET 2005) Thanks in advance! :)
-
Oh, forget it. It is not possible to make a single executable to handle both framework and my program installations through BootStrapper! :mad:
-
Maybe I didn't try hard enough. But I really couldn't find any solution on the net. :confused: I am trying to include dotnetfx.exe into my setup.msi so if the target machine didn't has framework 2.0, the setup will install the framework automatically(not download from the internet) before install my program. So is there way to set this up? BTW, is BootStrapper already included in VS 2005? Thanks in Advance.
-
Recordset to Dataset question (with XML)
Worrow replied to Worrow's topic in Database / XML / Reporting
Thanks for your reply. I ended up using xmltextreader to read the data and insert it into the database. Surprisingly to me, this approach is faster than using dataset to fill in the tables. I wonder why...