Discussion:
wxMediaCtrl does not work
p***@labocom.com
2014-02-06 14:25:19 UTC
Permalink
Hello Vadim,
I have a crash of my app with the message "DirectShow Error" on the
function wxMediaCtrl::Load(filename)
since i upgrade wxWidgets to version 2.8.12
Before, i was on version 2.6 and my app don't crah : playing wav et mp3
file ...
The compiler used is Borland Builder 5.
The OS used is Windows7
Then, i wanted to compile mediaplayer sample to verify ...
The sample compile et execute until i open a file from the menu.
Then it crash ...

What's app doc ?
Thank you
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-02-07 09:23:38 UTC
Permalink
Hi, Pierre,
Post by p***@labocom.com
Hello Vadim,
I have a crash of my app with the message "DirectShow Error" on the function
wxMediaCtrl::Load(filename)
since i upgrade wxWidgets to version 2.8.12
Before, i was on version 2.6 and my app don't crah : playing wav et mp3 file
...
The compiler used is Borland Builder 5.
The OS used is Windows7
Then, i wanted to compile mediaplayer sample to verify ...
The sample compile et execute until i open a file from the menu.
Then it crash ...
3.0.0 is out.
Can you try with the latest release?

Also it would be nice to have a backtrace of the crash...

Thank you.
Post by p***@labocom.com
What's app doc ?
Thank you
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
p***@labocom.com
2014-02-10 08:19:40 UTC
Permalink
Hello Igor,

3.0.0 is out.
Can you try with the latest release?

I don't speak about a 3.0.0 version ... ?

Also it would be nice to have a backtrace of the crash...

I am confused ... it is not a crash.
but the function 'Load' of wxMediaCtrl class, used to load a media file,
return false.
By step to step in debug mode, i recompose the function's call :

bool wxMediaCtrl::Load(const wxString& fileName)
bool wxAMMediaBackend::Load(const wxString& fileName)
bool wxAMMediaBackend::DoLoad(const wxString& location)

here a call is execute :
HRESULT hr = GetP()->Open( wxBasicString(location).Get() );
and a DirectShow Error is send because :
if(FAILED(hr))

Regards and thank you,
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-02-10 08:51:14 UTC
Permalink
Hi, Pier,
Post by p***@labocom.com
Hello Igor,
3.0.0 is out.
Can you try with the latest release?
I don't speak about a 3.0.0 version ... ?
Apparently you don't.
Quoting:

"
I have a crash of my app with the message "DirectShow Error" on the
function wxMediaCtrl::Load(filename)
since i upgrade wxWidgets to version 2.8.12
"
Post by p***@labocom.com
Also it would be nice to have a backtrace of the crash...
Again, from the quote above:
"
I have a crash....
"

Thank you.
Post by p***@labocom.com
I am confused ... it is not a crash.
but the function 'Load' of wxMediaCtrl class, used to load a media file,
return false.
bool wxMediaCtrl::Load(const wxString& fileName)
bool wxAMMediaBackend::Load(const wxString& fileName)
bool wxAMMediaBackend::DoLoad(const wxString& location)
HRESULT hr = GetP()->Open( wxBasicString(location).Get() );
if(FAILED(hr))
Regards and thank you,
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
p***@labocom.com
2014-02-10 15:02:01 UTC
Permalink
Hello Igor,
I am desoled for my poor english ...
but like i say it, it'is not a crash. My app don't stop
but the function Load of MediaCtrl return false
while it return true with the old version 2.6 of wxWidgets.
and the media (wav file) is never played.
Regards
Pierre
Post by Igor Korot
Hi, Pier,
Post by p***@labocom.com
Hello Igor,
3.0.0 is out.
Can you try with the latest release?
I don't speak about a 3.0.0 version ... ?
Apparently you don't.
"
I have a crash of my app with the message "DirectShow Error" on the
function wxMediaCtrl::Load(filename)
since i upgrade wxWidgets to version 2.8.12
"
Post by p***@labocom.com
Also it would be nice to have a backtrace of the crash...
"
I have a crash....
"
Thank you.
Post by p***@labocom.com
I am confused ... it is not a crash.
but the function 'Load' of wxMediaCtrl class, used to load a media file,
return false.
bool wxMediaCtrl::Load(const wxString& fileName)
bool wxAMMediaBackend::Load(const wxString& fileName)
bool wxAMMediaBackend::DoLoad(const wxString& location)
HRESULT hr = GetP()->Open( wxBasicString(location).Get() );
if(FAILED(hr))
Regards and thank you,
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-02-10 19:12:55 UTC
Permalink
Pierre,
Post by p***@labocom.com
Hello Igor,
I am desoled for my poor english ...
but like i say it, it'is not a crash. My app don't stop
but the function Load of MediaCtrl return false
while it return true with the old version 2.6 of wxWidgets.
and the media (wav file) is never played.
Regards
Pierre
Did you try with 3.0 or even wxWidgets TRUNK?

