Subject Re: [IBO] Fw: PACKAGE sample
Author Damian Dowling
At 19:53 06/08/01, you wrote:
>Dear Geoff,
>infact the problem come up during execution of the program.
>With IB_NavigationBar the exception fire in file IB_NAVIGATIONBAR
>(IBO40VRT_C5.BPL) address 035D1F3B (Read of address again FFFFFFFF) in this
>point:
>
> function StandardBitmap(S:String):tBitmap;
> var
> x: integer;
> begin
>-> if NB_Images.Find( S, x ) then
> Result := TBitmap( NB_Images.Objects[x] )
> else
> Result := nil;
> end;
>
>I notice this:

Sorry for interrupting but i might be able to help. I have a main program
that runs forms from Packages and i use BC++5 Pro, during development and
Testing of the main program i got several unexplainable Access Violation
and Read of Address FFFFFFFF.

I traced the errors to the following:

1. Make sure that the IBO packages are compiled for RELEASE and NOT DEBUG
(Not Necessary but it helps).

2. Make sure that under Project->Options->Advanced Compiler, The
Instruction Set is 80386 for the IBO Packages (Necessary).

3. Avoid using "__stdcall" for functions that are exported (Can cause
problems if using LoadPackage() call).

4. Make sure that under Project->Options->Advanced Compiler, The
Instruction Set is 80386 for all the Packages and the Main Program (Necessary).

Hope the above helps.


Damian Dowling
IT Manager
Pallas Foods Ltd

Phone: + 353 69 20200
Fax: + 353 69 20201
Email: it-manager@...