` Printed Icetips Article

Icetips Article



ABC: Illegal Instruction problem and a fix (C5)
1999-02-16 -- George Lehmann
 
Newsgroups: topspeed.products.c5ee.bugs

A couple of weeks ago I stumbled into a problem wherein I was getting an
Illegal Instruction on a reproducible basis. Herewith is the scenario and
the cure:

In a multi-dll app, the main EXE calls a procedure in one DLL, which in turn
calls another procedure in a second DLL which then tries to open a window
which calls IniMgr.Fetch, at which time an Illegal Instruction occurs and
the application terminates.

The defining characteristic is that the second DLL is NOT declared as a DLL
to the main EXE. Once the second DLL is declared in the main EXE, the
problem vanishes.

Hope this helps someone,
George Lehmann



Printed December 4, 2024, 3:07 am
This article has been viewed/printed 35413 times.
Google search has resulted in 28 hits on this article since January 25, 2004.