Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-03

Error exiting dynamic library

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Javier Ros

I've changed a large portion of a program to be a dynamic library, in order to assure that the interface and the kernel are effectively separated.

The same units that make the library can be linked directly (statically) with the the interface, an there is no problem.

When using the dynamic library the program performs nicely but when exiting the program, the following error happens.

An unhandled exception occurred at 0x00000000 :
EACCESSVIOLATION : Access violation
0x00000000

That is repeated 21 times. After I have to exit the program using Ctrl-C.

The debugger reach the last line (end.) an then happens, so I cant figure how to debug the problem.

Using -gl or -gh flags to compile (both interface and library) is useless, no extra information is provided.

Some pointer to function variables in the library are initialized to point interface functions, setting them to nil before exiting the program does not help.

Any clues?

Javier

ppc386 -v
Free Pascal Compiler version 1.0.10 [2003/06/26] for i386 Copyright (c) 1993-2003 by Florian Klaempfl

Reply by email