Applies to: Clarion 5.5 (the poster wrote "C55eed"; posted in the c55ee group).
Problem
A small hand-coded program that includes ABREPORT.INC, declares a PrintPreviewClass reference and creates it with Previewer &= new PrintPreviewClass(Q) crashed during PrintPreviewClass.Init. The poster saw the first two message boxes and the crash came after the second. There was no error message, only a GPF.
Solution
- Open the project's defines section and add these two lines:
_ABCDllMode_=>0and_ABCLinkMode_=>1 - Rebuild. The original poster thanked the replier; he did not post a separate test result.
- If an old INC file of yours still sets these two names with EQUATEs, you may delete those lines. They are the flag parameters of the DLL and LINK attributes that the ABC class declarations carry, so one source can build as EXE, DLL or LIB.
Caveats
- In 5.5 these flags moved from EQUATEs in the source to the project defines tab, where the templates now place them. A hand-coded program has to set them itself.
- A second poster described the cost of missing them: two full days on a hand-coded app that crashed in an Init call after the error class and translator class were added. The original poster lost 6 or 7 hours.
- One poster wished the classes gave an error or warning instead of a bare GPF. Another poster replied that the classes are blameless and called it a language feature.
Today (2026)
Not re-tested. The two flags are still how the ABC class declarations choose their link and DLL mode, so a hand-coded program that crashes in the Init of an ABC class is likely to be missing them.
Sources: Chris B. (Jun 2001, the question), Skip W., Russell E., James C. (Jun 2001) in softvelocity.products.c55ee.