473,799 Members | 2,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS.NET strange behavior...

Hello all,

Here's another mind puzzle from me :-)

Today I tried to add a new resource to my program and VS.NET (v 7.0.9466)
just died. What I mean by that is that it silently and quickly (immediately
actually) closed its window. No errors, no access faults - nothing. Just
died. I restarted it, tried to add a resource again and it repeated itself.
I rebooted the computer (which I haven't done in a few weeks now), but it
doesn't help :-( When I try to add a specific resource, it works fine (like
"Insert Bitmap" for example), it only dies when I press "Add Resource..."

I've been working on this program for the last month or so, I just didn't
add any resources recently, perhaps for a week or so. But I need to now :-)

Any thoughts?
With kindest regards

Shrishail Rana

Nov 16 '05 #1
1 1493
Hi Shrishail,

Thanks for your post. As I understand, the problem you are facing is that
VS .NET crashes silently when you try to add resource to Visual C++
project. Please correct me if there is any misunderstandin g. Now I'd like
to share the following informtion with you:

Based on my experience and research, there is a known issue that the
include path option ( under project properties or Tools options) exceeding
max no. of characters will cause the same problem. Please use one the
following two methods to work around it:

Method 1
========
Check the Project Properties -> Configuration Properties -> C/C++ ->
Additional Include Directories option and see if a long path is specified
there. Also check the Tools -> Options -> Projects -> VC++ Directories ->
Show Directories For : Include files. If possible reduce the length else
Copy them to clipboard manually while adding the new resource.

Method 1
========
I would also like to suggest another workaround using a macro to add
resource copying the include paths to clipboard.

Using a macro, we can temporarily remove the include directories, display
the Add Resource dialog, and then restore the include directories. This
prevents the crash.

1. On the View menu, point to "Other Windows", and then click "Macro
Explorer".
2. In the Macro Explorer window, expand the "MyMacros" node in the tree.
3. Right click the "Module1" child, and then click "New Macro". This will
open the Macros IDE.
4. In the Macros IDE, expand the MyMacros project in the Project Explorer
window.
5. Right click on References, and the click "Add Reference".
6. Select the "Microsoft.Visu alStudio.VCProj ectEngine" and then click the
Select button. Click OK to add this reference.
7. Open Module1 if it is not already open.
8. Go to the new macro and rename the sub to "AddRes".
9. At the top of the file, add the following imports statement:

Imports Microsoft.Visua lStudio

10. Add the following code to the AddRes method:

Sub AddRes()
Dim props As Properties

props = DTE.Properties( "Projects", "VCDirectories" )

Dim VCCol As VCProjectEngine .IVCCollection
Dim VCPlat As VCProjectEngine .VCPlatform

VCCol = props.Item("Pla tforms").Object
VCPlat = VCCol.Item("Win 32")

Dim strSave As String

strSave = VCPlat.IncludeD irectories.ToSt ring

' Remove the include directories
VCPlat.IncludeD irectories = ""

' Launch the AddResource dialog
DTE.ExecuteComm and("Project.Ad dResource")

' Restore the include directories
VCPlat.IncludeD irectories = strSave
End Sub

11. Close the Macros IDE. Switch back to Visual Studio .NET.
12. Add a button for the macro on the toolbar by right-clicking the toolbar
area and then clicking customize. Optionally, you can add a keystroke for
this new macro.

At this point, you should be able to use this new "AddRes" macro to
successfully bring up the Add Resource dialog without crashing and without
needing to shorten your include directories list. Please be noted that it
doesn't fix the problem but instead offers another way of bringing up the
dialog successfully.

I am standing by for your result.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3462
by: Marcus | last post by:
Hello, I recently converted all my existing MyISAM tables to InnoDB tables through phpmyadmin. I noticed some strange behavior whenever I would refresh the screen, as phpmyadmin would report different numbers for the cardinality of the primary key (i.e. one minute it would say cardinality 388, then 244 on refresh, then something else), and it would report different values for the number of rows when mousing over the table names on the...
36
3461
by: Dmitriy Iassenev | last post by:
hi, I found an interesting thing in operator behaviour in C++ : int i=1; printf("%d",i++ + i++); I think the value of the expression "i++ + i++" _must_ be 3, but all the compilers I tested print 2.
0
1709
by: thulsey | last post by:
Hi all, I've got some strange behavior happening in Firefox and Safari (Khtml and Gecko) that displays *almost* fine in IE6.0 (still trying to get pixels to line up, anal anal anal...) To speed things up, and to avoid any problems with looking through the css file, I'll say first that I based the navigation menu on the "Suckerfish Dropdown menu" online demo over at htmldog. (http://www.htmldog.com/articles/suckerfish/dropdowns/). In...
1
1508
by: Alexander Inochkin | last post by:
Hi! I found same strange behavior of ASP.NET. It is possible this is the bug. Follow the steps:
0
3574
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage requests database, and query execution time exceeds 30 seconds, the following error reported: ===
6
2276
by: Joseph Geretz | last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm adding matching pairs of Toolbar buttons and Menu items. All of the buttons and menu items are wired up to send events to the same method (aka delegate?). I use the Tag property within this method to determine what user action is taking place. Very simple: When adding toolbar button: tbButton.Click += new...
3
1518
by: sara | last post by:
Very strange behavior, but I suspect some is A2K and some might be for me to correct. Just trying to see if anyone can help and advise. We have a database that's been running for a few years with no problems. We continuously add queries and reports. We're up to about 700 queries (no, not all are used and most are parameter queries - the business asks a LOT of questions!), and under 250 reports and fewer than 15 forms. Data is...
1
2979
by: Nicholas Palmer | last post by:
Hi all, Got a question about the AspCompat=true page property. First a little background. We have an ASP.NET app that uses two COM components. The first is the Microsoft OWC 11 components and the second is a custom VB6 COM component. So I was reading about AspCompat=true and it seemed like it would be a good fit for our app. From what I can tell both of the COM components that we are using are STA and we are creating the components in...
19
1759
by: david | last post by:
I took old code and decided to modify it a bit, and I just noticed that it does not compile at all and before server one of severs (main) crashed in the system it was working fine (I am really sure that I remember that). Now I am getting this error: $ make g++ -Wall -ansi -pedantic -c pirma_lib.cpp g++ -Wall -ansi -pedantic -c pirma.cpp In file included from pirma.cpp:2:
20
2245
by: Pilcrow | last post by:
This behavior seems very strange to me, but I imagine that someone will be able to 'explain' it in terms of the famous C standard. -------------------- code ----------------------------------- #include <stdio.h> int main (void) { char xx="abcd"; char * p1 = xx;
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4148
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.