Click here to Skip to main content
15,891,513 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralCOM Interop - Passing pointers from unmanaged to managed Pin
Laxman Prabu2-Mar-05 21:23
Laxman Prabu2-Mar-05 21:23 
GeneralMore Information Pin
ursus zeta6-Mar-05 12:18
ursus zeta6-Mar-05 12:18 
GeneralMessageBox.Show() ?! Pin
truonghongquan2-Mar-05 19:26
truonghongquan2-Mar-05 19:26 
GeneralRe: MessageBox.Show() ?! Pin
Anonymous4-Mar-05 7:05
Anonymous4-Mar-05 7:05 
GeneralRe: MessageBox.Show() ?! Pin
truonghongquan6-Mar-05 14:51
truonghongquan6-Mar-05 14:51 
GeneralFTP Programming with .Net framework 1.1 Pin
Member 5641432-Mar-05 8:53
Member 5641432-Mar-05 8:53 
GeneralRe: FTP Programming with .Net framework 1.1 Pin
TylerBrinks2-Mar-05 12:10
TylerBrinks2-Mar-05 12:10 
GeneralModifying Design time behavior Pin
Teflon2-Mar-05 0:50
Teflon2-Mar-05 0:50 
hi all

I have a interesting problem with one of my gui's in the Forms Designer in VS2003.

When I open the form in design view my studio crashes with a Stack Overflow Exception.
When I analyze the crashed process I can see that it is executing one of the constructors of my data and comunication model classes.
Call Stack shows that these were created because the constructor of my Form registers some methods to events in the model.

The crash could be related to the fact that the model is unmanaged code provided by wrapper clases.

The crash is 100% reproduceable.

(uneccessary to say, under normal runtime conditions the same code works fine)

One solution would be to prevent this snip of code (the data and communication classes) to be executed in design time.

I don't believe it is neccessary to create an instance of them.

How can I detect that my code is executed in the designer oposed to normal execution.
I found some hints about providing custom designers and thereby changing the behavior, but issent there simply somewhere a boolean I can read, saying designtime/normal?
GeneralRe: Modifying Design time behavior Pin
Mathew Hall3-Mar-05 21:01
Mathew Hall3-Mar-05 21:01 
GeneralRe: Modifying Design time behavior Pin
Teflon_004534-Mar-05 6:57
sussTeflon_004534-Mar-05 6:57 
GeneralBmp to Png Conversion Pin
tosun1-Mar-05 14:35
tosun1-Mar-05 14:35 
General.Net Macros Pin
jGuild1-Mar-05 10:54
jGuild1-Mar-05 10:54 
General.NET Framework Book Pin
PaulCurry1-Mar-05 8:37
PaulCurry1-Mar-05 8:37 
GeneralRe: .NET Framework Book Pin
carlop()2-Mar-05 5:53
carlop()2-Mar-05 5:53 
GeneralList Of Domains Pin
Iftach Smith1-Mar-05 2:53
Iftach Smith1-Mar-05 2:53 
Questionis setting an object reference atomic? Pin
Member 168528-Feb-05 21:51
Member 168528-Feb-05 21:51 
AnswerRe: is setting an object reference atomic? Pin
S. Senthil Kumar1-Mar-05 9:13
S. Senthil Kumar1-Mar-05 9:13 
GeneralRe: is setting an object reference atomic? Pin
Member 16851-Mar-05 9:49
Member 16851-Mar-05 9:49 
GeneralRe: is setting an object reference atomic? Pin
S. Senthil Kumar1-Mar-05 16:01
S. Senthil Kumar1-Mar-05 16:01 
GeneralWindows Forms ListBox "GetItemValue" method Pin
dxlee28-Feb-05 8:48
dxlee28-Feb-05 8:48 
GeneralMDI Window Pin
Small Rat28-Feb-05 4:46
Small Rat28-Feb-05 4:46 
GeneralInstaller don`t remove assemblies Pin
Adnan Siddiqi28-Feb-05 0:22
Adnan Siddiqi28-Feb-05 0:22 
GeneralProblem rendering bitmaps with .NET CF Pin
Georg Fuchs27-Feb-05 23:07
Georg Fuchs27-Feb-05 23:07 
QuestionRun .Net on Win95? Pin
P-TAE27-Feb-05 19:02
P-TAE27-Feb-05 19:02 
AnswerRe: Run .Net on Win95? Pin
Colin Angus Mackay27-Feb-05 19:40
Colin Angus Mackay27-Feb-05 19:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.