Hey,couldn't reply earlier. Lots of other stuff going on. Thanks for your additional details. Yeah, that is exactly what i had in my mind.
So Chris is right... i think as long as you stay safe within your own plugin, take care of what you do and don't exchange stl objects or whatsoever, you're fine. Just make sure that you link against a static CRT and use multi byte character arrays for I/O. Will now continue and check my project in VC2005....
At least a little glimpse when it comes to the IDE (not the compiler) is a tool called DAFFODIL. (http://daffodil.codeplex.com/).
This allows you to build safe 2005 applications out of visual studio 2010. just install it and select v80 as output platform. If you've set up your project accordingly, have vc2005 installed, you should be able to develop 2005 plugins in visual studio 2010.
Have a nice weekend, Thomas Am 20.05.2011 11:44, schrieb Chris Bevan:
Hi Thomas,Thanks for sending that on. Linking the CRT as static is a good idea for compatibility in this case (since it doesn't match the one Nuke will be using), though make sure all your memory is allocated and freed inside your plug-in and not anywhere else, or the wrong heap might be used, which would cause a crash. The multi-byte characters option is interesting, and not something I've looked into, but if it helps, then great.There are two things that are still likely to bring up crashes: building in debug mode, and using STL containers. The sizes and locations of objects will be different between debug and release, and between STL versions (such as the STL versions in VS2005 and 2008), which is the most common cause for the problems. If you can avoid those differences as much as possible (by using things such as the _SECURE_SCL=0 option) then hopefully things will work OK for you.Cheers, - Chris On 19/05/2011 9:00 PM, Thomas Obermaier wrote:Hey Steve,i can run all samples without any problems (at least the ones i tried). You're right, they died during my first runs as well. But i changed some project settings, and they seem to work without any problems:- multi byte characters - linked my crt as staticso right now, everything is fine. I just encountered some strange errors when setting up some host memory, have to compare this with visual studio 2005 tomorrow. I also encounter some other problems (in terms of crashes when constructing the node) if i'm running my plugin in a debug session. So yeah, there might be something, i probably didn't step on it until *now*.I found out that when i allocate all of my memory during construction of my plugin, there are no crashes. Said, i need to compare this with 2005 tomorrow.ThomasThomas,The problems are devious and numerous. Plugins would randomly crash upon connection in a script; the viewer would show banding and snow, and thingsjust didn’t work in multi-threaded mode. If you take any of the samplenodes, for example, and try to compile them in either 2010 or 2008, theninstantly die. Compile them in 2005 and they work the first time.I now will use nothing but 2005 in any of my development, and things havebeen *infinitely* better since I made that decision. Steve From: [email protected][mailto:[email protected]] On Behalf Of Thomas ObermaierSent: Thursday, May 19, 2011 11:46 AM To: [email protected] Subject: Re: [Nuke-dev] Visual Studio 2010, 2008, and 2005 Hi Steve,can you explain me what you tried exactly? I'm working on a (more or less heavy) Nuke plugin right now, doing it with VC2010 and everything is stillfine.Don't want to run into troubles though, but it looks good right now. Theonly thing that might bug around (IMO) is memory management. However, i don't have problems with that. (now...) just curious, Thomas Am 09.05.2011 17:45, schrieb Steve3D:For going on three weeks now, I've been experimenting with various Visual Studio versions in doing Nuke Plugin development. That entire time has beenspent trying to track down various and sundry 0x0000000000000000 and 0xFFFFFFFFFFFFFF invalid memory references from inside Nuke. Here's my final verdict: You can't do Nuke Plugin development with anything other than Visual Studio 2005. To use a Tron-Ism... End of Line. [Smile] _______________________________________________ Nuke-dev mailing list[email protected]<mailto:[email protected]>,http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev (CONFIDENTIALITY NOTICE: The information contained in this email may beconfidential and/or privileged. This email is intended to be reviewed by onlythe individual or organization named above. If you are not the intendedrecipient, or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email,or the information contained herein is strictly prohibited. If you havereceived this communication in error, please notify the sender by return emailand delete this email from your system. Thank You.)
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
