🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker
Article #2279

Re: Internal Error: 7004, 5048919, 6050789, 6047376

#2279
From: n3u
Date: Sun, 28 Sep 2008 23:29
30 lines
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(&params, FS_FileType);
params.val[i].propVal.u.ival = FV_SaveFmtPdf;

m_foDocId = F_ApiSave(m_foDocId, stPDFLocation, &params, &returnp);

F_ApiPrintSaveStatus(returnp);

F_ApiDeallocatePropVals(&params);
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!webcrossing
References: <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