473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

programm crashs when instancing new object

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

Apr 7 '06 #1
2 1138
see this:
http://msdn2.microsoft.com/en-us/lib...ta(VS.80).aspx

are you sure you are instantiating a class of yours?

-tom

Marcus Schaefer ha scritto:
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


Apr 7 '06 #2
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
"to**************@uniroma1.it" wrote:
see this:
http://msdn2.microsoft.com/en-us/lib...ta(VS.80).aspx

are you sure you are instantiating a class of yours?

-tom


Apr 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: broebel | last post by:
hey, for the real programmers amongst you, this may be really annoying but I've been learning the language for only two days. this is my problem, in this programm,which already works I now...
6
by: TIM | last post by:
for example i have one simple programm int main() { int test = NULL; while(1){ printf("%d\n",test); getch(); test++; }
3
by: Jan Schukat | last post by:
It s just a Windows application with a WinMain function, an own registered Window Class and a CreateWindowEx call, no mfc and other gimmicks. I made several applications with a the main window...
1
by: Peter Row | last post by:
Hi, BACKGROUND: I have a VB.NET DLL that uses HttpModules, HttpHandlers etc... which has been ported from a VB6 webclass application. I am developing on WinXP Pro SP1, P4 2Ghz, 512MB Ram I...
5
by: Scott H | last post by:
Hi All, Coming from VB6, there was a bit of a difference in the way you display a form, I Thought I'd nailed instanciating a form, but I'm quite stuck with something that doesn't make sense. ...
83
by: deppy_3 | last post by:
Hi.I am started learning Programm language C before some time.I am trying to make a programm about a very simple "sell shop".This programm hasn't got any compile problem but when i run it i face...
2
by: LordChaos | last post by:
Dear all, I am a newbie in Java, I got the following problem: I am going through a list of directories. The programm looks inside each directory for specific files and writes them in an...
0
by: BooGhost | last post by:
Some background: 1. I've got a master page with an asp:Menu using an XML sitemap. 2. A page that uses the master page has an object tag (instancing an activex control) 3. This activex control...
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.