zwp's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. XNA/Xbox 360 memory management heads-up...
I was just browsing through some docs on the 360's heap manager, and it turns out it is a compacting mark and sweep collector rather than the generational model used on the desktop... So... what's the deal regarding: Large block allocation (will it have a large object heap like the desktop version ) GC pauses times (do all threads halt during GC) Rico Mariani recommends a heap size equivalent to the Gen 0 size on the desktop, i.e. ~cache size. That seems way too small unless we are dumping lots of game data into unmanaged memory! Andy. You're right about the sandboxing, just not about the details of how that works. It turned out that it was possible for us to support unsafe code and pointers even insid ...Show All
SQL Server olap and hierarchy problem
Hi. This is an OLAP question. I have a dimension which is a father-son dimension. I built the cube in analysis server. In the analysis browser I can see the dimension fine, I hant my reporting services report to show that dimension. The problem is that the report won't show me that dimension in hierarchy tree (even if I check drill down) but flatten it down. Does some one know if report service can handle those kind of reports Thanks. Hi Teo, Thanks for your replay, Its hard to find help and support for Olap and for Olap and SSRS on the net. Its very disappointing to hear that RS does not support OLAP (and for me, if it can't handle parent-child dimension it can't handle olap). Looks like we will have to ...Show All
.NET Development .NET development 2.0 = 32bit ?
Hi, I'm confused. .NET development 2.0 only runs on 32 bit .NET development 2.0 SDK runs on 64bit but needs the other version to install. This doesn't makes sense. I'm SOL I guess. hi , i didnt get ur question , .net 2.0 runs fine (AFAIK) on 64 bit machines, currently we are doing all our developemnt on 64 bit environment, we have dual core p4 x64 architecutre ,with 64bit windows xp professional, vs2005 and .net2.0. .net 2.0 provides separat command shell for 64 bit and 32bit command prompt, 64 bit runtime distributable are also available, You might run into problems where u are referencing 32 bit dll/exes, cause by default on x64 machines vs2005 generates 64 bit executables. 32 bit dlls/exe can not be loaded into a 64 bit process, d ...Show All
Visual Studio 2008 (Pre-release) WSDL Export Error on Fault Type in XmlSerializer format
I wrote a simple service contract that has one operation (with one fault) that uses xml serializer format as shown below: [ServiceContract(Namespace="urn:MyXmlSerializer.Namespace")] [XmlSerializerFormat(Style=OperationFormatStyle.Document, Use=OperationFormatUse.Literal)] public interface MyContract22 { [XmlSerializerFormat(Style = OperationFormatStyle.Document, Use = OperationFormatUse.Literal)] [FaultContract(typeof(CustomerNotFound))] [OperationContract()] Customer GetCustomer2(CustomerSearch2 searchInfo); } [XmlRoot(ElementName = "customer", Namespace = "http://Raghu.Intercepted2.Schema/WCF.Service")] public class Customer { ... } [XmlSchemaProvider("GetSchemeI ...Show All
Visual C# System.Diagnostics
I need to get custom performance counters. I can get them using -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PerformanceCounterCategory cat = new PerformanceCounterCategory ("CATEGORY_NAME"); PerformanceCounter [] pc = cat.GetCounters(); foreach ( PerformanceCounter p in pc){ CounterSample cs = p.NextSample(); TreeNode tn = new TreeNode (p.CounterName); TreeNode ttype = new TreeNode ( "Counter Typee : " + p.CounterType.ToString()); TreeNode tValue = new TreeNode ( "RawValue : " + p.RawValue.ToString()); TreeNode tNext = n ...Show All
SQL Server rsAccessDenied
I have a reportViewer control on a webform. In my partial class I set the report path, server and parameters in the Page_Load. When I run the report I get this error: The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation. (rsAccessDenied) Here is my code: Dim u As New UriTypeConverter Dim ReportParameters(0) As ReportParameter ReportParameters(0) = New ReportParameter("ProjectKey", 262) rv.ShowParameterPrompts = False rv.ServerReport.ReportServerUrl = u.ConvertFromString(" http://localhost/ReportServer/ ") rv.ServerReport.ReportPath = "/Test/Duplicate_MIU_Report" rv.ServerReport.SetParameters(ReportParameters) Have you properly gra ...Show All
SQL Server Merge Replication using SSL on a Windows Mobile 5.0 device
Dear ppl, I have a windows mobile 5.0 application that syncronises with SQL Sever 2005 (Merge Replication). The replication works fine without SSL. But when using SSL it doesn't work .On the device i get an error 28037, A request to send data to the computer running IIS has failed . I have created a a Wild Card Certificate (*.domain-name.net) using Microsoft Certificate Services (Stand Alone) and setup the replication website with replication virtual directory under it , in IIS, to use this certificate. The host header for the replication site is set to "sql.domain-name.net". I have binded the host headers to the port as well. I can access the https://sql.domain-name.net/replication/sqlcesa30.dll fro ...Show All
Visual C# Error when trying to compile a program
I am quite new to Visual C# 2005 Express and I sometimes get an error while trying to run my program (F5). It looks like this: "The following module was build either with optimizations enabled or without debug information: C:\Documents and Settings\CBS\My Documents\Visual Studio 2005\Projects\Lesson02\Lesson02\bin\Debug\Lesson02.exe To debug this module, change its project build configuration to debug mode. To supress this message disable the 'Warn if no user code on launch' debugger option." The strange part is, that this message first appears after some time working on the project. If i start an entire new project the program starts just fine. Any ideas how to solve this Th ...Show All
SQL Server call store procedure from another store procedure
I know I can call store procedure from store procedure but i want to take the value that the store procedure returned and to use it: I want to create a table and to insert the result of the store procedure to it. This is the code: Pay attention to the underlined sentence! ALTER PROCEDURE [dbo] . [test] AS BEGIN SET NOCOUNT ON ; DROP TABLE tbl1 CREATE TABLE tbl1 ( first_name int , last_name nvarchar ( 10 ) ) INSERT INTO tbl1 ( first_name , last_name ) VALUES ( exec total_cash '8/12/2006 12:00:00 AM' '8/12/2006 12:00:00 AM' 'gilad' , 'cohen' ) END PLEASE HELP!!!! and God will repay you in kind! Thanks! Let's say @res1 is output parameter ...Show All
Visual Studio Express Editions Help needed with building a Media Player
Help needed with building a Media Player I am looking for the Duration of the video or audio clip in the Media Player. So far I have not found it. I am building a Database, containing a Media Player with the following tasks. 1) I need to find and extract the Duration from the record. 2) UseCount must be incremented every time the record is used. 3) I need to find a way to link the query to the contents of the form. This is the query from the MS Access database; it contains one of 4156 records TitleID 23610 Artist Artist USA Title Working for Caligula Year 1996 TrackNo 71 Duration 0,00 DatIn ...Show All
SQL Server Group By
Hi, I have a query, SELECT Count(*) as Casecount, exrank AS NoOfSubstances From cacase c INNER JOIN paPatient pp ON pp.caCaseID=c.caCaseID INNER JOIN exExposure ee ON ee.caCaseID=c.caCaseID INNER JOIN exExposureSubstance es ON c.caCaseID=es.caCaseID Group By exRank Which is returning results like the following format: No.of substances ,CaseCount ---------------- ----------- 1 ,3 2 ,69 3 ,98 .. ,.. 11 ,56 .. ,.. 20 ,788 Now I need to get the result like this: No.Of substances , CaseCount --------------- -------------- 1 ,3 2 ,69 3 ,98 .. ,.. 8 ,56 >=9 ,123 Like that >=9 CaseCount have to show the Sum of CaseCounts for which No.of substances>=9. How to acheve this. Thanks in advance Hi, Thanks ...Show All
SQL Server First Time Installing - Can't Find BIDS
Thank you to all that take the time to read this! All software is installed on a single development pc. I have a SQL Server 2000 Developer Edition Database that I am using to test a new Accounting System. SQL Server 2000 is the required format. I would like to start developing some SRSS reports against that database. It was suggested that I install the SQL Server 2005 Reporting Services, because I was told 2005 is less buggy and easier to use. I installed SRSS 2005, and only SRSS 2005, and used the Configuration Tool to get it configured properly, I think. I have green checks on everything except "Email Settings" and "Execution Account" Now, I want to write some reports. BIDS is not under the "Mi ...Show All
Visual Studio Express Editions VC++ Newbie - Help with DLL's
Hi, I'm just getting into VC++ and need some help. All of the core functions i need for my project are in a DLL which I'm borrowing from another program. So I went into VC++ and made a windows form with all the controls I need for my application. Now I need to know how to actually load the DLL and use its functions. Is there an easy way to do this in VC++ 05 and if so, how Thanks in Advance What type of DLL is it Is it also a Windows Forms DLL - what is known as a .NET Assembly Or is a COM DLL Or is it a regular Win32 DLL The question is important as the method to access the DLL depends on it's kind. ...Show All
Software Development for Windows Vista Designer Problems - The Exception...
I’m experiencing some problems while working with wf in visual studio. Sometimes while building or rebuilding the solution, the build fails, and NO exceptions are given . Opening the workflow file (workflow.cs) will show an exception in the designer: “ Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information .” I don’t know what it means. However sometimes, restarting VS will resolve the problem, but then again…sometimes it doesn’t. The problem occurs for both state machine workflows and sequential ones. I’ve not used workflows with code separation. An other, not so funny feature is the fact that workflow files will be changed up on building. Using source control, files will be ch ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D rotation question
These are probably pretty Noob questions but this is my first game ever. I'm looking for the XNA way of doing things for the following: 1. I have a sprite that is a simple rectangle. When I spriteBatch.Draw I rotate the sprite say 90 degrees. I have a bounding box that corresponds to the sprite which I also need to rotate so it matches what is drawn on the screen. Origin is (0,0) but I could make it the center of the sprite if that is easier. I'm guessing I have to use Matrix.CreateRotation (x,y,z ) then a Vector2.Transform This is the part I'm kind of confused on. 2. I want my enemy ship to face the player ship. I have the position of both objects. How do I calculate the angle between them 3. Calculate the distance between two points. ...Show All
