explanation of project: in my project there are many devices and when these devices are going to up ,they send their icons to explorer to show .if explorer does'nt able to show icons of these devices through proper way then it shows default icons of these devices. multithreaded asychronous programming is implemented in this. when explorer is open it communicate to devices through interface if they are up then they return their icons as byte array .then explore convert the byte array into icons or image to show.and add this image into imagelist. problem: it was properly working with .net framework1.1 .but now my project is migrated to .net framework2.0.now sometimes it is showing icons of devices properly and sometimes showing default icons (with exception : parameter is not valid in the method getindexfromlist()).in getindexfromlist method of explore, we implemented 1-asyncronous call to devices and 2-after getting icons from devices as a byte array is converted into image or icons and added to image list .
Can you post a code example that shows the problem. -- Bob Powell [MVP] Visual C#, System.Drawing Ramuseco Limited .NET consulting http://www.ramuseco.com Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article. wrote in message news:1183702005.715822.96530@i13g2000prf.googlegroups.com... > explanation of project: > in my project there are many devices and when these devices are going > to up ,they send their icons to explorer to show .if explorer does'nt > able to show icons of these devices through proper way then it shows > default icons of these devices. > multithreaded asychronous programming is implemented > in this. when explorer is open it communicate to devices through > interface if they are up then they return their icons as byte > array .then explore convert the byte array into icons or image to > show.and add this image into imagelist. > > problem: > it was properly working with .net framework1.1 .but now my project is > migrated to .net framework2.0.now sometimes it is showing icons of > devices properly and sometimes showing default icons (with exception : > parameter is not valid in the method getindexfromlist()).in > getindexfromlist method of explore, we implemented > 1-asyncronous call to devices and > 2-after getting icons from devices as a byte array is converted into > image or icons and added to image list . >