You simply don't have a choice here. It gets done in unmanaged code or it doesn't get done at all.
You also haven't said anything about HOW you tried to do this in unmanaged code either.
Typically, to relieve all the memory pressure such an operation would place on the system, I would have implements methods to do this entirely in the files on disk. This, of course, would mean you have to implement the code to interpret and write the kinds of files you want to handle, such as JPG, BMP, GIF, TIF, ..., so you don't try to write a correcupted file. This would mean you have to know every detail of these file formats.
Are you sure you need a single composite image? What are you going to do with it? Systems that (seem to) provide huge images (Google Maps, Google Street View, Microsoft PhotoSynth, ...) with lots of pan and zoom use a virtual image: what you get to see is painted on the spot from a number of images, the composite image is never constructed at all. And that is for several reasons, including memory footprint and performance.
I am a programer and work with visual studio 2010 and do some c#.
The company provided me a hp proBook 5310m, win7 pro 32-bits laptop with wich I could do my job first using vs 2005 and for something like one year now vs 2010.
Since this laptop is getting old They bought me a new one. A HP EliteBook i7-2920xm, win7 pro 32-bits, a great horse...
The configuration of the OS seems to be similar between each laptop as both have the same OS and are fully up to date. For VS 2010 I exported/imported the settings from the IDE.
So I downloaded the code from the source safe to the new laptop and tried to complete the necessary compiling of the referenced projects before I can start working with the one I am on.
That's where the problem began to start.
The programs in the solution I am developping are mainly targeting the framework 2.
As we are using WCF WebServices we need to reference some dll that come from the framework 3.5 as for instance:
'System.Runtime.Serialization.dll' or 'System.ServiceModel.dll' and a few other ones.
First of all I noticed that I have to re-reference those 3.5 targeting dlls. At this point I get an warning message box saying this dlls are targeting a framework higher than the projects and I should target a higher framework.
I searched the net and found that the solution spreaded around is the one that consist of unloading
the project, edit it and place the tag <<specificverion>>'True'<<specificversion>>' for these referenced dlls.
This solution seems to work but then all other referencing programs must be adapted this way and as the solution contains at least 50 programs and references programs in other solutions and so on it is not realistic to unload and modify all this projects settings at least as I do not have the rights to perform this kind of setting.
Can someone explain me why everything works fine on a laptop and not on another that has the same configuration.
It is driving me mad and I cannot use the new laptop.
I think changing the the FrameWork to which the project is targeted from IDE may be easier than doing it in the code.
To change from IDE, right click on Project concerned in the Solution Explorer, select Properties menu option, in the opened form, select the Application tab page and in that select the required FrameWork in the Target Framework combo box.
This method can definitly not be applied as I do not have the rights and there is no way I can convince the team leader to re-target the more than 200 projects splitted in tenth of solutions to framwork 4.
And as the first laptop has the same configuration than the second on wich things do not compile there must be a way to configure the second to work as the first.
In fact this the point of my thread.
Even when the project targets a framework 2 or 3 it seems the framework 4 has a final hand on VS 2010.
Maybe the solution would be to target the laptop itself to use another framework than the 4.0 but I don't know wether is this possible or not.
Yes maybe but why does laptop1 win7 pro 32 bits works great and the same code on laptop2 win7 pro 32 bits doesn't work?
Is there a machine configuration that can do the trick?
There must be something to configure else where than in the project option.
The error on the laptop2 is raised by the framework 4 at compile time. Maybe the laptop1 doesn't use the framework 4 to compile but I do not have a clue about settings that would tell the compiler to use another framework than the 4.0.
This method does not return anything if the if-case is never true. This leads to 'not every possible scenario' is returning a string as expected. Add a return statement after 'for' ends to correct it. If nothing else, return an empty string.
Error 2 Cannot implicitly convert type 'int' to 'bool'
Your checking condition in for loop here:
for (j = 0; i = s.Length - 1; i--, j++) //Incorrect