New answers tagged

0

I went through some other tools built and apparently you need your tools to work also as an extension and by that i mean, having both classes included in the project, concerning the problem I was having, I used only one or the other when in fact i needed both. There may be some deeper reasoning on why you need both and maybe there's also a possibility to ...


0

I found the issue. The main thread for the test project I had set up for this functionality was an MTA (Multi Threaded Apartment) thread. Simply calling everything from an STA (Single Threaded Apartment) thread caused the issue to go away. Thread t = new Thread(x => ...) //call projection code here t.SetApartmentState(ApartmentState.STA); t....


0

with the same code, I just made changes in this line and it worked IPoint pnewPnt = new PointClass(); pnewPnt.X = pPnt.X -300; pnewPnt.Y = pPnt.Y;


Top 50 recent answers are included