View unanswered posts | View active topics It is currently Sun Nov 23, 2014 11:50 pm



Reply to topic  [ 4 posts ] 
 Stumped (Direct X clipper) 
Author Message

Joined: Thu Apr 28, 2005 7:01 am
Posts: 2
Post Stumped (Direct X clipper)
alright, i have this program that uses directX7. I have every thing running in 24 bbp. When i run it the program crashes so i do a debug and it says 0xC0000005: Access Violation and takes me to this codeing:

<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>
if (FAILED(lpdds->SetClipper(lpddclipper)))
{
free(region_data);
return(NULL);
}
</pre><hr></blockquote>

i am done searching google like an idiot for an awnser so if someone can help me out that would be really nice.


Thu Apr 28, 2005 1:34 pm
Profile
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 291
Post Stumped (Direct X clipper)
To even get an access violation lpdds must be null, the set clipper function would be able to handle a null lpddclipper, but bottom line is make sure these handles/objects are valid.

Andre'


Thu Apr 28, 2005 7:32 pm
Profile WWW

Joined: Thu Apr 28, 2005 7:01 am
Posts: 2
Post Stumped (Direct X clipper)
wow, that was a pritty stupid mistake. I fixed it, forgot to initialize directx, thanks alot.


Thu Apr 28, 2005 9:33 pm
Profile
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 291
Post Stumped (Direct X clipper)
Ouch, considering an oversight like that, just make sure to put your tool back in your pants before you zip up your zipper [img]images/smiles/icon_smile.gif[/img]

Andre'


Thu Apr 28, 2005 10:03 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.