I am trying to burn an iso image to a CDR, in a vb.net application. I’ve tried both BurnImage and BurnImage2, and both burn a perfect CD, but as soon as the burn completes, the program crashes, and gives the following error message:
“This application has requested the Runtime to terminate it in an unusual way. Please contact the application’s support team for more information.”
I have seen this error before, when I was writing a Nero file system burning app. But in that case the program wasn’t working yet anyway, and the error went away as I was modifying the code, so I never knew what caused it.
My code is below. If anyone can tell me how to fix it I would be very grateful. Alternately, if there is a better way to burn an iso, maybe with BurnIsoAudioCD, I would appreciate it if someone would let me know and post some code.