|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
programm crashs when instancing new objectI have a queer problem in my project (Visual Basic Express 2005): When I create a new Instance of one of my classes dim data as new CData(fname) <-- crash ! Dim frm as new CMDIChild() frm.Data = Data my program crashs without any further error message. Debugging results in no additional information. To extend the problem I can fix this bug, if i swap the two above lines Dim frm as new CMDIChild() dim data as new CData(fname) frm.Data = Data BUT this fix doesn't work on all computers I'm testing my project. ========= The class CData doesn't access the CMDIChild class. Do you have any ideas?? I fear it is an error in the Visual Basic Express compiler. Thank you for any ideas / hints, Marcus see this:
http://msdn2.microsoft.com/en-us/library/microsoft.clradmin.cdata(VS.80).aspx are you sure you are instantiating a class of yours? -tom Marcus Schaefer ha scritto: Show quoteHide quote > Hello, > > I have a queer problem in my project (Visual Basic Express 2005): > > When I create a new Instance of one of my classes > > dim data as new CData(fname) <-- crash ! > Dim frm as new CMDIChild() > frm.Data = Data > > my program crashs without any further error message. Debugging results in no > additional information. To extend the problem I can fix this bug, if i swap > the two above lines > > Dim frm as new CMDIChild() > dim data as new CData(fname) > frm.Data = Data > > BUT this fix doesn't work on all computers I'm testing my project. > ========= > > The class CData doesn't access the CMDIChild class. > > Do you have any ideas?? I fear it is an error in the Visual Basic Express > compiler. > > Thank you for any ideas / hints, > > Marcus Hi Tom,
I changed the class names, to clearify the purpose of the classes. But as you pointed out the correct names may be important: The real name of "CData" is "CSpectrum" and of "CMDIChild" is "frm_Document". Therefore an accidental mix-up with CLRAdmin.CData is out of question. But thank you for your idea. Marcus Show quoteHide quote "tommaso.gasta***@uniroma1.it" wrote: > see this: > http://msdn2.microsoft.com/en-us/library/microsoft.clradmin.cdata(VS.80).aspx > > are you sure you are instantiating a class of yours? > > -tom >
How to make a copy of a developing VS05 application to another machine?
Calling dll functions from vb.net with pointer returns! How to declare char string pointer in VB? Playing card suits, vb.net? KeyDown for non Active windows? Sorted array suggestions Retrieveing full Username from Enviroment? Graphics for toolbar Access private enumeration using reflection Version Check of .NET Framework at runtime |
|||||||||||||||||||||||