HighTechTalks DotNet Forums  

VJ# compiler crashes on following code.

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss VJ# compiler crashes on following code. in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vinay Chopra
 
Posts: n/a

Default VJ# compiler crashes on following code. - 05-15-2004 , 09:06 AM






Hi
Following Code in J# give me System.FormatException and the VJC Compiler crashes


package ControlAccessibility

public class MyFor
extends System.Windows.Forms.Form
private System.ComponentModel.Container components = null


protected void Dispose(boolean disposing)
if ( disposing )
if ( components != null )
components.Dispose()


super.Dispose(disposing)
} //Dispos


private void InitializeComponent()
//
// Form
//
this.set_AutoScaleBaseSize(new System.Drawing.Size(5, 13))
this.set_ClientSize(new System.Drawing.Size(292, 273))
this.set_Name("Form1")
this.set_Text("Form1")
} //InitializeComponen



/** @attribute STAThread(
* *
public static void main(String[] args)
Application.Run(new MyForm())
} //Mai


// <snippet2
public MyForm()
// Create a 'MyCheckBox' control and
// display an image on it
MyCustomControls.MyCheckBox myCheckBox = new MyCustomControls.MyCheckBox()
myCheckBox.set_Location(new Point(5, 5))
myCheckBox.set_Image(Image.FromFile((Application.C ommonAppDataPath + "\\Preview.jpg")))

// Set the AccessibleName propert
// since there is no Text displayed
myCheckBox.set_AccessibleName("Preview")
myCheckBox.set_AccessibleDescription("A toggle button used to show the document preview.")
this.Controls.Add(myCheckBox)
} //MyFor
} //MyForm // </snippet2

Please give me a solution
Thank
vina


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: VJ# compiler crashes on following code. - 09-06-2004 , 02:35 AM






Hi Vinay,

Could you please pass on the entire source so that I can debug the reason
for the crash in the compiler.

Thanks,
Diganta Roy
Microsoft Visual J# .NET Product Team

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

--------------------
Quote:
Reply-To: "Lars-Inge Tønnessen" <http://emailme.larsinge.com
From: "Lars-Inge Tønnessen" <http://emailme.larsinge.com
References: <6F3E4EF3-1364-4A5E-8D21-0836C27C6C46 (AT) microsoft (DOT) com
Subject: Re: VJ# compiler crashes on following code.
Date: Sat, 15 May 2004 15:19:50 +0200
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <udqSW9nOEHA.3088 (AT) TK2MSFTNGP09 (DOT) phx.gbl
Newsgroups: microsoft.public.dotnet.vjsharp
NNTP-Posting-Host: ans-102.vpn.uit.no 129.242.154.107
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
Quote:
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.vjsharp:6058
X-Tomcat-NG: microsoft.public.dotnet.vjsharp


Sorry, but you don't show us the complete code.

MyCustomControls.MyCheckBox myCheckBox = new
MyCustomControls.MyCheckBox();


Regards,
Lars-Inge Tønnessen





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.