[Scilab-Dev] DLL thread wxWidgets

Allan CORNET allan.cornet at scilab.org
Thu Nov 5 11:19:27 CET 2009


Hi,

This example seems to work (see minimal.cpp) with a dedicated thread for
wxwidgets.

link("Minimal.dll","TestScilabThread","c");
call("TestScilabThread")

Best Regards

Allan 

--
-------------------------
Allan CORNET
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France

-----Message d'origine-----
De : Laurent Berger [mailto:laurent.berger at univ-lemans.fr] 
Envoyé : mercredi 4 novembre 2009 13:41
À : dev at lists.scilab.org
Objet : Re: [Scilab-Dev] DLL thread wxWidgets

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: minimalwx.zip
Type: application/octet-stream
Size: 2853417 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20091105/56d72a8d/attachment.obj>


More information about the dev mailing list