[Scilab-Dev] DLL thread wxWidgets
Laurent Berger
laurent.berger at univ-lemans.fr
Wed Nov 4 13:40:46 CET 2009
In attached zip file you will find
*source file of dll -> MiniMalWX/ dllmain.cpp MinimalWx.cpp Minimalwx.h
*source file of exe -> AppliDllWx/ main.cpp with exe file in debugwx29
*the dll ->debugwx29/minimalwx.dll
*scilab toolbox ->debugwx29/wxMinimal with two scilab functions
WxRun() and WxThread()
WxRun() is Ok and WxThread() crashed
exe file AppliDllWx load dll and call first TestScilabRun and
TestScilabThread. This exe file needs wxwidgets dll.
Thanks for your interest
Allan CORNET a écrit :
> Hi,
>
> Please attach a mininal example.
>
> Thanks you
>
> Allan CORNET
>
> -----Message d'origine-----
> De : Laurent Berger [mailto:laurent.berger at univ-lemans.fr]
> Envoyé : mercredi 4 novembre 2009 13:02
> À : dev at lists.scilab.org
> Objet : [Scilab-Dev] DLL thread wxWidgets
>
> Hi,
>
> I have written a dll which launch wxMinimal a wxWidgets sample.
> In my project executable file load dll and can call a proc which run a
> wxMinimal. This proc can be a thread or not.
> With my own application everything is ok using a thread or not.
>
> Now if I use scilab with commands link and call without thread
> everything is fined and with a thread scilab crashed with Acces
> Violation at line 476 of toplevel.cpp (wxWidgets source file).
> I have check that if thread is empty scibab doesn't crached.
> I don't understand what's wrong.
>
> Any idea?
>
> Laurent
>
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zipscilabdll.zip
Type: application/x-zip-compressed
Size: 45960 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20091104/87a5b5e0/attachment.bin>
More information about the dev
mailing list