All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
42
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to General and Gameplay Programming
Can't add object to std::vector
General and Gameplay Programming
Programming
Started by
Eriond
March 21, 2004 02:48 PM
20
comments, last by
Eriond
20 years, 1 month ago
Prev
1
2
3
(current)
sbennett
124
March 22, 2004 03:49 PM
Are you trying to call GetDevice through a NULL pointer? It looks that way from the error you''re getting.
Hint: when it crashes, go into the debugger and look at the Variables window. Check the value of ''this''.
Cancel
Save
Advertisement
Eriond
187
Author
March 22, 2004 05:42 PM
I got it to work now. I fixed the copy ctor and assignment operator of Cube, and moved some code from another ctor to a new function.
Cancel
Save
Prev
1
2
3
(current)
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
New Generated Constructor & JIT Issue
AngelCode
Inheriting from application registered class
AngelCode
Advertisement
Recommended Tutorials
Gaining Entry to Game Development
Career Development
Fire Special FX
Graphics and GPU Programming
What can you generally find from a city?
Game Design and Theory
Digital Awe
Interviews
Legal Issues for Rookie Development Studios Part I
Business and Law
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top