Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Trivial problem...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4300 of 4370
Post > Topic >>

Trivial problem... but I can't sort it out...

by "Gotch@[EMAIL PROTECTED] " <darioros@[EMAIL PROTECTED] > Oct 8, 2008 at 06:51 AM

Hello I've got this:

hello.h

class Media{

	AVFormatContext *formatCont;
	AVCodecContext	*codecCont;
	AVCodec			*codec;
	AVFrame			*frame;

public:

	Media(const char* filename);


};

hello.cpp

int _tmain(int argc, _TCHAR* argv[])
{
	const char *filename = "C:\\Users\\Dario\\Downloads\\eMule\\Incoming\
\****.avi";
	Media med(filename);

	return 0;
}


For some reason beyond me is giving me an exception (when passing the
argument to the constructor) of memory access violation.... Why is
that???? Am I become dumb?

tnx
 




 4 Posts in Topic:
Trivial problem... but I can't sort it out...
"Gotch@[EMAIL PROTEC  2008-10-08 06:51:38 
Re: Trivial problem... but I can't sort it out...
Francis Glassborow <fr  2008-10-08 15:43:29 
Re: Trivial problem... but I can't sort it out...
"Gotch@[EMAIL PROTEC  2008-10-08 10:54:06 
Re: Trivial problem... but I can't sort it out...
Francis Glassborow <fr  2008-10-08 23:29:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 14:27:05 CST 2008.