Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Major Problem (flowChart Failed Error Message) (Read 5550 times)
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Major Problem (flowChart Failed Error Message)
Oct 27th, 2010 at 9:33am
Print Post  
Dear Stoyo,

I have one major critical problem.

I load the fcx chart string from the sql database, and i set the graphics engine as GDIplus, then when i load the chart for the first time, everything goes well ,
BUT when i unload the form and reload it i used to get the error message IFlowChart failed (or something like this) and the chart never loaded.

but now the same scenario happens but without the error message just the whole application crashes and the whole VB6 is closed wihout any error message.

Note: if i changed the graphics engine to Classic, nothing of these problems happens.

So how can i fix that problem?

2) Also there is another problem (a bit minor):
it is that when i adjust the behavior as DoNothing and the AllowInplaceEdit for the FCXChart as false, i still can do inplace edit for boxes even if these boxes are originally locked!
also i can still do inplace edit for locked boxes (at any behavior)!!!


  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Major Problem (flowChart Failed Error Message)
Reply #1 - Oct 27th, 2010 at 9:45am
Print Post  
1. Call Graphics.ShutDown when closing the form and next Startup should work.

2. You could disable InplaceEditAllowed and explicitly call BeginInplaceEdit in response to BoxDblClicked events.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: Major Problem (flowChart Failed Error Message)
Reply #2 - Oct 27th, 2010 at 10:19am
Print Post  
I think i tried the Graphics shut down before but it doesn't help.
but i used to do it in the form_unload event.

Is there any best practice in doing that, i mean whether to put the code within the QueryUnload or terminate events or what?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Major Problem (flowChart Failed Error Message)
Reply #3 - Oct 27th, 2010 at 12:03pm
Print Post  
My VB6 crashes too if I comment out ShutDown from Form_Unload, but works fine otherwise. Are you sure the child form's Unload is ever called? It might be hidden instead of unloaded...
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: Major Problem (flowChart Failed Error Message)
Reply #4 - Nov 18th, 2010 at 11:46am
Print Post  
The child form is unloaded but the problem is still there.
Also this error msg somtimes happens with for unknown reasons while saving as a bitmab.

So how can I prevent the program crash?

Also what do u think is the reason for the fcx fail msg ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Major Problem (flowChart Failed Error Message)
Reply #5 - Nov 18th, 2010 at 6:31pm
Print Post  
These methods are just wrappers around the GdiplusStartup and GdiplusShutdown API functions, and the control follows the instructions from the "If you want to create a DLL that uses GDI+" section in the MSDN topic. The 'failed' message usually comes because of access violation in the startup function. However we have never seen this error if shutdown is called consistently after startup. If you email us your compiled executable file, our developer will try to find more about what happens.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint