Newbie Question on Tutorial


Author
Message
Keith Courneyea
Keith Courneyea
StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)
Group: Forum Members
Posts: 11, Visits: 196
I've followed along the instructions for the tutorial.  When I go to run it, it just flickers slightly, then takes me back to the IDE.  No error messages.  I tried putting a breakpoint on the 1st line in Sub Main.  The breakpoint is never reached.

I've been having similar problems with some of the sample apps as well.  I'm using SQL Express

The BOM works fine and the database connection is correct.  I've also deleted the connection.dat file a couple of times thinking that may be the problem.

Replies
Keith Courneyea
Keith Courneyea
StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)
Group: Forum Members
Posts: 11, Visits: 196
Well I did create just a standard Windows app.  I created the Public Shared Sub Main() and set the projects properties up to use Sub Main.

Public Class AppClass

Public Shared Sub Main()

MessageBox.Show("Sub main message")

Form1.Show()

End Sub

End Class

When I run this from the IDE all I get is a flicker, then get sent back to the IDE.  I located the exe file and ran that.  Oddly enough, the message box shows, then the flicker, then nothing.  Below is my VS version info.  Probably something's messed up with VS

Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ah, try chaning the Form1.Show() to this: 

System.Windows.Forms.Application.Run(New Form1())

That will cause it to break until the form is closed.  If you don't do that, then the app will just fall through and shutdown.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search