.NET Trouble Shooting

[Top]  [Chapter]  [Previous]  [Next]

I am getting a MDA exception "LoaderLock" when I access the control.

 

Please open the Menu "Debug", select the item "Exceptions" and in the dialog disable the check at the entry "Loader Lock" listed under "Managed Debugging Assistants".

 

clip0107

 

Where can I set the DLL name in VB.NET

 

The best place is the New() method of the form. None of the form events is called early enough. Please also note the method SetDLLName.

 

Where should I store the PCC file ?

 

The gui layout file (buttons.pcc) is searched relatively to the path of the engine DLL. So we recommend to install it into the same directory as te engine DLL - bes is the application directory, not the windows system directory!

 

I am getting the error "Object Reference not set to an instance of an object."

 

Please make sure the application is using the correct engine DLL (WPTextDLL01.DLL). Maybe you need to hand copy this to the application directory.

 

In installed the upgrade 1.30, when I now start my project I an error message:

 

Please make sure you compiled the project with the new assembly (WPTDynInt.dll or WPTDynInt2.dll). It now uses the strong name technique.

BTW.: The registered version includes the C# code for this assemblies.

 

When running my .NET application I get the message "Invalid COM object"

 

In case you use an older version of the .NET interface, please make sure that you do not call ReleaseInt of buffered interface pointers such as Memo.CurrAttr.

The new version automatically makes sure that buffered interfaces are not freed.

 

 

I am getting an error message at the end of the application (Sometimes 'Invalid window class name.' )

Note: I'm just calling the constructor multiple times and dispose the form container.

 

a) Please pre-load the DLL using SetDLLName.

 

b) You need to call Form.Dispose(true) and not Form.Dispose(false) to make sure the editor instances are also disposed. Otherwise they are never disposed and only the destructor is called when the application closes.

 

public void DisposeForm()

{   Dispose(false);      }

 

My programmatic changes are not saved in a data bound editor

 

In a data bound editor you need to set the modified flag prior to the change of the text. You can use

the method TextCursor.CheckState(10) to do it. This will trigger the PropChange event.

 

 

 


[troublenet.htm]    Copyright © 2007 by WPCubed GmbH