15,891,431 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by lilesh (Top 1 by date)
lilesh
11-Feb-11 1:56am
View
i will explain in detail.
m_d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,f_hwnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING | D3DCREATE_FPU_PRESERVE,
&l_d3dpp,m_3d_device);
is called 1st time when application initialise 1st time, that time
release is not called i.e. m_3d_device->Release() this is not called.
But when application is resize i call same method to release the
device and Create device again so that my graph will be seen
properly.(if i don't do this then graph drawn looks blur , because
device previously made is not with the same resolution, when we resize
the application. )
Now when application resize same function is called and
m_3d_device->Release()throws exception.
Some how reference count is getting 0. Temporary solution i have found .
1. comment m_3d_device->Release() line
2. Or add ref m_3d_device->AddRef before m_3d_device->Release() this
solves the problem but there is memory leak in the applicaion. just
want to mention again, this problem is not happening on all machine.
It is happening only on graphics card whose details are as follows
Card name: NVIDIA Quadro FX 580
Manufacturer: NVIDIA
Chip type: Quadro FX 580
Plz let me know wht can i don more.. it's very urgent.