Thank you.
Post by p***@labocom.com
Post by Igor Korot
Hi, Pier,
Post by p***@labocom.com
Hello Igor,
3.0.0 is out.
Can you try with the latest release?
I don't speak about a 3.0.0 version ... ?
Apparently you don't.
"
I have a crash of my app with the message "DirectShow Error" on the
function wxMediaCtrl::Load(filename)
since i upgrade wxWidgets to version 2.8.12
"
Post by p***@labocom.com
Also it would be nice to have a backtrace of the crash...
"
I have a crash....
"
Thank you.
Post by p***@labocom.com
I am confused ... it is not a crash.
but the function 'Load' of wxMediaCtrl class, used to load a media file,
return false.
bool wxMediaCtrl::Load(const wxString& fileName)
bool wxAMMediaBackend::Load(const wxString& fileName)
bool wxAMMediaBackend::DoLoad(const wxString& location)
HRESULT hr = GetP()->Open( wxBasicString(location).Get() );
if(FAILED(hr))
Regards and thank you,
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
p***@labocom.com
2014-02-11 08:10:31 UTC
Permalink
Igor,
No, i would like my app work with 2.8 ...
What are the benefits of 3.0 version ?
wxMediaCtrl will work correctly ?
Thank you
Pierre
Post by Igor Korot
Pierre,
Post by p***@labocom.com
Hello Igor,
I am desoled for my poor english ...
but like i say it, it'is not a crash. My app don't stop
but the function Load of MediaCtrl return false
while it return true with the old version 2.6 of wxWidgets.
and the media (wav file) is never played.
Regards
Pierre
Did you try with 3.0 or even wxWidgets TRUNK?
Thank you.
Post by p***@labocom.com
Post by Igor Korot
Hi, Pier,
Post by p***@labocom.com
Hello Igor,
3.0.0 is out.
Can you try with the latest release?
I don't speak about a 3.0.0 version ... ?
Apparently you don't.
"
I have a crash of my app with the message "DirectShow Error" on the
function wxMediaCtrl::Load(filename)
since i upgrade wxWidgets to version 2.8.12
"
Post by p***@labocom.com
Also it would be nice to have a backtrace of the crash...
"
I have a crash....
"
Thank you.
Post by p***@labocom.com
I am confused ... it is not a crash.
but the function 'Load' of wxMediaCtrl class, used to load a media
file, return false.
bool wxMediaCtrl::Load(const wxString& fileName)
bool wxAMMediaBackend::Load(const wxString& fileName)
bool wxAMMediaBackend::DoLoad(const wxString& location)
HRESULT hr = GetP()->Open( wxBasicString(location).Get() );
if(FAILED(hr))
Regards and thank you,
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-02-11 08:41:04 UTC
Permalink
Pierre,
Post by p***@labocom.com
Igor,
No, i would like my app work with 2.8 ...
What are the benefits of 3.0 version ?
Problem is nobody will look at 2.8 since 3.0 is out and the cycle is
actually very close to 3.0.1.
So if you program, or even the sample, will not work with 3.0, someone
might look at it and fix it.
It's been a long time since 2.8 was out...

Also it will help to narrow down the problem. If it didn't work with 2.8,
but started working with 3.0
then you can upgrade without any major issues. All you will need to do is
to fix some compilation
problems and retest.

BTW, what is you operating system? And did you try to compile the media
sample?

I think you said you were using Borland compiler, right? Which means you
are on Windows.
Did the OS got any updates? Did you install anything that might interfere
with the normal processing
of that file? Can you open a player (WIndows Media Player, Real Player or
any other) and play
this file successfully?

