Martimus's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Slight Lag in XNA?
I am new to XNA, but I followed some simple tutorials to load a small image, get it on screen, and move it around. I've noticed that for the most part, the updating of graphics is smooth, but every few seconds the update to the display "misses a beat" or something and the on screen sprite jumps instead of moving smoothly. I have changed the display to show one hundred images and do the same test, and I get the same result (it doesn't even get worse). I've confirmed this happens on a friend's top of the line computer as well. I can't imagine anything I am doing is that intensive...I have made games in DirectX before and have not had this issue. I have a breakpoint in gameTime.IsGameRunningSlowly (forgive me, I forget the exact pro ...Show All
Visual Studio The data source object is invalid
Hi, I'm getting this exception when trying to use .SetDataSource() on the report. How can I track this down Thanks, Mike Edit: The only reference I saw to this is when using 95/98/ME platforms and a Classic ADO RecordSet. This is not the case, as I'm using XP Pro sp2 and a business object. Well, this is pretty interesting. It looks like there are four .SetDataSource methods - you can either pass it a DataSet, DataTable, IDataReader or IEnumerable. My object I'm attempting to pass doesn't derive from any of these types, and yet it still compiles. The following code produces "false" for all four Debug statements, and throws the data source object is invalid on the last line. ...Show All
.NET Development Cache-Oblivious Data Structures and Algorithms
Are cache-oblivious D&As still valid techniques to take advantage under a VM, one would assume so however i would like to know for definite and in detail please, thanks in advance. The answer is to profile your code. Especially if you can come up with multiple algorithms to do the same thing, then you can compare the results and draw your own conclusions for your own scenario :-D ...Show All
Visual Studio Team System Opening a database project is taking a very long time
Hello everybody, I have a little problem. I created a database project that represents a Microsft SQl Server 2005 database schema. When importing the schema (the database size is 1.7 Gb) it took 6 hours. After creating the project , when i want to open the project it takes 2 hours. How is this possible Can anybody help me on this one Thanks a lot, Oana. Well, I don't know if the slow down is only because of adding the project to Source Control. I created a new project , import the database schema and then i tryed to open the newly created project. The time for opening the project was the same .. a few hours. What should i do next Oana. ...Show All
.NET Development merging dataset and deleting rows that are marked as deleted
Hello everyone, I would like to know which is the best way to merge a dataset in another and if a row in the merged is marked as deleted will delete the row, if exists one with the same key, in the other dataset. Thanks in advance. I am not entirely sure that I understand the request. Are you looking for deleted rows and ignoring additions during the merge, or do you need a simple merge that includes deletion handling If it's the latter, DataSet.Merge probably fits the bill - can you describe how your expectations differ otherwise Thanks, Marcelo - MSFT ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpriteBlendMode.Additive
I have a dumb question, but I cannot find any information on this. Can someone tell me what SpriteBlendMode.Additive does I mostly use SpriteBlendMode.AlphaBlend in my code, but I would like to know in what scenarios would I want to use SpriteBlendMode.Additive I appreciate any feedback. Usually yes. They give very different visual effects: AlphaBlend is good for partially-translucent objects, while Additive is good for glowing things. If you wanted your HUD to glow, you could use Additive, but normally you juts want it to be translucent. Likewise in the game, Additive will work well for glowing things like explosions, lensflares, and magic effects, but for translucent things like water or glass you ...Show All
SQL Server SSIS dataflow designer bug
When I drop a new component onto the design surface, it appears with dotted lines around it, as it is selected. But, the F2 key (the hotkey for rename) does not work. I have to click on some other component, and then back on the new component, and then the F2 key works. I remember reporting this bug back in the beta cycle, but it is still present even in the release -- I actually think I'm using the SP1 version of 2005, but see version info below to be sure: Remote terminal services broke my copy buffer again, as is so often does, so pasting in the version info failed -- falling back to manual typing -- SSIS 9.00.2047.00. bug reports may be submitted here: SQL Server Feedback ...Show All
Smart Device Development path not found - vs2005 to SQLCE .sdf file
Hi there, i'm currently working on a Windows mobile 5.0 application using Vs2005. my original intention was to store data in mobile access tables and them integrate this with data on a desktop pc. having searched a few forums (this one included) i find i cant do that anymore so i now want to store data in sql server ce on the pocket pc and integrate that with data in the desktop pc in SQL Server. To SQL server Pro's i'm sure this is easy but unfortunately i'm new to both Vs2005 and SQL so any assitance would be greatly appreciated. i've created a .sdf database and attached this to my project (also set it as content) but when i try to connect to the database (using either emulator or on the Pocket Pc itself) it s ...Show All
Visual Basic Option to run vb app from command line
Hi I'm developing an vb.Net application that loads some data into a database. This consists of a basic form for user input and a loader class that is used to load the data. My problem is that I need to allow the application to be run from command line with no user input (ie as a batch process). I've set up an ini file and have used Microsoft.VisualBasic.Command to detect the command line parameter "batch" within the constructor of the form (public sub new()), which runs the loader without user input. That's all working fine, but when I run it from command line the application executes, but the commandline doesn't wait until the process has finished before prompting for the next command. This is a problem if the app ...Show All
Visual Studio 2008 (Pre-release) Storyboard pause behavior
I have a storyboard animation running forever and want to pause it when the element is not visible - the animation continues to run as evidenced by cpu usage. When the animation is running, cpu usage is about 22%. With storyboard sb, sb.stop stops the animation (cpu approx 0%) and returns the visual appearance of the element to the initial appearance. sb.begin(me,true) starts the animation again. When sb.pause is used, the visual appearance freezes and the cpu usage drops to 8-10%. When sb.resume is called, the visual appearance jumps ahead to some appearance proportional to the amount of time since sb.pause was issued. So, it looks like sb.pause freezes the visaul changes but does not pause the animation clock. Is this corre ...Show All
SQL Server changing a reply to another question in the same thread
Is there a way to do this When I have a further question in the same thread, my only option is to reply to the one who answered the last question. How do I put forward that question to everyone Do I have to start a new thread with the same subject thx Kat I would suggest that you have a couple of options. If you don't feel the answer was acceptable, unmark it and ask your question. If the answer was acceptable, and you just have a follow up, just ask the question in that same thread. It will pop back to the top, so someone should look at it. Especially if it was a follow up that needs the existing question/code etc. If not, then start a new thread, but reference the old thread by URL. Then you get the best of both world ...Show All
SQL Server How to use CLR security ..Impersonation to access external resources?
I want to Access External resources inside the CLR Code... But I am getting Security Exception I have marked Assembly with External Access... here is the way I am doing.. I read articles and MSDN .. everywhere is written to use impersonation like using ( WindowsIdentity id = SqlContext .WindowsIdentity) { WindowsImpersonationContext c = id.Impersonate(); //perform operations with external resources and then undo c.Undo(); } In above case .. I tried both Windows Authentications and SQL Authentications ... In case of Windows.. I am have a domain login to logon to my pc, while sql server is at another machine and Active directory is at different machine .. when connect to Database .. it says cannot fin ...Show All
Windows Search Technologies desktop toolbar
My question is dumb but oh well. I somehow moved my toolbar vertically on the right side of my screen and dont know how to put it on the bottom of the screen again. Can anyone help me I assume you mean the taskbar. Right click an empty spot on the taskbar and make sure that "Lock the Taskbar" is unchecked. Then click on an empty spot on the Taskbar and drag it to the correct location. ...Show All
SQL Server MDX: Reference ROOT when subcube is used (database totals)
I am trying to create a calculated member that returns the database (not visual) total of a measure. CREATE MEMBER CURRENTCUBE.Measures.Test AS ([Measures].[Purchase Value], ROOT([Supplier]) Now, this works in the following query SELECT [Measures].[Test] ON 0, [Supplier].[Supplier].[Supplier].Members ON 1 FROM Analysis WHERE [Supplier].[Supplier Group].&[3434] But when the query is executed using a subcube: SELECT [Measures].[Test] ON 0, [Supplier].[Supplier].[Supplier].Members ON 1 FROM (SELECT [Supplier].[Supplier Group].&[3434] ON 0 FROM Analysis) .... Analysis Services applies VisualTotals and my calculated member is the result of the total for the supplier group specified in the subcube stateme ...Show All
SQL Server R
Hi Experts, After performing some tests on my setup I recorded very large performance degradation between simple setup and mirrored setup (High Availability – with witness). In some inserts tests (100K in a loop) it took up to 400% longer to complete for mirror setup compared to the simple one (40 seconds compared to 170 seconds). Is this performance hit normal Is there something that can be done to make it perform better The PCs are connected using a 100MB switch and I'm using SQL Server Developer Edition. Thanks, Avi Thank you all for the replys. I use two dual Xeon PCs with 2GB memory. The disks are fast too. The performance without the mirroring is great - over 2000 inserts per ...Show All
