visual-studio-2010

Windows has generated a breakpoint

核能气质少年 提交于 2020-01-04 13:47:52
问题 I'm debugging my C++ Win32 program in VS2010 and I always get "Windows has triggered a breakpoint in program.exe". I've double-checked, triple-checked, and quadruple-checked the code. I can't find any reason it should be happening. But it happens at the same point each time so there must be something. There is quite a lot of code involved (constructors, destructors, window messages, memory allocation and deallocation, etc...) so it's quite difficult to put something concrete here, but at the

Multiple Images Selection

左心房为你撑大大i 提交于 2020-01-04 13:26:29
问题 Am making an application in WP7 using Windows Phone SDK 7.1 / C# Am using photo chooser task. But I want to select 9 images and here I can select only one Image. How can I select 9 images at a stretch? Please Help me, here is my code: public partial class MainPage : PhoneApplicationPage { PhotoChooserTask photoChoserTask; // Constructor public MainPage() { InitializeComponent(); photoChoserTask = new PhotoChooserTask(); photoChoserTask.Completed += new EventHandler<PhotoResult>

Random number behaves weird, not fully random

我与影子孤独终老i 提交于 2020-01-04 13:12:51
问题 In my .NET game my rand function that are determining how much damage each out of the players five characters should take, however the 1st one always seems to be at the bottom of the scale and the last one at the top. So in my Character[0] the damage is rarely more than 1 more than the minimum rand value, and for each Character on higher index the damage taken is only randomized from higher up the scale. public int GetDamage(int low, int high) { Random r = new Random(); int rand = r.Next(low,

Visual Studio freezes on breakpoints

余生长醉 提交于 2020-01-04 13:05:33
问题 Since a week back I'm seeing a very annoying behavior from VS2010: As I'm debugging a project and the debugger stops on a breakpoint Windows freezes for almost ten seconds. I say "Windows freezes" because the mouse and keyboard are useless during this time period. The problem only happens as I debug a specific project and I've tried it on two diffrent machines with the same result. The project is WPF and I do hook the keyboard at one point (not the mouse though) but that code hasn't been

Image button on visual studio 2010

拥有回忆 提交于 2020-01-04 11:42:45
问题 I am trying to create a button with image and no text from the [Design] view on Visual Studio 2010. I drag & dropped the button, then I click the Image Property, I select a png image from my resource file, but the property always remain empty and the button doesn't have image neither on the [Design] view or in the compiled program. I tried setting the image on the Form.Designer.cs file with: // // button1 // this.button1.Location = new System.Drawing.Point(73, 11); this.button1.Name =

Embed custom font fot text box use in Visual Basic 2010

妖精的绣舞 提交于 2020-01-04 11:10:26
问题 OK I'm working on a problem tyring to embed a LCD type true type font in a text box. As for some background, I can get the lcd font to display if I install the font onto my system, then load it as the font type for the text box and it works great. However, it will not work as an embedded font in the application. I"m using a a Windows Forms Application in Visual Basic, from the Microsoft Visual Studio 2010 on a Windows 7 box. I have tried the following code using a private font collection from

keep last few characters in listbox VB.NET

时光毁灭记忆、已成空白 提交于 2020-01-04 10:38:43
问题 I am trying to load a .txt file into a richtextbox (Point_BOX), then delete all but the last 5 characters into a listbox (Point_LIST). I've searched online and so far the only way I can get it to work is by removing the first 75 characters from the line (the lines in the .txt file should be 80 characters but sometimes is more/less). Point_BOX.Clear() Point_LIST.Items.Clear() OpenPointDialog.ShowDialog() FileName = OpenPointDialog.FileName Dim sr As IO.StreamReader = IO.File.OpenText(FileName)

Output file locked by another process when building

巧了我就是萌 提交于 2020-01-04 10:10:26
问题 I am using Visual Studio 2010 creating a XNA application with the Kinect SDK 1.6. I have a problem that the build usually fails (not always) after debugging the application. There is a process that is locking KinectDrobePrototype1.exe . Error 12 Unable to copy file "obj\x86\Debug\KinectDrobePrototype1.exe" to "bin\x86\Debug\KinectDrobePrototype1.exe". The process cannot access the file 'bin\x86\Debug\KinectDrobePrototype1.exe' because it is being used by another process. Error 11 Could not

How to call MoveDataTableCursor in a web test plugin to go through a limited set of rows in a table?

廉价感情. 提交于 2020-01-04 09:27:23
问题 I have some difficulties understanding how the access method "Do not move cursor automatically" works for a web test data source. And the documentation out there seems to be far from exhaustive. First of all, let's assume there is a simple web test with only one request. It uses a data source called DS with a table called StepList, that contains 5 rows. The Access Method for the table is set to "Do not move cursor automatically" and the current test settings have "One run per data source row"

How to call MoveDataTableCursor in a web test plugin to go through a limited set of rows in a table?

此生再无相见时 提交于 2020-01-04 09:26:47
问题 I have some difficulties understanding how the access method "Do not move cursor automatically" works for a web test data source. And the documentation out there seems to be far from exhaustive. First of all, let's assume there is a simple web test with only one request. It uses a data source called DS with a table called StepList, that contains 5 rows. The Access Method for the table is set to "Do not move cursor automatically" and the current test settings have "One run per data source row"