Working On A Project That Is Based On Modules And Plug-ins?

Aug 24, 2011

I'm working on a project that is based on modules and plug-ins. Any of these modules might alter some part of a database in various ways. One module might write or edit one table, while another module might write or edit other tables.

The modules all communicate via events raised on a common object. Therefore, when a person using module A enters a certain change that would edit data managed by module A, the module raises a Proposed Edit event such that all other modules that might be affected by the edit will have a chance to accept or reject the edit. If no module rejects the edit, then module A makes its changes and raises an Edit event, at which time all the other modules make any changes they need to make.

That's the basic pattern, but there's a problem. If I don't share a transaction during the edit, then module A can successfully edit their tables, but module B might fail to edit their table. In some cases, the failure by B should rollback the changes made by A. Therefore, it would make sense for module A to share an open transaction for all the other modules to use while making their changes, and this gets either committed or rolled back, depending on whether everyone was successful, or not.

The problem with that design is that a person could write a new module C that had a bug which caused it to fail to update correctly. That would cause it to signal that the transaction failed, such that all the other modules, which had been working up to that point, would no longer work because this new module kept canceling the transactions. In other words, the modularity of the program has now been lost. Every module depends entirely on every other module that even cares about its data.

In most cases, what would be lost if certain modules failed would be minor, whereas what would be lost if other modules failed would be catastrophic, as there would be no way to re-create the lost data with any kind of ease.As long as this explanation is, it may not be sufficient. At least it might start a discussion. Do the actions of all the modules act in the same transaction, or should they be left to succeed or fail on their own?

View 11 Replies


ADVERTISEMENT

IDE :: Windows Forms Classes Appear As Class Modules Not Form Modules In Project Explorer

Jan 7, 2011

Yesterday I opened Visual Studio (2008 v 9.0.30729.1) and all the winform classes in my project display with class module icons with the little 'VB', instead of form module icons with the little form icon!

When I double click on a form module, the form designer doesn't open, just the code module.

When I run the project, it runs fine. There are no errors. The project builds fine.

I did Project --> show all files, and I can see the designer and resx files below the form module which doesn't look or act like a form module.

I can't open my forms to design them!

View 1 Replies

Way Of Implementing A Plug-in Based System

Feb 18, 2011

I've written a pretty good browser in vb.net (it's in the "Share your Project" forum). I now want to give users and other developers the ability to extend/add buttons & functions to it. Can anyone suggest to me a good way of implementing this bearing in mind that I've never tried to do anything like this before? (so basically a way of implementing a plug-in based system. I was planning on these being small snippets of code which my application has the ability to compile.)

View 5 Replies

.NET Window Based Project Built On .NET 3.5 Framework Is Not Working In Windows7 64 Bit System?

Jan 28, 2011

I have VB.NET Window based project built on .NET 3.5 Framework that is working on the Windows7 32 bit System but when I try to run this same application in Windows7 64 bit System it gives an error message: "System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

View 4 Replies

How To Create Plug-in To For Project

Apr 23, 2010

create plugin for my project.

View 1 Replies

Split Big Project Into Modules

Aug 18, 2009

I have a big project in vb.net with over a 400 forms and datasets and 100 reports. I deploy it using clickatonce. I want to split it into modules so each user will use the core project plus the modules his department needs, so when I make an update to a module he will take only this update and not the whole project as I am doing now.

View 3 Replies

VS 2008 Array Reference - Project With Several Forms And Modules

Dec 9, 2009

I have a project with several forms and modules. The problem which I am mentioning revolves around 3 items : 2 forms (e.g. form1 & form2) and a module. (Using VB.NET 2008, .net 3.5)

Now I have a structure declared in a module. I have a variable of that in form1 and form2.

'Module Code

Structure MScanner
Dim Indicator() As MuseIndStru
Dim FName As String

[CODE]..............

Now what is happening is, I am passing structure variable MScan (Form1) to Form2 (see function of form2 InitFilter) byvalue. Then in form2 I am changing value of a copy of the structure (see variable MS being changed in a private sub). But then when I close form2, form1's variable of MScan also get the value of variable MS (declared in form2).

I don't understand as this is not suppose to happen. I have reloaded my project as well but this problem is there. Why is my form1's variable value MScan being changed by form2.

View 4 Replies

CompileExecutable Function Working For A Windows Forms Based Application?

Nov 16, 2008

I refer to the CompileExecutable function at.>> [URL] I have attempted to try and get it working for a Windows Forms based application from about my 4th post in this thread.>> [URL] Has anyone had any success in using it or a variation of it? links to VB.Net tutorials see here.>> [URL]

View 1 Replies

Finding The DFD Of A Project Based On Banquet Hall?

Jul 16, 2010

What will be the steps for finding the DFD of A Project based on Banquet Hall?The project if of basic level.

View 2 Replies

Sql - Branching Strategy For Release Based Db Project?

Dec 23, 2011

