Issue extending TextBox

S

Sandman

We have a control that is extending TextBox. At times when we instantiate
the object, the TextBox constructor hangs. I managed to catch the issue
occuring a couple of times during a debug session and paused the execution.
The stack trace was the same in both cases. This is the stack trace on that
thread above our class that extends TextBox:
System.Windows.Forms.dll!Microsoft.AGL.Forms.WL.Create(Microsoft.AGL.Forms.WNT wnt = WNT_TEXTBOX, uint dwStyle = 1032, object pvDelegate = {Microsoft.AGL.Forms.WnProc}, System.Runtime.InteropServices.GCHandle gchThis = {System.Runtime.InteropServices.GCHandle}, out System.IntPtr hwnNew = 0)

System.Windows.Forms.dll!System.Windows.Forms.Control._InitInstance(Microsoft.AGL.Forms.WNT wnt = WNT_TEXTBOX, uint dwStyle = 1032) + 0x4b bytes

System.Windows.Forms.dll!System.Windows.Forms.Control.Control(Microsoft.AGL.Forms.WNT wnt = WNT_TEXTBOX, uint dwStyle = 1032) + 0xe bytes

System.Windows.Forms.dll!System.Windows.Forms.TextBoxBase.TextBoxBase(Microsoft.AGL.Forms.WNT wnt = WNT_TEXTBOX, uint dw = 1032) + 0x8 bytes
System.Windows.Forms.dll!System.Windows.Forms.TextBox.TextBox() + 0xd bytes

The repro rate is very low and it appears we are doing nothing different
when it works.

We are running .Net Compact Framework 2.0 SP1.

Any help or insight would be appreciated.
 
S

Simon Hart [MVP]

I've never seen this before and we always override textboxs with our own
custom one.

I guess a start would be to upgrade to the latest service pack of CF 2.0.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top