[Scilab-Dev] DLL thread wxWidgets

Laurent Berger laurent.berger at univ-lemans.fr
Thu Nov 5 15:39:43 CET 2009


Hi,

Program is still crashed using your sourcefile in scilab with a 
call("TestScilabThread"). With a windows program it's OK with 
minimalwx.dll and minimal.dll.


(With your dll some dll cannot be loaded like. With dependacy.exe 
wer.dll   and ieshims.dll are missing. I don't understand why)

Size of your dll is  119296 (minimal.dll)  and my dll (MinimalWX.dll) 
94208  bytes. What are your compile options?
my scilab version is scilab-5.1.1 (Apr 14 2009)

Best regards
Laurent Berger

Allan CORNET a écrit :
> 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
>>
>>
>>
>>
>>
> 




More information about the dev mailing list