EvilOneSD's Q&A profile
Visual Basic Memory usage - events
I recently answered a question at VBCity about a memory leakage with VB.Net: "I am creating a class with an Event, then I instantiate the class and dispose of it. VB seems to be wasting 16 bytes each time. " I did some research, and found something really interisting. A small VB.Net application to test this showed that the memory usage slowly increases over time. The object never gets collected. A C# test worked as expected (memory usage increases the 1st time an object is created, and then it stays the same). When I investigated the CLR code for this, I noticed why: C#'s ctor function only created the object, while VB's did the following: IL_0001: call instance void [mscorlib]System.Object::.ctor() IL ...Show All
SQL Server SQLServerAgent Rights
Hi, I have a problem that concerns the abillity to specify rights to edit and run one or more jobs in SQL Server 2005. What a want to accomplish is to let one or more users edit a job and run it. As far as i can see that isn't possible since the user that want's to edit the job has to own the job, and only users can own a job and in that case more than one user won't be able to run the job. It's a catch 22! Does anyone have any suggestions regards An interesting article here ...Show All
.NET Development Programmatically change UpdateMethod of ObjectDataSource
I want to change the UpdateMethod of an ODS. I've tried changing it but it keeps going to the method initially defined. The parameters are the same between the two methods. The docs indicate that you can Set the property and you don't get a compile error. Any thoughts From the code above, shouldn't it be ObjectDataSource2.UpdateMethod = "UpdateContact" Have you tried placing a breakpoint on the CustomerDS.UpdateMethod = "UpdateContact" line to make sure it is executed as expected Charles ...Show All
Visual Basic Writing a pixel.
Hello All, In the days of VB6 one could use Pset to write a pixel onto the screen. It appears that VB2005 has considered this uneccessary and ignored it instead. The help suggests drawing an ellipse of size 1 pixel (isn't this like using a jackhammer to crack a nut ) so I did with this sample code: Dim myStyle As New Pen ( MyColour , 1) gr . DrawEllipse ( myStyle , Xpos , Ypos , 1 , 1 ) Sometimes I get my single pixel, sometimes I get a vertical line of 1x2 pixels - depending on the values of Xpos and Ypos. Is there a reliable way to paint one pixel As an aside - does anyone know why MS abandoned the Pset type construct - are Pixels not worthy in VB2005 All the best. ...Show All
Software Development for Windows Vista Control panel "Windows Cardspace" doesnt work
Every time i start the "Windows Cardspace" from the control panel, i get this eventlog error: Running on german XP Pro SP2 Ereignistyp: Fehler Ereignisquelle: CardSpace 3.0.0.0 Ereigniskategorie: General Ereigniskennung: 269 Datum: 07.11.2006 Zeit: 19:38:32 Benutzer: NT-AUTORITAT\SYSTEM Computer: ATHLON64 Beschreibung: The Windows CardSpace service is too busy to process this request. User has too many outstanding requests. Additional Information: bei System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) bei System.Environment.get_StackTrace() bei Microsoft.InfoCards.Diagnostics.InfoCardTrace.BuildMessage(InfoCardBaseException ie) bei Microsoft.InfoCards.Diagnostics.InfoCardTrace.TraceAndLogExceptio ...Show All
Visual Studio Express Editions Questions / Answers : Evaluation Outlines !!!
I am developing an ITS System , in the Evaluation Stage , can someone help me with the outlines for developing the evaluation : What is the most approciate way for storing the Questions and Answers : Multiple Choices , TRUE / FALSE , and any other Questions and Answers form and ... What is the best way for Representing the Questions and Answers to the Learner and ... Finally Thank you so much :) okay charles let's go through this one by one to show the question to the user i am using the DataReader : I'm using a label control to show the question text if i tried this line while (MyReader.Read()) { label2.Text = MyReader[ "Question ...Show All
Smart Device Development Creating the cab file for the release configuration
Hi, I created the cab file for the project, but it creates the cab file for the debug version.I want to make the release configuration for the project. I get the error of Invalid Signature. and want changes to be made in order to make the application the release type. plz help. Thanx in advance. It creates the CAB for current active configuration if you've added project output. If you've just added files, it would add whatever files you've added. As to the error, you should be more specific about it – where you get it, which action leads to it and so on… ...Show All
SQL Server Where can i get the calender control
Hi, i am new to sql reporting services 2005 ..where can i get the calender control and how to use that in reporting services....its urgent Regards, Pradeep thanks in advance You don’t need to *get* the calendar control, its there if you use the datetime data type as a input parameter. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C++ error C4430: missing type specifier - int assumed.
hi, I'm trying to build (on vc8) a program that just contains #include<idl_export.h> and i get the following errors Error 1 error C2143: syntax error : missing ';' before '*' F:\RSI\IDL63\external\include\idl_export.h 2427 Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int F:\RSI\IDL63\external\include\idl_export.h 2427 Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int F:\RSI\IDL63\external\include\idl_export.h 2427 Error 4 error C2061: syntax error : identifier 'FILE' F:\RSI\IDL63\external\include\idl_export.h 2862 could anyone help me... regards yasmina wrote: [...]i get the follow ...Show All
SQL Server Object taken by Microsoft.ReportDesigner.Design.ExpressionEditor.EditValue()
Hello! I would like to use the Microsoft.ReportDesigner.Design.ExpressionEditor.EditValue(IServiceProvider provider, object value) method. My problem is that at the moment I don't know what properties/fields the object value has to have so that the Expression Editor recognizes that it is associated with a RptDataSet when I click on 'Fields'. I've spent a couple of hours trying to guess the properties/fields without success. Can anybody please give me a pointer Many thanks! Christopher, the sample code (from the Polygons sample) contains the line newValue = ( string )editor.EditValue( null , this .designerComponent.Site, this .oldComboValue); whereby oldComboValue is a string containing the previous expression ...Show All
Visual Studio Tools for Office Error when loading a MSDN sample solution
I'm a bit new to this but here's the problem. VS2005 Pro, VSTO 2005SE, and Office2003 Pro. When trying to load an existing solution sample downloaded from the MSDN Library ie. (Building an Excel 2003 Invoice Application Using Visual Studio 2005 Tools for Office) I get the following error: "One or more projects in the solution could not be loaded for the following reason(s):" "The Application for the project is not installed." "These projects will be labeled as unavailable in Solution Explorer. Expand the project node to show the reason the project could not be loaded." I suspect the application not installed reference is Excel 2003 can't be found even though it is installed and working - coul ...Show All
SQL Server Cache calculated member
hi, i have several calculated mebers in my cube that take a long time to be evaluated. so i would like to evaluate the the calculation during processing my cube and store it directly in the cube. So far i only found the "CACHE" statement that would fulfill my needs but i dont get it to work correctly my calculated members looke like this; CREATE MEMBER CURRENTCUBE.[MEASURES].[Kaufpreis je Wohnflaeche m2 Max] AS MAX({descendants([Immobilien].[Geographie].currentmember, [Immobilien].[Geographie].[Immobilie], self)},[Measures].[Kaufpreis]), VISIBLE = 1; the [Immobilien].[Geographie]-Hierachie looks like this: Immobilien Land PLZ Immobilien Immobilie what would the CACHE-Statement look like to cache this calculated m ...Show All
Visual Basic Selected Value in ComboBox Populates DataGridView
'I need assistance on how to Load the GridView By selecting a value in the ComboBox '1. ComboBox is loaded with Satellite SCC #s' From SQL Server 2005 Express '2. The DatGridView is loaded with signals that correspond to the Transponders on the Satellite From SQL Server Express 2005 'The GridView also contains the Satellite SCC #s'. '3. I need the GridView to only load the Signal that Matches the Satellite SCC #s' that are Selected from the ComboBox. '4. So when you click the SCC # in the ComboBox, it will search the Signal Database Table for all the matching 'Satellite SCC #s' and then load the signal information into the GridView. DataBase: SQL Server 2005 express Language: VB.NET 2005 FrameWork: .NET 2.0 Imports System ...Show All
Visual C++ C++ or Visual Basic for Windows Applications?
I'm new to .NET, Visual Basic, Visual C++, etc. and I'm interested in creating Windows Applications. Which would be better to use, Visual Basic, or Visual C++ (And what about C# ) Thanks. I personally have just switched over to C++, and I have been using Visual Basic.NET for awhile, and I found it a lot easier to learn to program using Visual Basic, but I want more control now over how the program operates so I just switched a few days ago. But Visual Basic is much easier to both start with for learning and also for faster application development as far as I am concerned, unless there are more complex custom procedures required which in that case would be easier. But if you are planning to build window ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
