Newbie Question on Tutorial


Author
Message
Keith Courneyea
Keith Courneyea
StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 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.

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
If you're not reaching the break point at the top of Sub Main(), then you might check the properties of the project.  On the Application tab, you should have the Enable Application Framework unchecked, and the Startup Object should say Sub Main.  If those are correct, then check the Immediate window and the Output window; one of them might list an error that might give you a clue.
Keith Courneyea
Keith Courneyea
StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)
Group: Forum Members
Posts: 11, Visits: 196
I checked the project properties.  All is set to what you described.  Below is from the Output window.  The Immediate Window stayed blank...

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'D:\Documents and Settings\cournek\My Documents\Visual Studio 2005\Projects\Tutorial_WINVB\Tutorial_WINVB\bin\Debug\Tutorial_WINVB.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\MicroFour StrataFrame Base\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame Base.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\MicroFour StrataFrame Business\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame Business.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\MicroFour StrataFrame UI\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame UI.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

The thread 0xe9c has exited with code 0 (0x0).

The thread 0x5b0 has exited with code 0 (0x0).

'Tutorial_WINVB.vshost.exe' (Managed): Loaded 'D:\Documents and Settings\cournek\My Documents\Visual Studio 2005\Projects\Tutorial_WINVB\Tutorial_WINVB\bin\Debug\Tutorial_WINVB.exe', Symbols loaded.

The program '[1236] Tutorial_WINVB.vshost.exe: Managed' has exited with code -1073741819 (0xc0000005).


StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Well, Keith, I'm not sure what to tell you.  It doesn't look like an exception is being thrown.  If you create a new application (just a plain jane Windows Application) and you set the properties to use the Sub Main() (you'll have to manually create a Public Shared Sub Main() somewhere because the template won't create one) and see if it can hit a breakpoint in that.
Keith Courneyea
Keith Courneyea
StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 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 (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K 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.

Keith Courneyea
Keith Courneyea
StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)
Group: Forum Members
Posts: 11, Visits: 196
Thanks, that worked
StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
OK, so it works in a regular .NET program, but the SF template doesn't work on your computer?  If you just create a new SF project and immediately run it without changing anything does it run?  (you can cancel the connection string wizard if it pops up...)
Keith Courneyea
Keith Courneyea
StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)StrataFrame Beginner (11 reputation)
Group: Forum Members
Posts: 11, Visits: 196
Yep, the newly created project runs OK.  I did have to cancel the connection dialog.

below is from the Output window...  So how would I go about figuring out what's up with the tutorial?  I'm not sure where to begin since there isn't an exception thrown.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'D:\Documents and Settings\cournek\Local Settings\Application Data\Temporary Projects\SFTest\bin\Debug\SFTest.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\MicroFour StrataFrame Base\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame Base.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\MicroFour StrataFrame Business\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame Business.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\MicroFour StrataFrame UI\1.6.0.0__99fe9917f71608a7\MicroFour StrataFrame UI.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

The thread 0x3c0 has exited with code 0 (0x0).

The thread 0xfc4 has exited with code 0 (0x0).

'SFTest.vshost.exe' (Managed): Loaded 'D:\Documents and Settings\cournek\Local Settings\Application Data\Temporary Projects\SFTest\bin\Debug\SFTest.exe', Symbols loaded.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Smo\9.0.242.0__89845dcd8080cc91\Microsoft.SqlServer.Smo.dll', No symbols loaded.

'SFTest.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

The program '[2740] SFTest.vshost.exe: Managed' has exited with code 0 (0x0).


StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Well, I'm not sure what to tell you.  What you might try doing is just abandoning the tutorial project that you're on and creating a new one from the temlpate.  When you have the new project created, you can right-click on the project node within the Solution Explorer and select Add Existing Item...  Then browse to the old tutorial project's location and select the Form1.vb and BusinessObject1.vb (and any other files that you added).  Oh, and don't worry about selecting the .designer.vb or the .resx files because they will be pulled in automatically.

Sometimes with development, you can't explain why something went haywire, and you just have to scrap it and start a new project and manually add all the files back.

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