15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


DFView crash and DocumentSummaryInformation

Roger Onslow -- Roger_Onslow@compsys.com.au
Thursday, June 27, 1996

Environment: Win95 VC/MFC 4.1 (Office-95/Word 7)

I believe this problem *may* be MFC-related as (I think) DFView.exe is an MFC 
app (hence sending copy to mfc-l)

I recently got a copy of DFView.exe from Arjen Bos (thanks Arjen).
NOTE: This is a later (enhanced) version than the one dsitributed with VC, as 
this version knows how to read property sets (the version with VC just dumps in 
hex)  -- it is 151K date 6/6/96 (About box says - Windows NT DocFile Viewer 2.0)
Arjen sent me this to help delve into the mysteries of 
DocumentSummaryInformation. 

It works fine with most *normal* documents, and I can see the 
DocumentSummaryInformation stream as large as life (if I have filled in any 
fields, like company name), and I can look at the properties therein.

Encouraged by this, I created a simple document, with values filled in for 
*all* properties (like "The Author" for the author, and "The Company" for the 
company etc).  I also included some custom properties ("Custom" tab in Word) 
(eg "Custom Text" with value "Text" etc).

However, When I went to look at the DocumentSummaryInformation stream, DFView 
falls over and dies ("performed an illegal operation").

I have a sneaking suspicion that it has been written under the assumption that 
there is only *one* section per property set (DocumentSummaryInformation has 
two), and hence is dying.

This behaviour really defeats my purpose for running DFView, ie. to see how 
custom properties are stored (as there is no docco on this).  Perhaps someone 
"up there" just doesn't like me !!!! :-(

Can someone (with source to DFView) find out WHY it crashes, fix it and send it 
to me?
Is it an internal MFC bug (like the one when writing multiple property 
sections?)

           /|\        Roger Onslow
      ____|_|.\       ============
    _/.........\Senior Software Engineer
   /CCC.SSS..A..\
  /CC..SS...A.A..\   Computer
 /.CC...SS..AAA...\       Systems
/\.CC....SSAA.AA../            Australia
\ \.CCCSSS.AA.AA_/
 \ \...........//      Ph: +61 49 577155
  \ \...._____//      Fax: +61 49 675554
   \ \__|_/\_//    RogerO@compsys.com.au
    \/_/  \//





Dean McCrory -- deanm@microsoft.com
Sunday, June 30, 1996

Roger, 

dfview is not an MFC app.  It is an OLE sample and you should find the
source for it on your Visual C++ CD ROM.

Later,

// Dean

>----------
>From: 	Roger Onslow/Newcastle/Computer Systems
>Australia/AU[SMTP:Roger_Onslow@compsys.com.au]
>Sent: 	Thursday, June 27, 1996 7:14 AM
>To: 	Eric Maffei; Jeffrey Richter (Independent); VC++ Customer
>Documentation Feedback; Visual C++ Customer Feedback; External Office
>Compatible Questions; Charlie Kindel; Jim Conner (Office); Jerry Drain;
>Dean McCrory; Paul DiLascia; Don Box; Arjen Bos; mfc-l
>Cc: 	Dave Blatt/Newcastle/Computer Systems Australia/AU
>Subject: 	DFView crash and DocumentSummaryInformation
>
>Environment: Win95 VC/MFC 4.1 (Office-95/Word 7)
>
>I believe this problem *may* be MFC-related as (I think) DFView.exe is
>an MFC 
>app (hence sending copy to mfc-l)
>
>I recently got a copy of DFView.exe from Arjen Bos (thanks Arjen).
>NOTE: This is a later (enhanced) version than the one dsitributed with
>VC, as 
>this version knows how to read property sets (the version with VC just
>dumps in 
>hex)  -- it is 151K date 6/6/96 (About box says - Windows NT DocFile
>Viewer 2.0)
>Arjen sent me this to help delve into the mysteries of 
>DocumentSummaryInformation. 
>
>It works fine with most *normal* documents, and I can see the 
>DocumentSummaryInformation stream as large as life (if I have filled in
>any 
>fields, like company name), and I can look at the properties therein.
>
>Encouraged by this, I created a simple document, with values filled in
>for 
>*all* properties (like "The Author" for the author, and "The Company"
>for the 
>company etc).  I also included some custom properties ("Custom" tab in
>Word) 
>(eg "Custom Text" with value "Text" etc).
>
>However, When I went to look at the DocumentSummaryInformation stream,
>DFView 
>falls over and dies ("performed an illegal operation").
>
>I have a sneaking suspicion that it has been written under the
>assumption that 
>there is only *one* section per property set
>(DocumentSummaryInformation has 
>two), and hence is dying.
>
>This behaviour really defeats my purpose for running DFView, ie. to see
>how 
>custom properties are stored (as there is no docco on this).  Perhaps
>someone 
>"up there" just doesn't like me !!!! :-(
>
>Can someone (with source to DFView) find out WHY it crashes, fix it and
>send it 
>to me?
>Is it an internal MFC bug (like the one when writing multiple property 
>sections?)
>
>           /|\        Roger Onslow
>      ____|_|.\       ============
>    _/.........\Senior Software Engineer
>   /CCC.SSS..A..\
>  /CC..SS...A.A..\   Computer
> /.CC...SS..AAA...\       Systems
>/\.CC....SSAA.AA../            Australia
>\ \.CCCSSS.AA.AA_/
> \ \...........//      Ph: +61 49 577155
>  \ \...._____//      Fax: +61 49 675554
>   \ \__|_/\_//    RogerO@compsys.com.au
>    \/_/  \//
>
>
>




| Вернуться в корень Архива |