Tryin2Bgood's Q&A profile
Visual Studio Out of Memory Exception
I have a local report that is displayed in the report viewer control in a windows application. The report contains sub-reports. I'm trying the report with a fairly large amount of data which should produce 131 pages in the report. The report renders in the report viewer control. When the page count gets to 130 or 131 and dialog displays with the message, "An error occurred during local report processing". After clicking ok, the information displayed for the first page of the report is cleared and replaced with the dialog message on the first line. The second line of the report shows "System.OutOfMemoryException". I've also tried rendering the report directly to a PDF file, but do not have any success in trying ...Show All
Windows Forms cross Thread control accessbility
I am having a serious problem with accessing controls in another thread. This is the runtime error message I get. I want to describe the setup in general terms without displaying the code since it is large and complicated and would need a lot of editing for clarity if I am to do it. What I hope to get from this post is a general recommednation as to how such problems should be handled. It more information is desirable I will post the code. I have a Form1 class. There is another class, BuildNewTabsPages , that generates new TabPages for my TabControl on demand. When a new TabPage is created all its subcontrols end up in a Thread in the ThreadPool, I suppose. When the new TabPage is created by calling a function makeNewIntraDayPAG ...Show All
Visual Studio 2008 (Pre-release) May CTP install fails on Vista
I'm trying to install the May CTP on Vista RTM running VS 2005 SP1. The install fails immediately with the following error message: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2738." If I run "msiexec /i "LINQ Preview (May 2006).msi" /log log.txt" and log the MSI install, here is the start of the log, with the errors: === Logging started: 1/13/2007 0:55:38 === Action 0:55:38: INSTALL. Action start 0:55:38: INSTALL. Action 0:55:38: ProgramMenuFolder.492C141007D74A398E35467AE6109B0C. Action start 0:55:38: ProgramMenuFolder.492C141007D74A398E35467AE6109B0C. Action ended 0:55:38: ProgramMenuFolder.492C141007D7 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XAML defined game GUI rendered on top DX surface?
Hi ! Is it possible to use a XAML defined GUI as a GUI for a game that uses DirectX to render its scene That'ld would be a tremendeous simplification for game GUI development. With Expression designer & co. it should be possible to make game-like GUIs. Afaik, and maybe I'm partitially wrong, XAML gets rendered using DirectX anyways. But is it possible to tell the renderer to render to an already created Directx surface created by myself instead of opening a window and doing it on its own Is it possible to tell the renderer to ignore some portions of the screen In "traditional" XAML applications, the entire window/surface is filled by the XAML renderer, in this application, only parts of the dx surface have to be filled and ot ...Show All
Visual Studio Tools for Office VSTO, AutoText and WinForm Controls
Word 2003 VSTO 2005 Template solution I have a problem creating AutoText items that contain a WinForm control. Here are the details: I open my VSTO Word Template. Type some text and insert a WinForm control (e.g. a button) inline with the text (see code below, used to insert control into document). I highlight the entire text line, click on the New AutoText commandbar button to create a new AutoText item. I give it a name and now advanced down the document to "Try out" my new AutoText item. When I select the item, it properly inserts the text, however, the WinForm control is not rendered, only what appears to be a "ghosted" placeholder for the actual control. If I do this same thing using the Built-in Word Toolbar, and ...Show All
SQL Server discarding rows - best practice?
I have a need to filter out certain rows from my data stream. I cannot apply the filter against the source data using my DataReader component, due to some constraints in the source system. Therefore, I must filter the data out after it enters my datastream (trust me on this part). I have created a data flow that uses the Conditional Split transformation to do this. I created one condition that matches the rows I want to discard. I then connected the Default output stream to my target table. I have simply left the "discard" output disconnected. This appear to do what I want. My question is: is it OK to leave outputs disconnected in this fashion It isn't really apparent when viewing the package that the conditional split is ...Show All
.NET Development Debugging Custom Attributes
Is there something special I need to do, in order to set a breakpoint and step through a custom attribute I have a class like this: public class SecureClass { [ApplicationPermission(SecurityAction.Demand, CustomPermissions.UserAccessPermission)] [MyTest] public bool WasSuccessful() { return true; } } And I was trying to set a breakpoint in the constructor for ApplicationPermissionAttribute, so I could debug it. My unit test looks like this: [Test] public void TestUnsuccessfulDemandOfUserAccessPermission() { SecureClass instance = new SecureClass(); try { bool result = instance.WasSuccessful(); Assert.Fail(); } catch (Exception exception) { ...Show All
Visual Studio Team System Excel datasource problem - number format
I have a web test that binds some Post Parameters to an Excel spreadsheet. I notice that some of the values read from the spreadsheet are set to "" (empty string) even though they have a value in the spreadsheet. Debugging the web test and looking at the spreadsheet it appears that the cells that are being read as "" are those with leading zeros. For example, here are 2 rows from my spreadsheet, the first row, second column will be read as "" (empty string) even though it has a value ( 0692189409). All other cells are read correctly. 106500804887 0692189409 81005 106500062973 5520163826 49255 It appears that the formatting of the cells is having some effect ...Show All
Visual Studio 2008 (Pre-release) How to load an image into ObservableCollection "on demand"?
i have the following problem: I have created an observableCollection that holds images fetched from the internet. The observableCollection contains a thumbnail photo and the original photo. I present only thmbnails of a photo and when user doubleclicks it, the original photo is shown. The thumbnails are shown in a WPF listbox control. The problem is that the original images are large and it takes quite some time to load all of them into the ImageObjects (part of the observable collection). What I would like to achieve is to somehow load the large images "on demand". Is there a way of doing this In the photosCollection constructor I add an Photo object (which holds information about images... title, description, link to ti, ImageSo ...Show All
Visual C# this keyword's cons, pros or nothing?
Hello, I just installed Resharper Addon of Visual Studio and it pointed all the code where i used this keyword with a warning saying its a redundant qualifier. Its just my habbit to put a this keyword with instace variables so I can distinguish between function level and class level variable. But i dont know what effect "this" has Why Resharper is saying its redundant I'll be really happy to know what's effect of "this: keyword on the application code. Best regards, Rizwan Hello Peiter, Thanks for the sparing some time to look into my thread and anwering this. But I already know all you mentioned. My convern is what is meant by redundant here Does this mean C# compiler will have to do extra work to resolve thi ...Show All
Visual Basic Static Variable Does Not Retain Value
I am working with VB 2005 Express Edition. Coming from VBA, I have used static variables before with success. However, today I included Static declarations in a private non-shared event handler sub and had to discover that the static variable values were reset every time the sub was invoked. The class that contains the event handler is instantiated only once. I read the online help (ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_vbalr/html/19013910-4658-47b6-a22e-1744b527979e.htm), but to no avail. It may help to point out that the event handler sub is responding to the SelectedIndexChanged event of the CheckedListBox . I also noticed that whenever I click on any of the checkboxes that the event handler is invoked twice, w ...Show All
Visual Studio Team System Schema Import fails on import of SQL Server 2000 objects
I have a database with 5826 procedures, 1014 views, 5179 defaults, etc (i.e. many database objects). CTP 3 imported it all no problem... over a period of about an hour. CTP4 goes through the process, but somewhere in the process it fails and restarts VisualStudio responding with a message that VisualStudio has been restarted I've tried the process on a Microsoft XP SP2, dual processor, 2GB RAM box, and a similar server. Both resulted with the same message. A smaller database schema imports fairly quickly. There needs to be a way to import schema for only selected types of objects or selected objects. Mike - It appears you have encountered a bug in CTP4. I'll have someone from our QA ...Show All
.NET Development Help me plz!!! if i have file containing Hexadecimal in it......
if i have a file saved as .txt or .bin in my hard disk...through filing i have to read that file ..the file contain hexadecimal in it such as 1a 2a 3c 14 12 4d................. now i have read these hexadecimal from file and to put them in array .of integers......means ......if i take int [] array = new int [10]; then hexa decimal should be like.....array[0] = 1a; .array[1] = 2a; like this every hexa should sit on one postion of array ...thx u plz help me Hi Mayby this help you. FileStream stream = new FileStream ( @"..\..\HexFile.txt" , FileMode .Open); StreamReader reader = new StreamReader (stream); string [] strings = reader.ReadToEnd().Split( new char []{ ' ' }); int [] numbers = new ...Show All
Audio and Video Development Taking Screen Snapshots
Is anyone aware of a way to take screen captures of the video and save those to the player storage for later viewing The p-stor directory is automatically created when you write to the content directory. When using the simulator, I believe these directories will be created in your C:\Archivos de programa\HD DVD Interactivity Jumpstart\HD_DVD folder (if not, do a search for the HD_DVD folder on your hard drive). Xavier - sounds like you are new enough to HDi that you would benefit from playing around with the sample applications from Microsoft more: http://www.microsoft.com/downloads/details.aspx FamilyId=E19C869B-EF37-4E5E-91ED-32D059E3775B&displaylang=en You will find examples of how to listen for key press events and t ...Show All
Windows Forms ClickOnce Deployment Issue - File Has Different Computed Hash Than Specified In Manifest - Urgent!
Hello, originally posted this in the VB General forum - didn't get much response, so I thought I would post it here. I'm trying to deploy a ClickOnce Windows app. I have successfully installed it in the past. I made some changes to the .mdf file I have referenced in my application (I made the changes in SQL Server). When I published the app on another machine, I started receiving the error message "File ....mdf, has a different computed hash than specified in manifest". I tried a number of different suggestions that people have made on these forums, but no luck - I tried building the app twice, then deploying; I tried manually updating the revision number; I tried creating a new Test Certificate; I tried signing the assembly; I t ...Show All
