VBNET eDrawings OCX Control DWG Read Error

Hi All.

I'm developing a small VB NET 2008 application that reads a Path ina Database and Open the right files on my disks with eDrawings2009. I embedded the OCX control and I call the following functioncorrectly:
edrwControl.OpenDoc("C:\\sample.sldprt", True, True, False, "")

All works fine with sldprt files. But Always crash with DWG files.

I'm also tried to start a separate process with:

System.Diagnostics.Process.Start("C:\\Program Files\\CommonFiles\\eDrawings2009\\EModelViewer.exe", "C:\\sample.dwg").

Also here, works fine with sldprt and crash with DWG.

If I open eDrawing without VB (as usual), I can read correctly bothfiles: sldprt and dwg.

Please, Have You any suggestion about it?
Thank You very much for Your answer!
GabrieleSolidworksEdrawings
Answers 3
SF
SF 2009-01-28 Best Answer
Hi Gabriele

I suggest you try latest eDrawings control (2009 Sp2). I recallsimilar problems with DWGs fixed recently.

Regards
Rakesh
GZ
GZ 2009-01-28
Thank You for Your answer.
I'm running eDrawings 9.2.0.128 (2009SP2).
GZ
GZ 2009-01-28
Solved. Uninstalled and re-installed and now all works fine.Probably only a my mistake!