Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: VS Debug Disabling when SetTempDirectory was called [1409]

$
0
0
I am use latest Magick.NET-16-AnyCPU library only for loading images in different formats, init code is:
```
StartupPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string TempDirectory = Path.Combine(StartupPath, "Temp");
if (!Directory.Exists(TempDirectory))
Directory.CreateDirectory(TempDirectory);

MagickAnyCPU.CacheDirectory = StartupPath;
MagickAnyCPU.HasSharedCacheDirectory = false;
MagickNET.SetTempDirectory(TempDirectory);

/* int[] A = new int[1]; //VS stop Debug there!!!
A[4] = 0; */
```
as result if program have some exception before "MagickNET.SetTempDirectory(TempDirectory);", debug stopped at line with it, else (after SetTempDirectory) - see attached ScreenShot.
Comments: Yes, code is invalid and was used for example only! And i MUST have OutOfRange Exception. But after using Magick.NET (.NET 2.0 only) ``` MagickNET.SetTempDirectory(Path.GetTempPath()); ``` I am don't see any exception, only error message. How I can debug my app if I don't see exceptions in Debug mode? Just watch [video](https://youtu.be/P5MltQXd5x8)! P.S. When I said "works perfectly" I am talk about Visual Studio Debug works perfectly.

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>