Damien Morton's Q&A profile
.NET Development A Question on GC
I have a MDI program in which user can open different document and edit it. After several user use it, they report that it becomes more and more slow. So I watch the memory usage of it carefully and found a problem : it seems the memory is never released after a document is closed. I watch the memory cost in Tesk Manager, and found that whenever a document is opened, the memory cost increases. However, after the document is closed, the memory co ...Show All
Visual Basic Listview control.....removes selected item(s)
Listview control.....removes selected item(s) How to remove a selected items or checked items from a listview control in VB.NET Listview1.Items.Remove(lstapplications.SelectedItems(i)) I thought I can do the same as in listbox but did not work. ReneeC wrote: The following works when multiselect is not set: lv1.SelectedItems(0).Remove( ...Show All
Visual C++ Unresolved externals and wchar_t's
I'm getting the following errors when compiling my program in VS2005b2. This program uses a 3rd party static lib and associated header files, so I can't change them. I think it was originally compiled in eVC++4.0. Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public : int __cdecl CL2CapIf::SetSecurityLevel(wchar_t *,unsigned char , int )" (__imp_ SetSecurityLevel@CL2CapIf@@QAAHPA_WEH@Z) referenced i ...Show All
Visual C++ Tiered library dependencies under VS2005
We have a project that is structured like this: Program depends on Library 1a which depends on Library 2a, Library 2b, etc. The dependencties for the above are set by right clicking each project and selecting Project Dependencies... and selecting the projects immediately below the projects in the dependency tree. If I modify a source file in Library 2a and then right-click on Library2a and select Build, it builds the library. ...Show All
Visual C# Problem with build Web Site
When I try to build a web site solution I get the follwing errors : Error 1 (0): error CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\testeinf\15e74bc9\75b17dc3\App_Web_tzppu2tl.DLL' could not be found Error 2 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\testeinf\15e74bc9\75b17dc3\App_Web_tzppu2tl.DLL' could not be found I close ...Show All
Windows Forms Exception Management Application Block and SQL Server
I like the Exception Management Application Block (EMAB), but instead of logging my errors to the Event Log, I want to write them out to a database. I know that EMAB allows you to create your own custom publishers. But I also know&n ...Show All
Visual C# simple parse problem
hi all, can someone help me out : i have several objects and the names of these object all have the same format: 1,2 or 3,7 now i want to split these names into two single values: 1 and 2 or 3 and 7 hope the problem became clear and someone could give me a little clue... thanks in advance, .k Hi there. From what I gather of your problem is that you want to extract some meaningful characters ...Show All
Visual Studio Express Editions hi, I got a error message.
Error message: Error while trying to run project; Unable to start debugging. The binding handle is invalid. C# itself is fine. If there are issues they are with the 2005 IDE. If you switch to the Microsoft IDE for C++ then there's no reason to believe that there won't be equivalent issues with it. If you want to switch to a different IDE then there are others for C# available. ...Show All
Visual C++ VC8, Adding __event to non-CLR code gives error C2712
In a non-CLR class I have a number of __events defined. When compiling the source code in which the corresponding header file has these __events, I receive the error: error C2712: Cannot use __try in functions that require object unwinding pointing to the last of the __event lines in my header file. When I look at the error message it says: "cannot use __try in functions that require object unwinding". Further it is mentioned that "object unwind ...Show All
Windows Forms OFFICIAL SURVEY about your usage of the .NET Framework documentation!
Hello - I'm conducting an official survey about your usage of the .NET Framework documentation. In particular, what programming languages do you filter on. Your answers will be used to help improve the documentation viewing experience. When reading the surv ...Show All
Visual C++ Massive compiler error
Hey all! I just got Visual C++ 2005 Express Edition Beta 2 and the Platform SDK I try to compile the following: #include <windows.h> #include <iostream.h> int main ( void ) { cout << "Test"; return 0; } I get 93! errors and 1 warning Has anyone had or does anyone have the same problem the build log is here: http://damann.hiya-host.com/BuildLog.htm ...Show All
Windows Forms get parent dialog name
Hello! I am opening a dialog form using ShowDialog. My problem is I want to access the same dialog from 2 separate dialogs. Is there a way where I can get the calling parent dialog form's name Thanks guys! Hi Paul, I was looking through 10s 100s of articles to find an answer for this prolem. Your method works fine and thanks for good work. Cheers Vij ...Show All
.NET Development Display data from multiple tables into datagrid
I am using visual studio 2003 and was able to create a dataset and bind it to sql adapter but the data is from one table. I want to view the data from multiple table when i add the tables to dataset it only shows me 1st table. Not sure how to accomplish this... Any help will be appreciated. You have to use different datagrids or if you want it in the same grid you can create something called a view in the database & then bid it to th ...Show All
Windows Forms Image Property
It would seem that you can create a new bitmap with an ImageFormat of Icon as long as the icon exists in a file (i.e. myfile.ico). Why then can I not assign an Icon to a new bitmap I know I can assign it by converting to&nb ...Show All
Smart Device Development Defragmented Internal Memory
Is there a tool that can be used to defragment internal memory. Not an SDCard. I have found lots of tools for that. But nothing for internal memory. Any odeas Thanks I don't think it's a memory fragmentation then. Memory fragmentation is only an issue if application was doing numerous allocations and deallocations. As soon as device resets, fragmentation is gone and you can start all over. I've no good answer ...Show All
