[Scilab-Dev] DLL thread wxWidgets
Allan CORNET
allan.cornet at scilab.org
Thu Nov 5 15:57:14 CET 2009
Hi,
I used visual studio project of : wxWidgets-2.9.0\samples\minimal (modified
to do a dll)
See attachment
I rebuilt wxWidgets-2.9.0 on Windows 7 (maybe the reason of these
dependencies)
Checked with scilab current master (32 bits) and 5.1.1
On XP and 7even
Allan
-----Message d'origine-----
De : Laurent Berger [mailto:laurent.berger at univ-lemans.fr]
Envoyé : jeudi 5 novembre 2009 15:40
À : dev at lists.scilab.org
Objet : Re: [Scilab-Dev] DLL thread wxWidgets
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
>>
>>
>>
>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal_vc9.vcproj
Type: application/xml
Size: 20655 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20091105/5632196d/attachment.wsdl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.JPG
Type: image/jpeg
Size: 108034 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20091105/5632196d/attachment.jpe>
More information about the dev
mailing list