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
34
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 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
Do your part to stop global warming and climate change
GDNet Lounge
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Understanding the wavy-like shape in alpha-testing magnification for text rendering
Graphics and GPU Programming
Advertisement
Recommended Tutorials
Decoding Audio for XAudio2 with Microsoft Media Foundation
General and Gameplay Programming
Tile Graphics Techniques
General and Gameplay Programming
The Intuitive Algorithm
Artificial Intelligence
Building a 3D MMO using Websockets
Networking and Multiplayer
Win32 Assembly Part 3
General and Gameplay Programming
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top