open file

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
cipm13
Posts: 4
Joined: Mon Jan 14 2008

open file

Post by cipm13 »

I use pdf creator to open file like this

Code: Select all

.....................
m_myCtl->Open ((const char *)fileNameIn, "");
.....................
then i close the control :

Code: Select all

	m_myCtl->DestroyWindow();
		m_myCtl->Detach();
		delete m_myCtl;
		m_myCtl = NULL;
When i call the "open" function a seconde time (without close application ) i have exception
can not read memory ................:evil:


ideas?
thanks?
lukenine45
Posts: 15
Joined: Wed Jan 11 2006

Post by lukenine45 »

Since I'm a C++ developer, I can't help but ask the dumb question:

Since you delete it and set it to null, do you new it again before calling open?

m_myCtl = new XXXXXX;
Post Reply