Minherz's Q&A profile
.NET Development .LoadFrom Dependency
Hello All, I've built a light weight plugin kind of feature using Reflection. I use LoadFrom to load plugins from several sub folders under the main application folder. Each of the plugin sub folders may contain one or more assemblies. I understand that assemblies that are loaded using LoadFrom uses the concept of a load context, and when assembly references need to be resolved, the path where the load from assembly exists is also probed. I have a problem that I have not been able to fix - Assembly References indeed get resolved and the sub folders get probed as well. But not for all the references. I have found that assemblies that the plugin references and those that are built by me (my private assemblies - strong named) get ...Show All
.NET Development How can i release resources used by Bitmap
Hi, can anyone help me about releasing resources used by bitmap i have some usercontrols in my app and they displays an image from mediafiles. I get images as thumbnails with code part below Bitmap bmp = new Bitmap (posterFramePath); Image img = bmp.GetThumbnailImage(120, 96, null , IntPtr .Zero); bmp.Dispose(); pictureBox1.Image = img; works fine and displays thumbnails. However, when i refresh controls(dispose and recreate all) memory inreases about 2 MB for 20 user controls. i think bmp.dispose does not somehow. For any offers i'll be glad to you. Hi, first make sure that you no longer have any refernces to the image or thumbnail i.e. set pictureBox1.Image = null If ...Show All
SQL Server Most effecient way to get "previous row" values?
Wow, this board has gotten really busy lately - maybe 2007 is the year that a lot more people start using SSIS :) Anyway my question is this: If I have an ordered set of data in the data flow and I want to add a column, lets just say "previousID" that basically has the ID value of a column from the row immediately before it - what is the most effecient way of doing that I've done much more complicated things with running averages, mean, etc by creating an asynchronous script transformation, pushing the data into a datatable in memory and looping through row by row using variables etc to do the calcs... but I just have this feeling that there is a "lighter, faster, easier" way for just getting previous row's value (with ...Show All
Visual Studio Express Editions Me.Size.Height ...
Hi, I'm trying to resize my Form1 in Form1_Load event method: Me .Size.Height = 1000 but it's giving an error, telling me that the value Height cannot be assigned a value... Why Thank you You do not need to work with the "size" at all ....just set the foms height property: Me . Height = 1000 ...Show All
Visual Studio Express Editions Help with threads
From my main form, I am starting a backgroundworker to run asynchronously with code ( backgroundworker1.RunWorkerAsync () ). This background worker then starts a instance of a class with the following code… Dim worker As BackgroundWorker = _ CType(sender, BackgroundWorker) Dim startclass As New class1 startclass.class1sub () This new class then fires of 8 further threads (each of which make a different web request). I am starting these threads with this code… Dim startclass2 As New class2( _ “string”, “string”, "string") Dim t1 As New Thread(AddressOf startclass2.class2sub) t1.IsBackground = True t1.Start() Is the code above starting the new threads ...Show All
.NET Development How can I save textbox with value in the windows forms as xml file with Rootnode and Child and sibling nodes?
Hi Please sombody help. I am trying to do the following for the past 5 days but I couldn't do it. 1. I have table and picked up one row with 70 colums as dataset 2. I used Dataset.writexml("..\test.xml") 3. All 70 colums writtern as xml but under one root element.(like below) <root> <1>gh</1> <2>fg</2> <3>fg</4> <4>fg</4> <5>fg</5> </root> 4. I want the xml as below <root> <test1> <1>gh</1> <2>fg</2> </test1> <test2> <3>fg</4> <test3> <4>fg</4> </test3> <5>fg</5> </test2> </root> ...Show All
Visual Studio Team System Target not being called!!!
Hi, I use a custom XML logger in my build process. The log file gets created at the build project directory. I have a target AfterDropBuild which copies this to the drop location. This works fine when the build is a success. But if the build fails, the target is not called. To overcome this, I set <CallTarget Targets="AfterDropBuild" /> in the AfterOnBuildBreak target. But this target was not called at all.. Neiterh was the email sent (line 2 of AfterOnBuildBreak ) Could someone pls tell me what the issue might be. Thanks in advance for all the help. Much regards, Ramya <Target Name="AfterDropBuild"> <Copy SourceFiles="$(MSBuildProjectDirectory)\BuildLog.xml" ...Show All
Visual C# Dissappearing class through web service
Hello all I'm having a weird experiece with a C# web service I'm building in that a class keeps going missing. My webservice deals with creating and managing sales orders and items that relate to sales orders. When running locally through VS2005's ASP.NET server both classes are present and accounted for but when I publish the webservice one of the classes is no longer available. A cut down version of my webservice class code looks like: Hello again I have figured out the problem. The class was not being displayed because I was not referencing it correctly. The SalesOrderItems property of the SalesOrder was of type ArrayList to make managing the list easier to manage but because of this the SalesOrderItem class was not being us ...Show All
Visual Studio 2008 (Pre-release) sending 30 MB from a WCF server to many clients
I need to create a solution for this scenario: A lot of clients all over the world (winforms) should play media files that a server sends them. The server has a playlist of media files for each of those client. Whenever a playlist is changed on the server the client should 'know' about it and download the media files. the size of the files could be around 30 MB. Should I use WCF to send the files to the client or should I use FTP instead What is the diference between WCF and FTP in terms of speed , security and scalability i am not FTP expert,i am thinking mixing WCF and FTP may be better choice for perf reasons you can use WCF to send alerts messages from service ->client once client knows abou ...Show All
Game Technologies: DirectX, XNA, XACT, etc. getting started
hello, im new to game developement (and these forums), and have a questions. first, im only in highschool, and want to get into game programming. obviously i really dont have the expierience (or patience) to learn all those languages and databases, but i want to know a good place to start, since one day i want to be a pro. i have been messing around with flash and stuff but is that a good way to start, since when im an adult i want to be ready for the next gen systems what should i start learning first C#, C++, VB, etc, are compilers, basically tools that you use to build your programs whether they’re executables or libraries. An SDK or Software Development Kit has libraries that contain varies meth ...Show All
Windows Forms Change cursor problem
Hi, i got problem when i tried to build and run this: this .Cursor = new Cursor (GetType(), "pen.cur" ); or this .Cursor = new Cursor (GetType(), "Resources/pen.cur" ); I got thrown by NullReferenceException I have embed it under resources, change its Build Action properties to Embedded Resource . And it is under Resources folder that i have created. What's happenning The msdn help indicates the reference to the resource is case sensitive when compiling. So make sure you're matching case whether your specifying the command line arguments for compilation. If you haven't already, might want to try command line based compilation on a sample project to see if you have the same proble ...Show All
.NET Development Creating a object without type information
Hi all, Is there any way i could create an object in a server application and send it to the client which doesnt have type information Thanks, Suresh. ... sending it like 'object' , but ... it the client dont know the class members ... what do you do with this object I think that you can implement interfaces in this object and then in the client evaluate that interfaces are be implement and execute it. But i'm not sure. Regards. ...Show All
Visual Studio 2008 (Pre-release) Reading selected values of each combox within the itemscontrol
Hi all, i've a itemscontrol that is boud to ADO.Net dataset and i'm using a combobox to display the contents of that dataset. on SelectionChanged event, i need to access the selected value of each combobox within that controls. can any one help me i'm stuck up, here is my code: < ItemsControl Grid.Row = " 1 " Grid.Column = " 0 " Margin = " 20,0,20,20 " Name = " ic " ItemTemplate = " {StaticResource BookItemTemplate} " ItemsSource = " {Binding} " /> < DataTemplate x:Key = " BookItemTemplate " > < Grid > < Grid.ColumnDefinitions > < ColumnDefinition Width = " 200 " /> < ColumnDefi ...Show All
Visual Basic Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
There was a similar question posed on the C++ forum back in February to which I responded yesterday, but unfortunately, did not get a response. I am therefore putting this question in the VB forum. I have a VB 2005 project which is actually an add-in to Outlook 2003, which was I was able to debug fine until earlier this week. Now I cannot debug it at all - the message in the subject is displayed when I hover the mouse over the breakpoint which shows a yellow icon in place. Can anyone here tell me what I should do to correct this Make sure that you are compiling in Debug mode not Release mode. Also make sure that you have compiled your most recent version. If you have made changes to your source sinc ...Show All
.NET Development Interface as generic type parameters
What happens, when I define a generic type with an interface (e.g. List<IComparer> behind the scenes Does the CLR treats the list as a reference type list or as a value type list Meaning, does it create a new specialized type for that list, or does it use an already existing reference type for the list If the later is true, then it means that this list could store both value types and reference types, but it will do a lot of boxing/unboxing operations when accessing value types won't it Thanks. A List<> needs to store it elements somewhere. Only the heap qualifies. Value types stored in the List<> are therefore automatically boxed. ...Show All
