PDA

View Full Version : Visual Studio generates wrong code


Martin Lang
January 23, 2003, 17:53:07
From the point I switched from the trial version to the professional version I have a lot of troubles with the Visual Studio generator. When I switch from the form which contains the TextControl to the code view, I always get an error message that XMLMethods are not supported in the professional version. I don't use any XML stuff.
When I try to delete the form I get an exception from the textcontroll.dll saying that XML Methods are not supported. The control is not deleted.
When I try to localize my application it seems that Visual Studio generates method calls to textControl.Dock and textControl.Enable which at runtime generate exception.
What's going on here. At this state the official version is pretty unusable. The trial was fine.

Any suggestions?

Björn Meyer
January 28, 2003, 16:48:38
This is a known issue of TX Text Control .NET. Please look into this thread:

http://www.theimagingsourceforums.com/showthread.php?s=&threadid=313087

We are working on this issue.

Björn Meyer, TX Text Control

Martin Lang
January 29, 2003, 11:25:19
Ok., that's the problem with the XML Code. But what's about localization? Whenever I switch the property of the form to localizable = true, Visual Studio generates code where TextControl throws at runtime an exception.

I correct my first post. It seems not to be the Dock property but the the BackgroundImage property. The problem is: as soon as localization is enabled Visual Studio generates methods which set all properties (also the inherited ones). In my opinion TextControl does not handle all inherited properties correctly and throws at runtime an exception that the property is not known.

You can reproduce the phenomenon very easily. It even appears with your demo application. Just switch on localization and your demo crashes.

peccaj
July 8, 2003, 12:55:49
The same problem occurs with the RightToLeft when localization = true