Will it work???

Started by
10 comments, last by +AA_970+ 23 years, 9 months ago
Syzygy - i did exactly what you said, and i get the GPF error.

Ziggy5000 - I don''t understand what your saying (probably because i don''t know anything about COM).

Let''s say i have something like LPDIRECTDRAWSURFACE7 surface[12] (in which case Release would work), this mean that 12 pointers are created through COM?

But if i have LPDIRECTDRAWSURFACE7 *surface and use new, the surface pointers are not created through COM?

If the way i created the pointers are not through COM, then i don''t need to call Release, right?

+AA_970+
Advertisement
Ahhh, i''m so mad at myself. The problem wasn''t with the surfaces after all. I''m just learning C++ and didn''t know that the destructor is called when the program terminates, and i didn''t check if the surfaces were NULL before releasing them. So the GPF error was b/c i was attempting to release the surfaces twice.

btw, i do realize the explanation to the COM and surface pointer thing i gave in my previous post is complete crap

Anyways, thanx alot guys

+AA_970+

This topic is closed to new replies.

Advertisement