Article View: adobe.framemaker
Article #2279Re: Internal Error: 7004, 5048919, 6050789, 6047376
From: n3u
Date: Sun, 28 Sep 2008 23:29
Date: Sun, 28 Sep 2008 23:29
30 lines
1566 bytes
1566 bytes
Hi,
my application does only one save and then closes itself, however I'm concerned about good programming (and also I'm desperate) so I added the two lines you suggested to the function.
I also did some changes to the variables type, so my new code looks like this:
BOOL DMFrameMaker::SavePDF(CString sPDFLocation)
{
F_PropValsT params, *returnp;
StringT stPDFLocation = (unsigned char *) sPDFLocation.GetBuffer(1024);
params = F_ApiGetSaveDefaultParams();
returnp = NULL;
int i = F_ApiGetPropIndex(¶ms, FS_FileType);
params.val[i].propVal.u.ival = FV_SaveFmtPdf;
m_foDocId = F_ApiSave(m_foDocId, stPDFLocation, ¶ms, &returnp);
F_ApiPrintSaveStatus(returnp);
F_ApiDeallocatePropVals(¶ms);
F_ApiDeallocatePropVals(returnp);
return TRUE;
}
Needless to say, the FM still crashes.
What can I do now?
Please help me!
n3u.
Technical Details
Message-ID:
<59b6575e.4@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!feed.xsnews.nl!border-2.ams.xsnews.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossingReferences:
<59b6575e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: fd315,7158b2558b6fafa X-Google-Attributes: gidfd315,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: n3u@adobeforums.com Newsgroups: adobe.framemaker Subject: Re: Internal Error: 7004, 5048919, 6050789, 6047376 Message-ID: <59b6575e.4@webcrossing.la2eafNXanI> Date: Sun, 28 Sep 2008 16:29:27 -0700 References: <59b6575e.-1@webcrossing.la2eafNXanI> Lines: 33 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!feed.xsnews.nl!border-2.ams.xsnews.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossing