New Posts New Posts RSS Feed: Save the model, and you get “file modified outside Visual Studio” prompt, and hung ObjectMapper
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Save the model, and you get “file modified outside Visual Studio” prompt, and hung ObjectMapper

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Save the model, and you get “file modified outside Visual Studio” prompt, and hung ObjectMapper
    Posted: 16-Jul-2007 at 12:53pm

If ideablade.ibconfig is open in Visual Studio, and you use Object Mapper and change your connection string or key name, and you have an entity class defined, then save the model, you will get “file modified outside Visual Studio” prompt, but this will hang Object Mapper and lock Visual Studio.

What seems to be happening, is when you have at least 1 entity defined the cursor is being changed to a wait cursor, which means you cannot click on the Yes or Yes to All button of the “reload file window”.  

This error does not occur if there are not entities defined.

Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2007 at 1:15pm

Can you send me an exact reproduction scenario?  If you could send us a solution as well, that would be even better.

What version of DevForce are you using?  Some versions of DevForce prior to 3.5.0.2 had a Visual Studio problem that could cause the Object Manager to hang. 

We do know of one scenario where OM will hang and Visual Studio will lock if you have  the .ORM file open in Visual Studio (this probably doesn’t apply to you).

What kind of Source Code control are you using? (We use Subversion).

Back to Top
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2007 at 3:27pm
Here are the steps to reproduce. I am using DevForce 3.5.2, on Windows Vista with Visual Studio 2005 with no version control turned on for this test.

 

Open Visual Studio

Create a new Windows Forms project, call it anything

Selected Tools->Object mapper and load the object mapper

Set the namespace to TestModel and change nothing else (leave the key as default and the default connection string which is the ideablade tutorial)

Click Save and save the model to the current project, Click Yes when prompted to write the model

Close Object mapper

Open IdeaBlade.ibconfig in Visual Studio as a Text/XML file – leave this file open

Launch Object mapper again

Add a table (click + and select any table)

Click Save and answer yes when prompted

Change the key name from ‘default’ to ‘default2’ (or anything else)

Click Save and answer yes to update project

A warning will come up about AppHelper already existing, click yes

A warning should come up about ideablade.ibconfig being modified outside Visual Studio, and do you want to reloaded it, but you can click any buttons as the mouse cursor is a “waiting” cursor and you must load Task manager to kill Visual Studio.  

 

Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2007 at 3:28pm

Thanks!  This was easy to reproduce.  We’ll do our best to have this fixed for our release (in early August).

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down