SomeGuyOnAComputer's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. What a drag...
On the games I've made in XNA, there seems to be some slowdown drag time when the processor is doing something else for a second. This usually happens at the worst possible time and my 360 controller can only take so many throws into the wall. I know that professionally created games do a good job of keeping things on an even keel (unless you're defragging your hard drive or something)... How have the rest of you managed to get around the slowdown ticks Does it have something to do with the XNA thing that keeps everything at 60fps I haven't delved into that area yet.. Yes Media loading is usually a good culprit for this. The other thing that is simple to look for is excessive GC generation 2 calls - ...Show All
Windows Forms Question about accessing properties, methods from a user control
Hello! I have a problem which is frustrating me. Why won't the roperties and methods that are inherited from my custom user control work on my Win Form I have declared the properties and methods as Public and Intellisense "sees" the property if I call it from the Form. But, the frustrating part is that the property does not work. It is a simple property that changes the string value of the text on a label. The label's container is a ToolStrip. Here's the property: Public Property DisplayApplicationStatus() As String Get Return Me. label1.Text End Get Set ( ByVal value As String ) Me .label1.Text = value End Set End Property As I stated earlier, VB.NET "sees" ...Show All
Visual C++ Create .pdb for the release version of programs with VS 2005
Hello all: I'm a device driver developer and do not use VS 2005 often. With DDK's build tool I can create .pdb file for both debug and release of programs. However, with VS 2005, even I set 'Generate Program Database File' on Linker->Debugging, no .pdb can be created. Tried with enable DEBUG preprocessor and it worked. So, the Q is how to create the .pdb in this case Thanks. My last post on this thread should help. (But use /ZI as Martin corrected.) ...Show All
Visual Studio Express Editions All implementation in header files C++/CLI
Hi, I was wondering what are the drawbacks of implementing all the program code in header files is. This is because when i used the Form Designer, all the implementation is in the header files, so I implemented my other source code in a similar fashion. I'm quite new to C++/CLI. None, when thinking of the runtime of an application. Might be less maintainable because the declaration of a class is not as easily watchable because of the inplace definitions. Library developers normally would like to distribute only headers with declarations together with theirs libs and dlls and no definition of their classes/functions. That typically is not an issue with .Net as you would distribute the assembly which i ...Show All
SQL Server multi databases or partitions
Hi all i have 3 million customer stored in a billing system. currently i dived them to 40 database running sql2000. i plan to migrate to sql 2005. Is it better to let all customer in one partioned table based on city. or divide them one database for city. taking into account there is 15 million transaction per month. i want to get best performance and maintainance for backup. thanks Hi, I would go for the partioned table. It is easier to remain within 1 database. I think there is more overhead in going to multiple databases anyway. With the partioned tables in 2005, you can span your data on multiple disks. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belg ...Show All
Visual Studio 2008 (Pre-release) Linq: Performance Issue
Fellow explorers, I ran a test the other day on the performance of certain aspects of Linq. I had an object Office with Id and Name properties and then created a List<Office> with a bunch of random instance of these objects. Then I wrote 3 finders to look for all the objects with Id > 10. Simple stuff. The for test: List<Office> os = new List<Office>(); for (int i = 0; i < offices.Count; i++) { if (offices .Id > 10) os.Add(offices ); } The foreach test: List<Office> os = new List<Office>(); offices.ForEach(delegate(Office office) { if (office.Id > 10) os.Add(office); }); The Linq test: IEnumerable<Office> m ...Show All
Visual Studio Tools for Office Error debuging Excel Smart Doc VSTO 2005
Hi everyone!! I'm developing an Excel C# Smart Doc with VSTO 2k5, it was ok some time but recently when I tried to debug it it lauch an exception but the detail is empty, no exception, I was looking in th event viewer logs and more but nooo, it doens't reach the load event of the workbook, and something strange this project is Source Controlled by Team System, when you get the lastest version the smardoc loses the Microsoft.Office.Core reference, but trust me the COM is there, later it refresh and the reference is fine again, this was happening in another computer of the team but now this reach me, some one can help me please Franciscon, Sorry, but I do not understand what you are trying to say. Can you rephrase and provide mo ...Show All
SQL Server Slow performance
Hi - I have MS SBA2007beta and Office Outlook 2007 BCM Beta. Both use SQL2005 and they are both as slow to point of being frustrating. Outlook2007 without BCM is fine and every other application runs fine if no SQL server apps are present. I have this running on a 2.8ghz desktop with 1G memory and a Laptop of 1.8ghz and 1.5g memory. The laptop is far faster. When SQL apps are running everything is slowed. ...Show All
Visual Studio Express Editions Resource Compiler Fatal Error RC1015
I downloaded the MediaShare starter kit for VC++2005, but can't run it because of the "Fatal Error RC1015" message I recieve. This error occurs because VC++ can't open the include file "afxres.h". I searched my computer, and found two of this file: one in lower case, the other in upper case. How can I resolve this issue include "C:\Program Files\Microsoft Platform SDK\Include\mfc\afxres.h" then it should be compiled with no error ...Show All
Visual Studio 2008 (Pre-release) How to use OnWriteStartEnvelope? Urgent, please help
I am using WCF to create WS-Discovery and other WS-* messages. The specs all show the namespaces for a message included in the envelope tag. WCF only provides me with a way (using a BodyWriter) to put the namespace on each tag. A previous message on this forum said that the ability to add namespaces to the envelope "was cut due to resources". Is that still the case with RTM If so, would it be possible to see a sample of using OnWriteStartEnvelope to create the entire envelope for a message Or at least a snippet that would get me started I have tried creating a class that derives from Message and overridding OnWriteStartEnvelope, but it never executes, so there must be something I don't understand about how to do this. ...Show All
Visual C# What is "VB.NET My" equivalent in C#?
Hi, In VB.NET there is a keyword called "My" which has a lot of properties collected at it. Is there any equivalent to this "My" in C# Thank you. No, there is no equivalent in C#, but if you really want to use VB's "My", this page shows how to do it: http://msdn2.microsoft.com/en-us/library/ms173136.aspx Michael Blome Visual C# Documentation Team ...Show All
SQL Server MDX - Filter by one date dimension and report on another date dimension
Hi, I have a fact table in which i have more than one date dimension. The fact table is a periodic snapshot fact table. The Fact table looks like this FactInvoice PeriodKey InvoiceRaisedDtKey InvoiceUpdatedDtKey InvoiceClosedDtKey InvoiceAmount A weekly snapshot of all the invoices are maintained. I need a measure which will give me the number of invoices raised(created) during a given Period. Lexically, count of invoices created in the period to be reported against the Period. Both PeriodKey and InvoiceRaisedDate have hierarchies as follows: Year->Quarter->Month->Week I understand given the nature of the fact table i need to implement a custom rollup to produce the correct count as the count ...Show All
Game Technologies: DirectX, XNA, XACT, etc. [IronPython] MS.Xna.Framwork.Components missing?
Hi all, I've played around with the starter kit in C# for a while, and I really enjoyed what XNA can do, but frankly, I'd much rather tinker around in Python. I've been looking around, and I've found many, many code snippets from the August-September time period of "demo games" in IronPython, including this one here on MSDN: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682285&SiteID=1 However, all of these snippets reference Microsoft.Xna.Framework.Components, which my IronPython interpreter insists does not exist. I've tried exploring the library throught the GSE's Object Browser, but I can't find any general equivalent. Has the library been changed since August/September Does it "make sense" that I'm ...Show All
Visual Studio 2008 (Pre-release) Supporting Readonly Properties
I have a problem with these... In fact, we often use readonly properties referencing other domain objects. It works well with DLinq when it comes to retrive data from the db and for insertions. On deletion, however, DLinq seems to try to dettach an entity from its related entities (even if on the left side of a n:1 relation) thus requiring a Set assessor which we lack : Bug. Ok, so searching the forum I read a workaround that proposed to map a protected field and expose it a public readonly property as are design requires it. But DLinq doesn't seem to want to map any of field to other entities... It's kind of a hard sacrifice for us to accept to add setters implementations because it's not the in the properties signature, and mainly : the ...Show All
Visual C++ Heap memory question
My OS(XP) plus program chews up all 2 gigs of my RAM My program will crash and fail while trying to realloc more memory. My question is, I thought windows will access the hard drive for virtual RAM when my physical RAM runs out. Am I to assume that each program is only allowed so much HEAP allocation and that is it Any help appreciated Hello Re: Heap memory question Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