You can find the sample in the samples/directory...
Post by p***@labocom.com
wxMediaCtrl will work correctly ?
Thank you
Pierre
Post by Igor Korot
Pierre,
Post by p***@labocom.com
Hello Igor,
I am desoled for my poor english ...
but like i say it, it'is not a crash. My app don't stop
but the function Load of MediaCtrl return false
while it return true with the old version 2.6 of wxWidgets.
and the media (wav file) is never played.
Regards
Pierre
Did you try with 3.0 or even wxWidgets TRUNK?
Thank you.
Post by p***@labocom.com
Post by Igor Korot
Hi, Pier,
Post by p***@labocom.com
Hello Igor,
3.0.0 is out.
Can you try with the latest release?
I don't speak about a 3.0.0 version ... ?
Apparently you don't.
"
I have a crash of my app with the message "DirectShow Error" on the
function wxMediaCtrl::Load(filename)
since i upgrade wxWidgets to version 2.8.12
"
Post by p***@labocom.com
Also it would be nice to have a backtrace of the crash...
"
I have a crash....
"
Thank you.
Post by p***@labocom.com
I am confused ... it is not a crash.
but the function 'Load' of wxMediaCtrl class, used to load a media
file, return false.
bool wxMediaCtrl::Load(const wxString& fileName)
bool wxAMMediaBackend::Load(const wxString& fileName)
bool wxAMMediaBackend::DoLoad(const wxString& location)
HRESULT hr = GetP()->Open( wxBasicString(location).Get() );
if(FAILED(hr))
Regards and thank you,
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
p***@labocom.com
2014-02-11 12:17:10 UTC
Permalink
Igor,
I just download wxWidgets 3.0.0 : wxMSW-3.0.0-Setup.exe
After installing it, i tried to compile it in the directory /build/msw
make -f makefile.bcc
and some errors occurs :

bcc32 -q -c -P- -obcc_mswud\wxtiff_tif_dirread.obj -tWR
-IC:\PROGRA~2\Bo
rland\CBUILD~1\Bin\..\include -v -Od -tWM -DNDEBUG -I..\..\src\zlib
-I..\..\
src\jpeg -I..\..\src\tiff\libtiff -w-8004 -w-8012 -w-8057 -w-8060 -w-8066
-a8
-g0 ..\..\src\tiff\libtiff\tif_dirread.c
..\..\src\tiff\libtiff\tif_dirread.c:
Erreur E2377 ..\..\src\tiff\libtiff\tif_dirread.c 3205: ) manquante dans
l'instr
uction If dans la fonction TIFFReadDirEntryCheckRangeLongLong8
Erreur E2054 ..\..\src\tiff\libtiff\tif_dirread.c 3207: else mal placÚ dans
la f
onction TIFFReadDirEntryCheckRangeLongLong8
Erreur E2293 ..\..\src\tiff\libtiff\tif_dirread.c 3214: ) attendue dans la
fonct
ion TIFFReadDirEntryCheckRangeLongSlong8
Erreur E2054 ..\..\src\tiff\libtiff\tif_dirread.c 3216: else mal placÚ dans
la f
onction TIFFReadDirEntryCheckRangeLongSlong8
Erreur E2377 ..\..\src\tiff\libtiff\tif_dirread.c 3297: ) manquante dans
l'instr
uction If dans la fonction TIFFReadDirEntryCheckRangeSlong8Long8
Erreur E2054 ..\..\src\tiff\libtiff\tif_dirread.c 3299: else mal placÚ dans
la f
onction TIFFReadDirEntryCheckRangeSlong8Long8
*** 6 erreurs dans la compilation ***
** error 1 ** deleting bcc_mswud\wxtiff_tif_dirread.obj
C:\wxWidgets-3.0.0\build\msw>

My OS is Windows 7 (update inactive)

My compiler is Borland C++ Builder 5 (make 5.2) :

C:\wxWidgets-3.0.0\build\msw>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland

C:\Users\pb>bcc32
Borland C++ 5.5 pour Win32 Copyright (c) 1993, 2000 Borland
Syntaxe : BCC32 [options] fichier[s] * = défaut; -x- = commutateur x
désactivé
-3 Instructions 80386 -4 Instructions 80486
-5 Instructions Pentium -6 Instructions Pentium Pro
-Ax Désactiver extensions -B Compiler via l'assembleur
-C Autoriser comment. imbriqués -Dxxx Définir la macro
-Exxx Nom assembleur secondaire -Hxxx Utiliser en-têtes
précompilés
-Ixxx Répertoire fichiers Include -K char unsigned par défaut
-Lxxx Répertoire bibliothÚques -M Créer fichier map de
liaison
-N Vérifier débordement de pile -Ox Optimisations
-P Forcer compilation C++ -R Produire infos navigateur
-RT * Générer RTTI -S Produire sortie assembleur
-Txxx Définir option assembleur -Uxxx Supprimer définition de
macro
-Vx ContrÃŽle de table virtuelle -X Supprimer la sortie
autodep.
-aN Aligner sur N octets -b * Traiter enums comme
integers
-c Compiler seulement -d Fusionner chaînes
dupliquées
-exxx Nom fichier exécutable -fxx Options en virgule
flottante
-gN Arrêter aprÚs N avertissements -iN Longueur max.
identificateur
-jN Arrêter aprÚs N erreurs -k * Cadre de pile standard
-lx Définir option du lieur -nxxx Répertoire fichier de
sortie
-oxxx Nom fichier objet -p Appels Pascal
-tWxxx Créer une application Windows -u * Souligner les externs
-v Débogage source -wxxx ContrÎle avertissements
-xxxx Gestion des exceptions -y Information numéros de
ligne
-zxxx Définir noms de segment

Regards
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-02-11 19:08:08 UTC
Permalink
Pierre,
Post by p***@labocom.com
Igor,
I just download wxWidgets 3.0.0 : wxMSW-3.0.0-Setup.exe
After installing it, i tried to compile it in the directory /build/msw
make -f makefile.bcc
bcc32 -q -c -P- -obcc_mswud\wxtiff_tif_dirread.obj -tWR
-IC:\PROGRA~2\Bo
rland\CBUILD~1\Bin\..\include -v -Od -tWM -DNDEBUG -I..\..\src\zlib
-I..\..\
src\jpeg -I..\..\src\tiff\libtiff -w-8004 -w-8012 -w-8057 -w-8060
-w-8066 -a8
-g0 ..\..\src\tiff\libtiff\tif_dirread.c
Erreur E2377 ..\..\src\tiff\libtiff\tif_dirread.c 3205: ) manquante dans
l'instr
uction If dans la fonction TIFFReadDirEntryCheckRangeLongLong8
Erreur E2054 ..\..\src\tiff\libtiff\tif_dirread.c 3207: else mal placÚ
dans la f
onction TIFFReadDirEntryCheckRangeLongLong8
Erreur E2293 ..\..\src\tiff\libtiff\tif_dirread.c 3214: ) attendue dans la
fonct
ion TIFFReadDirEntryCheckRangeLongSlong8
Erreur E2054 ..\..\src\tiff\libtiff\tif_dirread.c 3216: else mal placÚ
dans la f
onction TIFFReadDirEntryCheckRangeLongSlong8
Erreur E2377 ..\..\src\tiff\libtiff\tif_dirread.c 3297: ) manquante dans
l'instr
uction If dans la fonction TIFFReadDirEntryCheckRangeSlong8Long8
Erreur E2054 ..\..\src\tiff\libtiff\tif_dirread.c 3299: else mal placÚ
dans la f
onction TIFFReadDirEntryCheckRangeSlong8Long8
*** 6 erreurs dans la compilation ***
** error 1 ** deleting bcc_mswud\wxtiff_tif_dirread.obj
C:\wxWidgets-3.0.0\build\msw>
Unfortunately not everybody here speaks French. ;-)
Now this error is better be forwarded to wx-dev.

Or better yet, report this error to the libtiff developers....

Coming back to you problem: can you compile the library with libtiff turned
off?

Unfortunately, I don't have Borland compiler, so please check with the
wxWidgets build instructions....

Or post on wx-dev for further instructions and about this error.

