Re: [fpc-pascal] Problems with Dynlibs.UnloadLibrary on Linux

2008-12-17 Thread Jonas Maebe


On 17 Dec 2008, at 02:55, Andrew Brunner wrote:

On Tue, Dec 16, 2008 at 3:29 PM, Jonas Maebe > wrote:


In what code does it crash? Inside unloadlibrary, or (shortly)  
afterwards?

What is the backtrace at the point of the crash?


It blows out right during the DynLibs.UnloadLibrary(FLibHandle)

There is only a read access violation that is raised.  Presumably by
the MM of the SO.


Please create a self-contained test case that demonstrates the problem  
and submit a bug report.



I have smart linking options enabled or else the Compiler can't link
the project during build.



What is the error?


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Problems with Dynlibs.UnloadLibrary on Linux

2008-12-17 Thread Felipe Monteiro de Carvalho
Read this to create a backtrace:

http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Using OpenCASCADE 3d tools with Pascal?

2008-12-17 Thread Paul Nicholls
Hi all,
I am wondering if anyone here has ever managed to use the free open-source 
OpenCASCADE 3d tools (www.opencascade.org) with Pascal before?

An already developed ActiveX OCX control has been developed that may work but 
it costs lots of money.

Cheers,
Paul.

"The plastic veneer of civilization is easily melted in the heat of the 
moment" - Paul Nicholls.
paulfnicho...@gmail.nospam.com

Remove ".NOSPAM" to reply. ___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Problems with Dynlibs.UnloadLibrary on Linux

2008-12-17 Thread Andrew Brunner
Thanks for that tip!  So running under GDB I get the following info...

This GDB was configured as "x86_64-linux-gnu"...
(gdb) run

Starting program: /mnt/Raid/Developer/Source/Lazarus/Test/TestApplication
[Thread debugging using libthread_db enabled]
[New Thread 0x7f9e79102770 (LWP 7388)]
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9e79102770 (LWP 7388)]
0x7f9e71a38d68 in fpc_finalize ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
(gdb)


#1  0x7f9e719f6170 in ?? ()
#2  0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#3  0x7fff8092e038 in ?? ()
#4  0x7f9e719f6170 in ?? ()
#5  0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#6  0x7fff8092e050 in ?? ()
#7  0x7f9e719f6170 in ?? ()
#8  0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#9  0x7fff8092e068 in ?? ()
#10 0x7f9e719f6170 in ?? ()
#11 0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#12 0x7fff8092e080 in ?? ()
#13 0x7f9e719f6170 in ?? ()
#14 0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#15 0x7fff8092e098 in ?? ()
#16 0x7f9e719f6170 in ?? ()
#17 0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#18 0x7fff8092e0b0 in ?? ()
#19 0x7f9e719f6170 in ?? ()
#20 0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#21 0x7fff8092e0c8 in ?? ()
#22 0x7f9e719f6170 in ?? ()
#23 0x7f9e71c40060 in _$CLASSES$_Ld233 ()
   from 
/home/atbrunner/Source/Lazarus/Libraries/MatrixMemory/MatrixMemoryManager.so
#24 0x7fff8092e0e0 in ?? ()
#25 0x7f9e719f6170 in ?? ()
#26 0x7f9e71c40060 in _$CLASSES$_Ld233 ()




It appears that something is wrong with the classes unit or something.
 Keep in mind, the compiled library is nothing more than 2 functions
declared as exported booleans that don't have any parameters.



On Wed, Dec 17, 2008 at 8:03 AM, Felipe Monteiro de Carvalho
 wrote:
> Read this to create a backtrace:
>
> http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB
>
> --
> Felipe Monteiro de Carvalho
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Using OpenCASCADE 3d tools with Pascal?

2008-12-17 Thread Marc Santhoff
Am Donnerstag, den 18.12.2008, 09:02 +1100 schrieb Paul Nicholls:
> Hi all,
> I am wondering if anyone here has ever managed to use the free
> open-source OpenCASCADE 3d tools (www.opencascade.org) with Pascal
> before?

I don't think so, but I remember two facts:

The toolkit is huge, porting will be a lot of work.

And it'll be complicated or maybe impossible because it is written in C
++. IIRC there are some problems related to C++ objects in libraries and
fpc.

> An already developed ActiveX OCX control has been developed that may
> work but it costs lots of money.

IIRC there was Java binding back in version 4 of opencascade (the
version I had to deal with). I'm not sure if that could be used as a
guideline for adapting to object pascal, though.

HTH anyhow,
Marc



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal