Csound Csound-dev Csound-tekno Search About

[Cs-dev] wxWidgets error: drag & drop operation failed

Date2008-03-02 10:28
FromCarsten Hoyer
Subject[Cs-dev] wxWidgets error: drag & drop operation failed
Hello everyone
This is a cross-post from the wxWidgets forum.
http://wxforum.shadonet.com/viewtopic.php?t=18223&sid=efe1174e05fba724a930b711c565e43f

I´m afraid i have stumbled upon a bug. Atleast i can´t figure out what is
causing this error.
Tomorrow i will try a work around where i create an instance of csound, then
copy the opcodelist to an array, then clear the opcodelist and delete the
instance of csound. Then use the array to fill in the wxTreeCtrl i have
made.

I will be happy to provide you with my (kinda messy) source to the project.
Infact, i will upload it right now. Here you go:
http://www.carstenhoyer.dk/wxWidgetsCsound.zip
Be warned that atm it has a serious lack of comments. I will look at that
tomorrow.
You will need to have both csound and wxwidgets installed.

Please try and compile it, or perhaps give me a clue of what i might need to
look at - Some new tools to find conflicts or something I wasn´t aware of. I
know many of you have years of programming experience, so you might know
something I don´t. 

Right now I´m just stuck.

Thank you
Carsten
-- 
View this message in context: http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15786258.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/li

Date2008-03-02 11:26
From"Rory Walsh"
SubjectRe: [Cs-dev] wxWidgets error: drag & drop operation failed
Hi Carsten, what exactly is the bug you think you've found? If I do a

    for(int i=0;iopcodeList->Count();i++)
        wxMessageBox(cs->opcodeList->Name(i));

within your code I get a full list of opcodes? I haven't used the
wxTreeCtrl class before so I haven't looked at populating that with
opcodes. But as far as getting a list of opcodes it seems to work fine for
me.

Rory.


> Hello everyone
> This is a cross-post from the wxWidgets forum.
> http://wxforum.shadonet.com/viewtopic.php?t=18223&sid=efe1174e05fba724a930b711c565e43f
>
> I´m afraid i have stumbled upon a bug. Atleast i can´t figure out what
> is
> causing this error.
> Tomorrow i will try a work around where i create an instance of csound,
> then
> copy the opcodelist to an array, then clear the opcodelist and delete the
> instance of csound. Then use the array to fill in the wxTreeCtrl i have
> made.
>
> I will be happy to provide you with my (kinda messy) source to the
> project.
> Infact, i will upload it right now. Here you go:
> http://www.carstenhoyer.dk/wxWidgetsCsound.zip
> Be warned that atm it has a serious lack of comments. I will look at that
> tomorrow.
> You will need to have both csound and wxwidgets installed.
>
> Please try and compile it, or perhaps give me a clue of what i might need
> to
> look at - Some new tools to find conflicts or something I wasn´t aware
> of. I
> know many of you have years of programming experience, so you might know
> something I don´t.
>
> Right now I´m just stuck.
>
> Thank you
> Carsten
> --
> View this message in context:
> http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15786258.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-02 11:38
FromCarsten Hoyer
SubjectRe: [Cs-dev] wxWidgets error: drag & drop operation failed
Yes. I can also get the list of opcodes. No problem there.
Also if i populate the wxTreeCtrl with dummy children, and don´t compile
csound the drag and drop works.
But as soon as i use csoundcompile i get an alert message in my program.

Project1 error: Drag & drop operation failed.

Also check out my last to threads in this forum, which is somewhat connected
to this subject. (i thought i had it figured out, turned out i didnt).
http://www.nabble.com/keep-getting--1-from-csoundCompile-tt15779139.html
http://www.nabble.com/cs_glue.hpp-and-CsoundOpcodeList%28CSOUND*-csound%29--tt15773100.html

So the reason i think it might be a bug is because searching google, i can
see that there used to be a bug calling the "dnd operation failed". Also, i
dont think it makes any sense that the drag and drop should stop working
just because i compile csound. It even fails if i compile csound and still
only use dummy children???

Here is the code, where i have integrated opcode population of the
wxTreeCtrl. Try to drag them onto the "canvas" and tell me if you get an
error.
http://www.carstenhoyer.dk/wxWidgetsCsound1.zip

Thank you
Carsten
-- 
View this message in context: http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15786842.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/

Date2008-03-02 11:46
From"Rory Walsh"
SubjectRe: [Cs-dev] wxWidgets error: drag & drop operation failed
I'm able to drag and drop without any problems here. Should the code that
you posted crash when I drag and drop?


> Yes. I can also get the list of opcodes. No problem there.
> Also if i populate the wxTreeCtrl with dummy children, and don´t compile
> csound the drag and drop works.
> But as soon as i use csoundcompile i get an alert message in my program.
>
> Project1 error: Drag & drop operation failed.
>
> Also check out my last to threads in this forum, which is somewhat
> connected
> to this subject. (i thought i had it figured out, turned out i didnt).
> http://www.nabble.com/keep-getting--1-from-csoundCompile-tt15779139.html
> http://www.nabble.com/cs_glue.hpp-and-CsoundOpcodeList%28CSOUND*-csound%29--tt15773100.html
>
> So the reason i think it might be a bug is because searching google, i can
> see that there used to be a bug calling the "dnd operation failed". Also,
> i
> dont think it makes any sense that the drag and drop should stop working
> just because i compile csound. It even fails if i compile csound and still
> only use dummy children???
>
> Here is the code, where i have integrated opcode population of the
> wxTreeCtrl. Try to drag them onto the "canvas" and tell me if you get an
> error.
> http://www.carstenhoyer.dk/wxWidgetsCsound1.zip
>
> Thank you
> Carsten
> --
> View this message in context:
> http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15786842.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-02 11:53
FromCarsten Hoyer
SubjectRe: [Cs-dev] wxWidgets error: drag & drop operation failed
YES. Now I´m really puzzled. :)
Must be something with my compilation of wxwidgets then. What wxWidgets do
you use?

(Atleast now I know thats it´s not some undetectable bug. Wohoo)

Carsten
-- 
View this message in context: http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15786940.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.s

Date2008-03-02 12:12
From"Rory Walsh"
SubjectRe: [Cs-dev] wxWidgets error: drag & drop operation failed
Version 2.8, I'm also using wxDev-c++.


> YES. Now I´m really puzzled. :)
> Must be something with my compilation of wxwidgets then. What wxWidgets do
> you use?
>
> (Atleast now I know thats it´s not some undetectable bug. Wohoo)
>
> Carsten
> --
> View this message in context:
> http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15786940.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-02 12:49
FromCarsten Hoyer
SubjectRe: [Cs-dev] wxWidgets error: drag & drop operation failed
Hmm. Im using wxDev-cpp with wxWidgets2.8.2
and Windows xp.
Would you mind posting your compiler options (atleast the includes and
such). And if you could think of something that might differ from my system.

Isn´t it a little bit weird that it works on your system but not mine?

Maybe i didnt make the csound librarys correct. Notice that I´m including
both csound32.lib and libcsnd.a

-- 
View this message in context: http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15787443.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/c

Date2008-03-02 13:07
From"Rory Walsh"
SubjectRe: [Cs-dev] wxWidgets error: drag & drop operation failed
The only thing I changed from your setup was that I linked to my
libcsound.a and libcsnd.a I also put these at the top of the command line
build options. I recall something about this before where I had them last
in the list, maybe this might help? The LAC is almost over so I might be
offline for a while...

Rory.



>
> Hmm. Im using wxDev-cpp with wxWidgets2.8.2
> and Windows xp.
> Would you mind posting your compiler options (atleast the includes and
> such). And if you could think of something that might differ from my
> system.
>
> Isn´t it a little bit weird that it works on your system but not mine?
>
> Maybe i didnt make the csound librarys correct. Notice that I´m including
> both csound32.lib and libcsnd.a
>
> --
> View this message in context:
> http://www.nabble.com/wxWidgets-error%3A-drag---drop-operation-failed-tp15786258p15787443.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net