Thank you
Post by p***@labocom.com
My OS is Windows 7 (update inactive)
C:\wxWidgets-3.0.0\build\msw>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
C:\Users\pb>bcc32
Borland C++ 5.5 pour Win32 Copyright (c) 1993, 2000 Borland
Syntaxe : BCC32 [options] fichier[s] * = défaut; -x- = commutateur x
désactivé
-3 Instructions 80386 -4 Instructions 80486
-5 Instructions Pentium -6 Instructions Pentium Pro
-Ax Désactiver extensions -B Compiler via l'assembleur
-C Autoriser comment. imbriqués -Dxxx Définir la macro
-Exxx Nom assembleur secondaire -Hxxx Utiliser en-têtes
précompilés
-Ixxx Répertoire fichiers Include -K char unsigned par défaut
-Lxxx Répertoire bibliothèques -M Créer fichier map de
liaison
-N Vérifier débordement de pile -Ox Optimisations
-P Forcer compilation C++ -R Produire infos navigateur
-RT * Générer RTTI -S Produire sortie
assembleur
-Txxx Définir option assembleur -Uxxx Supprimer définition de
macro
-Vx Contrôle de table virtuelle -X Supprimer la sortie
autodep.
-aN Aligner sur N octets -b * Traiter enums comme
integers
-c Compiler seulement -d Fusionner chaînes
dupliquées
-exxx Nom fichier exécutable -fxx Options en virgule
flottante
-gN Arrêter après N avertissements -iN Longueur max.
identificateur
-jN Arrêter après N erreurs -k * Cadre de pile standard
-lx Définir option du lieur -nxxx Répertoire fichier de
sortie
-oxxx Nom fichier objet -p Appels Pascal
-tWxxx Créer une application Windows -u * Souligner les externs
-v Débogage source -wxxx Contrôle avertissements
-xxxx Gestion des exceptions -y Information numéros de
ligne
-zxxx Définir noms de segment
Regards
Pierre
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-02-11 16:51:46 UTC
Permalink
Post by p***@labocom.com
bcc32 -q -c -P- -obcc_mswud\wxtiff_tif_dirread.obj -tWR
-IC:\PROGRA~2\Bo
rland\CBUILD~1\Bin\..\include -v -Od -tWM -DNDEBUG -I..\..\src\zlib
-I..\..\
src\jpeg -I..\..\src\tiff\libtiff -w-8004 -w-8012 -w-8057 -w-8060 -w-8066
-a8
-g0 ..\..\src\tiff\libtiff\tif_dirread.c
Erreur E2377 ..\..\src\tiff\libtiff\tif_dirread.c 3205: ) manquante
...
I'm afraid nobody bothered to check compilation of wxWidgets 3.0
pre-releases with this compiler and so it doesn't work (here the problem
seems to be that it doesn't support "LL" suffix on TIFF_UINT32_MAX constant
defined just above, but this is probably not the last problem you're going
to have).

If you can fix compilation with it, it would be nice and would help other
users of this compiler.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
p***@labocom.com
2014-02-12 07:08:11 UTC
Permalink
Hi Vadim,
I'am Ok with you when you say this compiler is out of date.
We start programing our app (Mivisu) nearly 1995 with borland c++ 5.02
compiler et we continue to use it because it's working very well in mode
console.
For IHM, we start with Borland C++ Builder 3 ... to 5 ... in VCL ... then
wxWidgets 2.6
Include headers of our libraries is completely Borland structure.
One day, i try to compile with VisualC++ ... I abandoned, the structures
are different, too much work...
I go and look of the highly-rated of Mingw ...
Post by p***@labocom.com
Post by p***@labocom.com
bcc32 -q -c -P- -obcc_mswud\wxtiff_tif_dirread.obj -tWR
-IC:\PROGRA~2\Bo
rland\CBUILD~1\Bin\..\include -v -Od -tWM -DNDEBUG -I..\..\src\zlib
-I..\..\
src\jpeg -I..\..\src\tiff\libtiff -w-8004 -w-8012 -w-8057 -w-8060
-w-8066
Post by p***@labocom.com
-a8
-g0 ..\..\src\tiff\libtiff\tif_dirread.c
Erreur E2377 ..\..\src\tiff\libtiff\tif_dirread.c 3205: ) manquante
...
I'm afraid nobody bothered to check compilation of wxWidgets 3.0
pre-releases with this compiler and so it doesn't work (here the problem
seems to be that it doesn't support "LL" suffix on TIFF_UINT32_MAX constant
defined just above, but this is probably not the last problem you're going
to have).
If you can fix compilation with it, it would be nice and would help other
users of this compiler.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...