We have a asp.Net vb.net 2008 project on tfs2010. The project has one main branch and for any release we create a new feature branch which is finally deployed. Post production deployment we merge back the branch back into main branch.We are now also adding a db project to manage our SQL too. Question is how to version control the differential scripts. The db project contains all create scripts which is fine if we had to deploy thep project from scratch but the project is already live. So now any new release or hotfix would normally contain alter or change script practically.

View 1 Replies

Using Service-based Database In A .NET 2010 Project?

Nov 18, 2010

If I add a service-based database to my VB.NET (2010) Winforms solution, is there a way to connect to this database from SQL Server Express Management Studio on the same computer?

View 2 Replies

IDE :: Creating An Array Of A Structure Based On Existing Project?

May 1, 2009

how to write the code for my project.I am to base my new project on an existing one(existing one has code that works 100%)and create an Array of a structure that bascially holds the information from a summary form AND the totals from an AddToOrder_Click event. If you are still with me)... I cant figure out what the code is for my structure and Array so that I STILL have a Summary Form but I have an array that shows when I click my PrintPreview. So an Array is basically a "space" that holds information, like my summary form except it doesnt show until I click PrintPreview right?

If I just wanted to show the table then my code belongs in the PrintDocument1_PrintPage to show the array but the actual structure code belongs in the Click_Event of my AddToOrder? Please Please understand I AM NOT asking for anyone to write my code, basically I am asking for some clarification on what exactly creating an array from a structure is and therefore determing where the structure is to be placed in my code..

View 6 Replies

Steps For Finding DFD Of A Project Based On Banquet Hall?

Apr 15, 2012

What will be the steps for finding the DFD of A Project based on Banquet Hall?

View 1 Replies

Winforms - Multi Branch Desktop Based Project?

Mar 21, 2010

I am currently working on a multi branch desktop based project using VB.NET 2008. My Admin want to see the list of currently working branches and not working branches. Additionally they want to know how long a branch is not working.

To display the offline branches I first take a ListBox control named lstListBranch and then upon that control I take another ListBox control named lstListTime to display the offline time.

I want to permanently hide the scrollbar for lstListTime control and want to scroll lstListTime when lstListBranch is scrolled.

View 2 Replies

IDE :: Project Reference Not Working

Jan 3, 2012

When I'm adding project reference to a project in VS2010, VS is unable to refer it in the project,

but when I'm adding the dll path (by browse), VS is getting the reference and project is working fine.

I'm using VS2010 professional edition and both the projects are in .NET Framework 4.0.

View 5 Replies

Sample Project Not Working?

Aug 20, 2010

I downloaded some VB 2008 sample project from the net.Initially they seemed to run fine. But then they stopped running. They fall over when an attempt is made to connect to the northwind database. The error messge says something like "the sql or sql express and the northwind database has to be installed ". Which of course they are .

One possible reason that the code stopped working is that I tried to move the SQL on my Pc from one drive to another ( I moved it to another hard drive using cut and paste ). When I realise the Vb code had stopped working I simply reversed the above procedure, i.e cut and pasted back to the original drive.I think I should also add that there any different versions of sql on my PC, and I think the one that I cut and pasted is not the one used by the sample project.

View 1 Replies

Database Not Working After Publish Project?

Feb 18, 2011

I have tried to publish my program. For the time being, no errors when save or do anything. Then again, when I check the database (Ms Access 2007) that is being used, there is no data in there.

My program is to capture image. The image is captured in put in folder but no data at all in my database. How to solve this?

I have setup Build = content and copytooutputdirectory = copy if newer.

View 3 Replies

Project Not Working From Release & Debug

Sep 15, 2009

Im new to VB 08 and i made a project that runs fine when i debug from inside the VB solution explorer. When i go to my BIN folder and try to run my project, the project runs but the button event seems to be none exsisten, also my message box does not appear on load, it should give an ERROR message if it does not detect the process writen in the module.

View 3 Replies

C# - Code Not Working In Windows Service Project?

May 16, 2011

I'm currently starting work on my first windows service and I've encountered what I find to be a strange error. For some reason the compiler is telling me that a whole bunch of typical classes (such as Image, Bitmap, Graphics, etc) do not exist. For example, these simple lines of code, which work perfectly in a normal project, return a bunch of errors:

Bitmap b = new Bitmap(destWidth, destHeight); //Error 13 The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?)
Graphics g = Graphics.FromImage((Image)b); //Error 17 The type or namespace name 'Image' could not be found (are you missing a using directive or an assembly reference?)

[code]....

View 1 Replies

IDE Continuing Working On Project Under Renamed Directory

Nov 19, 2011

when you start a new projekt, vs2010 makes a new folder for the projekt. when i reach a certain point in my projekt i want to save that version of the projekt.

what i do is make a new folder and copy that projekt to it. projektfolder2 . when i start the projekt in the new folder the sln doesnt work anymore. the vbproj works then. and vs 2010 makes a new sln file one directory down of the old one between the other
projekt files.

View 12 Replies

Working With A Text File Inside My Project

Feb 22, 2011

I have no code specifically for this part of my project just saying this ahead of time.I have not used text files that are inside my project but I want to be able to open the file when I load my form and save it when I close my form.I know how to save manualy and same with opening but that defeats the purpose this has to do as much as possible on its own.All I have are code from a project I made a while back which was a notepad program.[code]however I need this to all happen on its own and it needs to install these text files with the program hence why they are in with the project there are about 30 text files that will need to be with it so if I can get help with one then I can figure the rest out.

View 3 Replies

VS 2008: Project With MS Access2007 Database Is Not Working In Windows 7?

Sep 30, 2011

my vb.net project with MS access2007 database is not working in windows 7 My proj details:

VB.net vs 2008 ,32bit OS
database:MS access2007

My project is working fine with windows vista but in windows7 its not working?It runs in windows 7 but database is not working?

View 14 Replies

Get The Last Plug Date Of A Usb Device

Nov 4, 2010

I want to get the last plug date of a usb device, and view the tech article below [URL] But i did not understand the following sentence: "To determine when the device was last connected to the system, obtain the LastWrite time value from the respective Disk and Volume GUID Registry keys for the device."

View 2 Replies

Use IE Plug-ins / Add-ons With Webbrowser Control?

Mar 10, 2011

I have a Browser application written using the .NET webbrowser control. As I understand, the 'webbrowser' control is based on Internet Explorer.

So, I was wondering if it is possible to use the add-ons or plug-ins (like Adblock, IE7pro etc.) that were developed for Internet Explorer with the webbrowser control.

This will really save me a lot of time as many of these plug-ins provide the functionality that I am looking for and are freely available.

View 1 Replies

VS 2010 Program Plug-ins?

Mar 6, 2010

I'm making a game luncher, and I want other ppl to make plug-ins to start their game. So whats the best way of creating plug-ins? Dlls? And how can I use it?

View 10 Replies

VS 2008 Project Just Turned Into A Not Working System With Hundreds Of Warnings?

Jul 24, 2009

I don't know why or how but my project just turned into a not working system with hundreds of warnings... I didn't touch any of the assembly or anything that could do this and I don't have a clue. I have backups but one days' work will be gone if I can't resolve this.I got warnings like these:Warning1Could not find type 'crm.MyTextBox'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.00 Warning2The variable 'txtQty' is either undeclared or was never assigned.L:MartynascrmEquipmentSale .Designer.vb3270Warning3Could not find type 'crm.Mycombox'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.00 Warning4The variable 'cmbProduct' is either undeclared or was never assigned.L:MartynascrmEquipmentSale.Designer.vb3310 Warning5Could not find type 'crm.MyTextBox'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.00

View 6 Replies

VS 2008 : Use The Keydown/keyup Events With Buttons In The Same Project And It Not Working Properly?

May 12, 2009

I am trying to use the keydown/keyup events with buttons in the same project and it not working properly. I have 4 red boxes and when I press an arrow key the box should change to green according to which arrow key it corrosponds to. I have this part working fine, however only when there is nothing else in the project. When I add in say 3 buttons, Button1, Button2, Button3 and try runing the program instead of the correct red box changing to green, button outline just moves between buttons 1,2 and 3. I have tried turning tabstop off for the three buttons but that didnt work. how to read the keydown/keyup while still having buttions that can be pressed with a mouse?

View 4 Replies

Implement The Player Class Through Plug-ins?

Mar 16, 2009

I've never actually used Reflection, but I've been warned in the past that using it may cause slow performance. My question is what part(s) of it is/are slow.

I'm thinking about creating a board game and I wanted to implement the player class through plug-ins. That way there could be several different player classes (i.e. human players, and several configurable AI classes). If implemented this way, where should I expect performance hits? Only when initializing the player class? When passing arguments to methods in the player class? In the entirety of execution of methods from the player class? Or is it going to affect the whole application?

The reason I ask is that the AI will be extremely processor intensive. Through testing it seems like it may take around 1-30 seconds to determine a move on my quad core (Core 2 Q6600) processor, depending on the effort spent to optimize the move and testing different branches on separate threads.

My concern is that if I implement the AI via a plug-in, the move determination would slow down considerably to the point where it wasn't playable on lesser hardware.

View 2 Replies

Make A System With Plug-in Applicable?

Aug 18, 2011

those applications that has a plug-in features. What I meant by plug-in is that the application has a capabilities of integration with 3rd party softwares for enhancements.

View 13 Replies

VB 2010 - How To Detect Plug / Unplug Of USB

Jul 17, 2011

I am trying to detect plug/unplug of usb flashdrive using WMI. I used this code:
Imports System.Management
Public Class Form1
Private WithEvents m_MediaConnectWatcher As New ManagementEventWatcher
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim query2 As New WqlEventQuery("SELECT * FROM __InstanceOperationEvent WITHIN 1 " _
[Code] .....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved