» »

[mono] 'razhroščevanje win app v ubuntu'

[mono] 'razhroščevanje win app v ubuntu'

Beezgetz ::

Pozdravljeni,

Sem v Visual Studiu naredil aplikacijo, ki ima glavno okno form1, ki odpira tudi form2, form3, enr 15 njih (pa ne na enkrat, ampak vseh je toliko). Želim to aplikacijo predstavit uporabnikom Mac-a. V ta namen sem izbral mono. Za potrebe testiranja sem inštaliral ubuntu, ter se za silo znašel inštalirat mono knjižice in zagnat moj program preko ukazne lupine z ukazom mono mojprogram.exe.

No, nasmeh na mojem obrazu je bil neizmeren, ko sem videl, da se je odprlo glavno okno.

Za začetek dve vprašanji:

1) za svoje potrebe program na c disku ustvari mapo c:mapa_programskepotrebe. Vse lepo in prav na windowsih. V ubuntu mi je pa na desktopu ustvaric mapo imenovano "c:". V njej so se kreirale vse potrebne podmape. Kako to, da linux nima črk diskov? kot kaže imam problem ko ževim kaj shranit saj dobim tole sporočilo:
Unhandled Exception: System.IO.DirectoryNotFoundException: Directory not found
at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000]
at System.IO.StreamWriter..ctor (System.String path) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string)
at Rig_Them_All.Form1.button3_Click (System.Object sender, System.EventArgs e) [0x00000]
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000]
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs e) [0x00000]
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
at Rig_Them_All.Program.Main () [0x00000]

2) ko sem hotel odpreti drugo okno (form2) sem dobil naslednje sporočilo:

Unhandled Exception: System.OverflowException: Number overflow.
at System.Single.Parse (System.String s) [0x00000]
at Rig_Them_All.Form4.pictureBox1_Paint (System.Object sender, System.Windows.Forms.PaintEventArgs e) [0x00000]
at System.Windows.Forms.Control.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000]
at System.Windows.Forms.PictureBox.OnPaint (System.Windows.Forms.PaintEventArgs pe) [0x00000]
at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000]
at Rig_Them_All.Program.Main () [0x00000]

Ker sem začetnik, in so to moji prvi koraki v razhroščevanju, bi bil hvaležen še kakšne razlage.

Hvala, Beezgetz


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Seštevanje, odštevanje za drugošolce

Oddelek: Šola
101608 (1264) norcuron
»

[c#] Vprasanje glede BackGroundWorker classa in spreminanja gui elementa

Oddelek: Programiranje
6724 (650) Ericssony
»

[c#] Vprašanje glede release verzije aplikacije

Oddelek: Programiranje
51392 (1216) Ericssony
»

Tezava pri instanciranju class-a

Oddelek: Programiranje
61207 (1078) KernelPanic
»

null reference exception na čudnem mestu C#

Oddelek: Programiranje
51224 (1161) krho

Več podobnih tem