Callum's Q&A profile
Windows Forms Object Binding Error in CAB application
When trying to create an Object Binding source I get the following error in the Data Source Configuration Wizard. An Unexpected Error Occured. Error Message: Could not load file or Assebly 'Microsoft.Practices.ObjectBuilder, Version=2.1.2.0, Culture=neutral, etc' or one of it's dependancies. The located assembly's manifest definition does not match the assembly reference. A search of my hard drive shows I have versions 1.0.51205 and 1.0.51206 of Microsoft.Practices.ObjectBuilder and I can't find a reference in my project to 2.1.2.0. Any Ideas I can't say exactly what caused the error but uninstalling the Enterprise Library 3.0 Beta solve the problem. Noah ...Show All
Visual Studio 2008 (Pre-release) Random crash with mediaelement after 12+ hours (memory leak?)
Hi, I've got 1 mediaelement running in the background - 1280x720 res and then 6 smaller media elements (340x170) running in front of it each using the geometry mask to mask off the corners. All I'm doing is letting the videos play -- no memory management, just when the video finishes I then seek it back to 0 and play again. The entirety of the code is about 40 lines of xaml and cs. It uses about 50% cpu usage. This works for an upwards of almost 24 hours nonstop and then crashes. It has crashed after 12 hours as well. The memory usage is fine and the vm looks fine on the computer. There is no ever increasing memory leak. The computer its running on is a p4 dual core, 3.0 GS 7900 Nvidia Graphics card and 93.71 drivers running Windows XP wi ...Show All
Windows Forms How to have only a single instance of form running
Hello guys, I have a Winforms application written in managed C++. I would like to only have one instance of my application running on a given system at a time. The reason being opening another instance of my form can really mess up the environment I'm working in. How can I do that I'm guessing it wont be very hard to do. Appreciate your help!! http: / / weblogs. asp. net/ whaggard/ archive/ 2003/ 05/ 21/ 7401. aspx http: / / weblogs. asp. net/ rchartier/ archive/ 2003/ 05/ 22/ 7410. aspx ...Show All
Visual Studio 2008 (Pre-release) Using XAML across dll's
Hi, Let met start with the problem. I have 3 projects, 2 class libs (dll) and 1 application. In project 1 (dll) I defined a xaml file with code behind, (.xaml, .xaml.cs), I will refer to the class as gridContent, as it has a grid as its root element. Now, in 'project 2' (dll), I inherit from gridContent. In project 3, I create an instance of the inherited class and then I get the following error - "Can't fint the specified uri resource, <dll reference>, component/<namespace>/gridContent.xaml" I just can't seem to get it to work. What am I doing wrong here Any help would really be appreciated. Thank you very much, Jaco In many cases external references will show an er ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GSE - IDE Problem
Installed VC# Exp and GSE on Dell XP SP2 already satisfactorily running VS2005... Can create and run WinApps with no problems...however when I create a WinGame, the project files (.sln, .cs, etc) get created, Game1.cs displays in the VC# IDE, but Solution Explorer is blank(-contains no project tree)...can compile and run empty project....however if I click on Game1.cs, VC# IDE craps out with a "VC# has encountered problem and has to close' dialog box. Downloaded an XNA project off a web site and experienced screwy results when I loaded it...loads, compiles, runs OK but nothing displayed in Solution Explorer....however, can load individual files and navigate thru or modify them without IDE crapping out... Have no idea what's g ...Show All
.NET Development RegEx MatchEvaluator, how to write a oneliner?
I'm working off the help here for examples and struggliong to understand how I can convert it's multiline example into a oneliner. I'm more used to Perl ;-). Here's some code fro example that works: string First3(Match M) { return M.Value.Remove(3); } // defined in the class MyClass MyClass C = new MyClass(); // A class which has a method called First3 MatchEvaluator ME = new MatchEvaluator(C.First3); string S = Regex.Replace(sMonths, "(January|February|March|April|May|June|July|August|September|October|November|December)", ME); Now I want to avoid instantiating MyClass. I'm aiming at something more like this: string S = Regex.Replace(sMonths, "(January|February|March|April|May|June|July|August|September|October| ...Show All
Visual FoxPro Problem after upgrading to VFP9 from VFP7
The following procedure works fine VFP7. When a second user tries to lock the IDFILE before the first one unlocks it he receives the message and the PROCEDURE returns. After upgrading to VFP9 the second user instead of the previous message he gets a message from VFP "An error has occurred: File is in use by another user. etc". He gets a similar message if he even tries to open for read the IDFILE while in VFP7 there was no such problem. PROCEDURE PR_EYRET open database data1 SET DATABASE TO data1 USE IDFILE IN 0 SELECT IDFILE IF !FLOCK() MESSAGEBOX("The file is not available. Try later",16) RETURN ENDIF . . * Do something. . UNLOCK RETURN Can somebody help me Thank you C ...Show All
.NET Development Web Service Directories
I'm looking for a directories of publicly available web services, kinda like this one: http://www.xmethods.com/ More specifically, I'm looking for a web service (or some mechanism) that will allow me to download interest rates, so that I can make a web page like this one: http://www.hartwest.com/dynamic/displayrates.asp Any suggestions or tips of where I can look ...Show All
SQL Server Visual Studio AS Project
I had a nice Visual Studio AS project and I deployed it to a AS server. Afterwards I made some changes to the AS database on the server. Meaning that my visual studio project and the AS database are not in sync anymore. Can I copy things from the AS server to my VS project Or can I create a Visual Studio project from an AS db Thanks Easy! Create a new project and in the Business Intelligence section you should see an 'Import Analysis Services 9.0 Database'. That will create a project and suck in all the metadata for your. Enjoy. Dirc ...Show All
Visual Studio Team System Coded webtest datasource problem
Hey all, I've generated a coded webtest from a webtest that works just fine. When trying to run the unmodified newly generated coded test, I'm getting this error: Error WebTest1Coded WebTests Could not run web test 'WebTest1Coded' on agent 'MachineName': Object reference not set to an instance of an object. I've found that the culprit has something to do with this attribute: [ DataSource ( "TestData1" , "Provider=SQLOLEDB;Data Source=ServerName;Integrated Security=SSPI;Initial Catalog=DatabaseName" , Microsoft.VisualStudio.TestTools.WebTesting. DataBindingAccessMethod .Sequential, "TableName" )] If I commit out this line, the test runs fine...but I can't access my test data. Any ideas ...Show All
Visual Studio Team System profiler says my project is creating a lot of strings, byte[] and type[]
I have run the profiler to check what objects are being instantiated by my project and it says that I am creating an awful lot of strings, byte arrays and type arrays. A lot of them (50,000) are coming from an external library I am using (oradirect .net, an oracle driver) but there are also quite a few coming from the constructor of my usercontrol (10,000). My usercontrol is nothing huge just a couple of toolbars, grids and a tree, all with no data. I have emailed the people who write the oracle driver but their profiler (AQTime) but didnt find anything: http://www.crlab.com/forums/viewtopic.php t=9112 . Here are some screenshots of the problem, which also shows the byte and type arrays: http://www.kevinandkiran.com/screenshot ...Show All
Software Development for Windows Vista Error when attached to AppVerifier (Test Case 31)
Hi, I have attached my application to the AppVerifier to run test 31. I run WinDbg and then choose to open my executable (File -> Open Executable) I am getting the following error in WinDbg: ModLoad: 6ba30000 6ba4a000 ApplicationUpdate.dll ModLoad: 068c0000 068da000 ApplicationUpdate.dll ModLoad: 6ba30000 6ba4a000 C:\Program Files\Fascia\ApplicationUpdate.dll ModLoad: 0bb50000 0bc98000 image0bb50000 ModLoad: 0bca0000 0bde8000 image0bca0000 ModLoad: 0bb50000 0bc98000 C:\Program Files\Fascia\SharpLibrary.dll ModLoad: 0bff0000 0c640000 image0bff0000 ModLoad: 0c640000 0cc90000 image0c640000 ModLoad: 0cc90000 0d2e0000 C:\Program Files\Fascia\KeSignature.dll ModLoad: 74510000 746ba000 C:\Windows\WinSxS\x86_microsoft.windows.gd ...Show All
Visual C++ I want to use ping to detect if the internet connection is connected or not , need a good sample program
I want to use ping to detect if the internet connection is connected or not , I need a good sample program .please give me a good sample program to do this. I appreciate your help. Hello Re: I want to use ping to detect if the internet connection is connected or not , need a good sample program 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
Visual C# probem with generics
Hi, I've written the the code below: static public void Test<T>(T arg) { write(arg); } static public void write( char c) { Console .WriteLine( "char" ); } static public void write( int c) { Console .WriteLine( "int" ); } It should be possible to write like this: Test('c'); or Test(10) and the appropiate write methods should be called. When I try to compile it I get two errors: Error 1 The best overloaded method match for 'tester.Program.write(char)' has some invalid arguments. Error 2 Argument '1': cannot convert from 'T' to 'char'. Is there another way to make the templated method call the appropiate methods. It seems to me that writing some ...Show All
SQL Server Replace Non-Numeric Values With Zero
Hi All, I have a problem that I have no idea how to fix, not even sure if its possible but hopefully you can let me know. So I am pulling data from one table to another table in a DTS. But I need to check if data in one of the columns contains a non-numeric value and if so change it to a 0. This is basically the code i'm using: SELECT Product, Descript, Qty FROM Products ORDER BY Product, Qty, Descript Does anyone know how to check for non-numeric values and perform this change Rgds, Paul Just needed a slight change to the way you worded the Case statement but that is basically exactly what I needed. Thanks a million Anas ...Show All
