roundandround's Q&A profile
.NET Development Declaring an Event in a class causes memory leak?
I think this one is for gurus. 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. Any help I'm desperate!! Example Class: Public Class Myclass Public Event Status(ByVal pText As String) Public Sub New() End Sub Protected Overrides Sub Finalize() MyBase.Finalize() End Sub End Class Example Form That Instantiates / Clears the class This form only requires a textbox (multiline / accepts return) and a button. Imports System.Threading Public Class Form3 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim LClass As New LeakingClass LClass = Nothing End Sub Private Sub Form3_Load(ByVal se ...Show All
Visual Studio Team System Internal Error! Failed to acquire a ReaderLock
I get this error message at the end of a webtest. Any ideas as to why It is hard to make a guess as why you are seeing that issue. Looking at the code in your webtest and/or trying to debug (or of course, finding a constant repro) would definitely help us trying to understand what is happening here. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Visual Basic A questions about the need to install the .NET2 SDK
Dear All, Having successfully installed some .NET1.1 app's we've turned our attentions to version 2. When we installed .NET1.1 app's we had to modify the Local Intranet trust levels to allow our app's to work. This we could do on our users' PC's as they where able to run the .NET1.1 configuration. However, when we come to .NET2, they don't have any .NET2 configuration. Unless we install the SDK, we can't increase the trust level and the app's don't work. So my question is, do we need to install the SDK in order to modify the trust levels or is there some other way to do it. Alternatively, am I missing some whole new aspect of security settings within .NET I note that we are also able to set up trusted/partially trusted app's wit ...Show All
Visual Studio 2008 (Pre-release) screen to world coordinates
hi, I want to know if there exists methods to convert a point (captured by the mouse in a viewport) from screen coordinates to world coordinates in wpf. If not, how can I do the conversion thanks, pascal. actually i want to implement a picking method. I've got my screen coordinates but then i want to convert them into world coordinates so that i get a ray which intersects with my 3D models. how to do this in wpf ...Show All
Visual Studio Error on a Help File Build
Hello, I received the following error when building a help file on a project: Error: Unresolved assembly reference: System.Windows.Forms (System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac) required by apiregedit The project is building fine and I don't see any broken references. Thanks in advance for your help :) Bob Hanson hi, I am really new bee for sandcastle and I have exactly same problem, can anyone of you explain this in more detail thanks in advance :) regards, rashmi ...Show All
Windows Forms app.application Publish file
Hi, I know this has already been posted, but I need to get it clear in a simple way. The 'app'.application file is created when you publish an application to a web/ftp server, along with other files. The publish.htm page shows a button linking to the 'app'.application file and I can correctly install it, but a friend of mine (and maybe many more people too) get the 'app'.application file contents displayed in his browser. He has the .NET Framework 2.0 installed (installed automatically with VB 2005 Express), and I would like a simple solution to resolve this issue, without reinstalling .NET 2.0 (unless you are sure it resolves it). I also heard that it has to do with MIME types , but I'm not too familiar with this term to unders ...Show All
Windows Live Developer Forums my bot, can anybody here help me with my not {simple problem}
Hi everybody ..! well, I am trying to build my own bot (spleak, smarterchild .. etc) but I had faced a problem which is: when I was trying to start the SWHICHBOARD .. it just did not work plz .. I waiting ,..! The starting question here would be which of the licensed SDK's are you using to build your bot Based on that I'd 1st connect with that companies support forum. When you get it up and going, you should be sure to provision it out on gallery and then be sure to submit it to Robot Invaders contest. Cheers, Todd Biggs, Windows Live ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Models with repeating UV textures
I used Maya 7 to create a basic model of a box and then applied a file texture to it. I set the UV repeat settings so that it would repeat and it looks as I want when rendered in Maya. I then exported the model to a FBX file but the texture doesn't repeat when displayed in my game, it is stretched hideously across the whole object. Is there something I'm missing I'm just doing a basic model display. I imported the model into 3ds max and it looks fine. Can anyone offer any hints Thanks, Adam I haven't used BasicEffect, so, from my point of view, you have to write an effect file, and inside it, when declaring the Sampler, use this: sampler te ...Show All
Windows Forms Why my program is not multi-language when i do a setup project ?
Hi, I've done an application that has multiple languages, When I run the project, I can switch languages, even though I have to restart it. However, when I build the Setup Project and install it, English-US remains as the only language available. Do you have any idea about it Thank you If I understand, you are basically trying to deploy an application that has multiple localized resources installed with it... like the Japanese and German resources for your application. If that's right, there's a way to do it with ClickOnce, and a way to do it with Setup projects. For ClickOnce, you need to open the ApplicationFiles dialog, and then click the "Show All Files" checkbox. ...Show All
Visual C# I wanna to format any date like SQL Date without changing Regional setting?
Hi, I wanna to format any date like SQL Date without changing Regional setting Where I wanna 2 send a date in a field in sql-server of type date but it changes automatically 2 system format, so I must change regional setting, But I dont like this way :) Can Anyone Help me, with a solution 23DoorsDown Please provide an example of the from and to format that you are expecting, and the method that you are using (eg. T-SQL, a .NET program, or something else). From what I can understand, the regional settings of the computer that you are using cause a date in one format to be accepted by the SQL program as a different date (eg Jan 02, 2006 becomes Feb 01, 2006 due to a difference between Australian and American date formats, when ...Show All
Visual Studio Tools for Office How to control the dropdown items for built in controls
Hi, I want to reduce the number of font items in the font dropdownlist . eg . I just want to show 12,16,18,20 size fonts and it should have the same effect on the text which the built in control gives. Also, for font color dropdown i just want to diplay only standard colors once i click it . Is it anyway I can control this Thanks in Advance. Abhishek 1. I don't see what relation this question has to the VSTO technology Please see the "Please Read First" message at the top of this forum for appropriate venues to ask non-VSTO questions. 2. You don't mention which application you're trying to affect 3. There's no way to change what these built-in tools show you. They're just picking up what Windows supplies ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any Good Books?
Ok I was looking around for some good books that teaches you C++ with DirectX 9 . Any ideas what good books are out there to help me Oh yeah and helps mostly in the field of 2D scrolling games Even though this book gets some heat from some folks, I really recommend "Tricks of the Windows Game Programming Gurus" by Andre' LaMothe. He uses DirectDraw7 for his examples, and we all know that it's deprecated, but the examples are terrific. The whole book focuses on 2d games and algorithm development. Not to mention, chapters on Windows programming, AI, physics, multithreading, input, sound, etc. which "Focus on 2D" cannot even compare to. Once you learn this book, you can pass your knowledge to Direc ...Show All
SQL Server Differences IN AS 2000 and AS 2005
Hi, I just wanted to know if I can replicate a particular thing that I was able to do in AS 2000 very easily in AS 2005. Basically I used to define a time dimension in AS 2000 which was basically a single column and was able to split it into 3 levels Year,Quarter and Month using the functinality provided by AS 2000. Can I do something similar in AS 2005 because the options that I see in order to define a time hierarchy needs me to pick 3 different columns for each time level or hierarchy. Thanks There is a new "Server Time Dimension" option that allows you to build a time dimension simply by entering a begin and end date. If you want to control the exact format of how ...Show All
Visual C# make default webbrowser, and publish problem
hey i just made a simple webbrowser (using IE activeX) an i want to use it as default Webbrowser, how can that be done. i read something on a post that it can be done with the registry key, i read something on this link but, i didn;t understand many (visual basic ) this is the link... http://support.microsoft.com/default.aspx scid=kb;en-us;299853 isn't there anything easyer or made in C#. btw i have another question, at my borwser i used some pictures on buttons but when i publish project it;s not working (only when i deselect pictures form buttons) how can i make the publisher to take the pics (they are imported local resources should i use project resource file Resources.resx and import them there) HKEY_CLASS ...Show All
SQL Server how to manage 16 digit number
is there any datatye that can accept 16 digit number See the BOL for BIGINT: bigint -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) 8 Bytes HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
