.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug mode works fine, Compiled .dll partially works

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
331 Views, 7 Replies

Debug mode works fine, Compiled .dll partially works

Does anyone have any suggestions?
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

> Does anyone have any suggestions?
Can you give more details? Kind of hard to determine if we don't know what
works/doesn't work

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
Message 3 of 8
thenrich
in reply to: Anonymous

My suggestion for you would be give us more specific's.

What you've done would be like me calling a mechanic, leaving a message on his answering machine saying my car doesn't run and blindly asking 'What's wrong' and then hang-up and expect an answer
Message 4 of 8
Anonymous
in reply to: Anonymous

You are correct.

I have done some further investigation. It appears to be an issue with timing.

I think that it has something to do with nested transactions. I am trying to get more information.
Message 5 of 8
Anonymous
in reply to: Anonymous

I have identified some issues.

I have code that creates a "View" object and a "PlotSetting" object. This code appears to work in debug mode.

When I run the portion of this code that is supposed to create the views (or Plotsettings) "Compiled" mode, the view does not appear with the rest of the Views.

The PlotSettings do not appear either.

I am in the process of boiling down the code to the size where I can identify and isolate the problem.

I still think that it has something to do with the way that I am using "Transactions".

So, This should give you some more detailed information. Sorry about the vague positng. Message was edited by: Chris Ludtke
Message 6 of 8
thenrich
in reply to: Anonymous

That indeed sounds like timing. I'm assuming that when you use debug and use a breakpoint or something it works fine. The application has time to 'catch-up'. You can try using an application.DoEvents before what you suspect is the problem area.....
Message 7 of 8
Anonymous
in reply to: Anonymous

I am learning more about this issue

In my application, I first create a series of Plotsettings and Views

That functionality appears to work fine. I am able manually use both the views and plotsettings after they are created by my utility.

The second half of my utility uses the .net PlotEngine to plot all of the plotsettings.

Through the debugger, this plotting functionality works great - It is really fast.

When ran from the "Compiled" code, it bombs at random points and places the error "Cannot Access PlotSettings Dictionary"

Any Clues?
Message 8 of 8
Anonymous
in reply to: Anonymous

It appears that Plotting to File using the PlotEngine works fine in Debug mode regardless of the Value of the "BlotBackground" system variable. This variable needs to be set to "0" if you are trying to plot to a file using compiled code.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost