SampleDataInstallerClass -> cross-thread error...


Author
Message
Ralph Rutschmann
Ralph Rutschmann
StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)
Group: Forum Members
Posts: 69, Visits: 1.3K
Hi there,

maybe I'm doing something stupid, but I tried the SampleDataInstallerClass from the Example.zip for C#. I unpacked the examples to the projects directory and opened the solution with VS2005. Then I corrected the references to my new strataframe components on my machine and started debugging.

I tried the Pre-Build Dialogs, but as soon as I click on the combobox to choose the server, I get an exception in MDDeployMain.vb at

 '-- Clear the combo

cboSQLServer.Items.Clear()

telling me, there is a cross-thread call exeption.

Therefore I can't choose any server and have to stop debugging.

Any hint?

TIA and friendly greetings, Ralph

Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Ralph,

I ran the C# sample that gets installed with the framework (instead of the one from the forum) and did not have any issues.  The one from the forum was ultimately added to the install.  Click Start -> StrataFrame -> Samples -> C# -> Database Installer Sample.  Run this sample to see if you have the same issue.  I am not having any issues with the sample.  If you are running the installer class (not the standard part of the sample) through an installation, then you have to take this into account if you are executing the install on another thread by creating a delegate or a synchronization object (ISynchronizeInvoke).  But if you are just running the WinForms sample, then I cannot reproduce.  Any additional details would be helpful Smile

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ralph Rutschmann - 17 Years Ago
StrataFrame Team - 17 Years Ago
Ralph Rutschmann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ralph Rutschmann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ralph Rutschmann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ralph Rutschmann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ralph Rutschmann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
                         Hi Trent! [quote]That would probably be a good idea. Just to make...
Ralph Rutschmann - 17 Years Ago
Ralph Rutschmann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ralph Rutschmann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
                         Trent, OK, I see your point and where I did the mistake. I used the...
Ralph Rutschmann - 17 Years Ago
Dustin Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search