Re: [fpc-pascal] Exceptions in Library

2015-03-30 Thread steveg
On 30/03/15 16:46, leledumbo wrote: As far as I can tell, exceptions propagate through to the main app - (written with Lazarus in this case). I would like to trap them directly within the library. // excp.pas library excp; {$mode objfpc} uses sysutils; procedure p; begin try raise exc

Re: [fpc-pascal] Exceptions in Library

2015-03-29 Thread leledumbo
> As far as I can tell, exceptions propagate through to the main app - > (written with Lazarus in this case). > I would like to trap them directly within the library. // excp.pas library excp; {$mode objfpc} uses sysutils; procedure p; begin try raise exception.create('an exception')

[fpc-pascal] Exceptions in Library

2015-03-29 Thread steveg
Would anybody be able to enlighten me on enabling exception trapping in Linux libraries ? As far as I can tell, exceptions propagate through to the main app - (written with Lazarus in this case). I would like to trap them directly within the library. Pointers, clues, links, examples (heck, ev