Sysprogs forums › Forums › VisualGDB › "Object reference not set to an instance of an object."
- This topic has 8 replies, 3 voices, and was last updated 12 years, 2 months ago by support.
-
AuthorPosts
-
October 26, 2012 at 14:18 #556AnonymousParticipant
Hi all,
as another step for integrating VisualGDB in my company I am having problems with the VisualGDB project properties.
The point is that I started working with a Visual Studio 2008 project (not generated with the VisualGDB wizard project creation tool), and then I started to add all the necessary stuff in the solution and project files for using VGDB on it.
The point is that this message “Object reference not set to an instance of an object.” is being shown every time I want to open the VisualGDB project properties. I do not know if I am doing something wrong or I need to do or add something else to have this working properly. Maybe it is a problem with some file name or the properties file name but I can not solve it.
By the moment these are the file names:
– Elite_WIN32.sln for the solution
– Elite_WIN32.vcproj the project file
– “Debug GDB” the name of the configuration (maybe there could be a problem with the space in the name of the configuration?)
– Elite_WIN32-Debug GDB.vgdbsettings the VisualGDB settings fileGreetings,
JavierOctober 26, 2012 at 15:30 #2363AnonymousParticipantHi,
in fact I have just converted the project to VS2010 and the VisualGDB properties UI works well. So it seems a problem with the current implementation using VS2008.
Could it be possible to have this working in a future version of VisualGDB? Because it would not be possible in some cases to convert all our projects to VS2010.
Thanks,
JavierOctober 26, 2012 at 20:21 #2364supportKeymasterHi,
Please change the configuration type to “Makefile project” in Visual Studio project properties (not VisualGDB project properties).
October 31, 2012 at 17:39 #2357AnonymousParticipantSure,
the project properties were always set to Makefile project and it does not work in VS2008.
This is the data of the configuration inside the project file:
Name=”DebugGDB|Win32″
OutputDirectory=”$(SolutionDir)$(ConfigurationName)”
IntermediateDirectory=”$(ConfigurationName)”
ConfigurationType=”0″
>
Name=”VCNMakeTool”
BuildCommandLine=”VisualGDB “$(VISUALGDB_DIR)VisualGDB.exe” /build “Elite_WIN32-DebugGDB.vgdbsettings”
ReBuildCommandLine=”VisualGDB “$(VISUALGDB_DIR)VisualGDB.exe” /rebuild “Elite_WIN32-DebugGDB.vgdbsettings”
CleanCommandLine=”VisualGDB “$(VISUALGDB_DIR)VisualGDB.exe” /clean “Elite_WIN32-DebugGDB.vgdbsettings”
Output=”C:Program Files (x86)SysprogsVisualGDBUseStartDebugWithGDBCommand.exe”
PreprocessorDefinitions=””
IncludeSearchPath=””
ForcedIncludes=””
AssemblySearchPath=””
ForcedUsingAssemblies=””
CompileAsManaged=””
/>Where VisualGDB in the command lines is a batch file receiving 3 parameters.
And this is properly set in the project properties window in VS2008.
November 1, 2012 at 13:55 #2362supportKeymasterThat is strange. Please send us an archive containing the following files from your project/solution:
1. *.sln
2. *.vcproj
3. *.vgdbsettingsThis will help us reproduce the problem on our side and provide you with a solution.
January 30, 2013 at 05:39 #2361cdotyParticipantI had this happen when I had A group outside of the Source files group, in the project.
My project was set up like this:
Header files
Java Source Files
Libraries
Resource files
Source filesOnce I removed the Libraries group, the VisualGDB projects settings started working.
January 30, 2013 at 19:45 #2360supportKeymasterHi,
Could you please send us your .vcprojx file and the .filters files so that we could reproduce and fix your problem?
There was a bug in v2.7 that could cause this, however it was fixed in v3.0.February 8, 2013 at 07:15 #2358cdotyParticipant@bazis wrote:
Hi,
Could you please send us your .vcprojx file and the .filters files so that we could reproduce and fix your problem?
There was a bug in v2.7 that could cause this, however it was fixed in v3.0.I have 2.8 installed and it’s a Visual Studio 2008 project. Here’s a link to the project and solution files:
February 8, 2013 at 07:22 #2359cdotyParticipantThis does work correctly in 3.0 beta 3.
-
AuthorPosts
- You must be logged in to reply to this topic.