IGXDialog fails when select "D" Drive

692
3
09-29-2010 01:26 AM
shaikesu
New Contributor
Dear All,

i am developing a tool in C# and i have implemented "IGXDialog" in my application.
it is working fine when i select any folder . but if i try select the "D" drive the application is getting crash with following message.

"Attemted to read or write protected memory this is often and indicaton that the other memory is corrupt"

here is my code..


                IGxDialog pGxDlg = new GxDialogClass();
                pGxDlg.AllowMultiSelect = true;
                pGxDlg.RememberLocation = true;

                object temp = "D:\\Esu\\";
                pGxDlg.set_StartingLocation(ref temp);
            
              //pGxDlg.ObjectFilter = new GxFilterPolylineFeatureClassesClass();
              //  pGxDlg.ObjectFilter = new GxFilterDatasetsClass();
                pGxDlg.ObjectFilter = new GxFilterPointFeatureClassesClass();
                pGxDlg.Title = "Select Structure staging feature class object";
                IEnumGxObject pEnmGxObj;
                pGxDlg.DoModalOpen((Int32)this.Handle, out pEnmGxObj);
                IGxObject pGxObj = pEnmGxObj.Next();

                if (pGxObj == null)
                {
                    txtfeatureclass.Text = "";
                    return;
                }


please help to solve this issue.

Thank You
Shaik Esu.
0 Kudos
3 Replies
NeilClemmons
Regular Contributor III
Have you used the Connect to Folder button in ArcCatalog to connect to your D:\ drive?  If not, that's probably the problem.
0 Kudos
shaikesu
New Contributor
hi,
i have connected it using ArcCatalog... but still i am getting the same error.

i could able to attach data in in "D" drive in ArcMap.
but my application is showing error.

Thanks
Shaik
0 Kudos
AndryJoos
Occasional Contributor
We encounter similar issues under certain (yet undetermined) circumstances. Is there anybody 'round here that has found a solution to this? Thanks!

Greetings,
Andry
0 Kudos