Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    venom_aa
    @venomAA
    at System.Windows.Media.Visual.PointToScreen(Point point)
    at Microsoft.VisualStudio.DesignTools.WpfTap.WpfVisualTreeService.Adorners.AdornerLayerWindow.UpdatePlacement()
    at Microsoft.VisualStudio.DesignTools.WpfTap.WpfVisualTreeService.Adorners.AdornerLayerWindow.<UpdatePlacementAsync>b__77_0(Object obj)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
    BonaPrimeERP.exe Information: 0 : 14:01:26:813 => [INFO] [Orchestra.DotNetPatchHelper] [1] An unhandled exception occurred, checking if it is a known KB issue: This Visual is not connected to a PresentationSource.
    BonaPrimeERP.exe Information: 0 : 14:01:26:816 => [INFO] [Orchestra.DotNetPatchHelper] [1] Below is a list of the last first chance exceptions that occurred. It might provide more information to the issue.
    BonaPrimeERP.exe Information: 0 : 14:01:26:822 => [INFO] [Orchestra.DotNetPatchHelper] [1] ================================================================================================
    BonaPrimeERP.exe Information: 0 : 14:01:26:824 => [INFO] [Orchestra.DotNetPatchHelper] [1]
    BonaPrimeERP.exe Information: 0 : 14:01:26:827 => [INFO] [Orchestra.DotNetPatchHelper] [1] [ThreadAbortException] System.Threading.ThreadAbortException: Thread was being aborted.
    at MS.Win32.UnsafeNativeMethods.IntGetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
    at MS.Win32.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
    at System.Windows.Threading.Dispatcher.GetMessage(MSG& msg, IntPtr hwnd, Int32 minMessage, Int32 maxMessage)
    at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
    at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
    at Catel.Windows.PleaseWaitWindow.WorkerThread(Object arg) in C:\CI_WS\Ws\97969\Source\Catel\src\Catel.MVVM\Catel.MVVM.NET46\Windows\PleaseWaitWindow.xaml.cs:line 426
    BonaPrimeERP.exe Information: 0 : 14:01:26:829 => [INFO] [Orchestra.DotNetPatchHelper] [1]
    BonaPrimeERP.exe Information: 0 : 14:01:26:830 => [INFO] [Orchestra.DotNetPatchHelper] [1] ================================================================================================
    BonaPrimeERP.exe Information: 0 : 14:01:26:832 => [INFO] [Orchestra.DotNetPatchHelper] [1]
    BonaPrimeERP.exe Information: 0 : 14:01:26:835 => [INFO] [Orchestra.DotNetPatchHelper] [1] [ThreadAbortException] System.Threading.ThreadAbortException: Thread was being aborted.
    at Catel.Windows.PleaseWaitWindow.WorkerThread(Object arg) in C:\CI_WS\Ws\97969\Source\Catel\src\Catel.MVVM\Catel.MVVM.NET46\Windows\PleaseWaitWindow.xaml.cs:line 431
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)
    BonaPrimeERP.exe Information: 0 : 14:01:26:837 => [INFO] [Orchestra.DotNetPatchHelper] [1]
    BonaPrimeERP.exe Information: 0 : 14:01:26:839 => [INFO] [Orchestra.DotNetPatchHelper] [1] ================================================================================================
    Geert van Horrik
    @GeertvanHorrik
    did you add the visual you are calling PointToScreen on to the visual tree?
    is this Catel v5?
    venom_aa
    @venomAA
    no..its 4.5
    var _capturaLoteSacrificioViewModel = _typeFactory.CreateInstanceWithParametersAndAutoCompletion<CapturaLoteSacrificioViewModel>(new object[] { GetValue<cLote_Sacrificio>(Selected_LoteProperty) });
                    if ((await _visualizerService.ShowDialogAsync(_capturaLoteSacrificioViewModel)).Value)
    the ShowDialogAsync is the one causing the problem.. if i use the old ShowDialog it works alright
    Geert van Horrik
    @GeertvanHorrik
    Yeah, I believe we fixed this one in 5.0
    venom_aa
    @venomAA
    thanks @GeertvanHorrik
    advapiIT
    @advapiIT
    just a stupid question, when using orchestra and have to show a dialog or messagebox should I use the Catel's IMessageService IUIVisualizer or there're specific orchestra ones?
    Geert van Horrik
    @GeertvanHorrik
    I think Orchestra re-implements these services
    so you can keep using the interfaces
    venom_aa
    @venomAA
    @advapiIT im using the 4.5 version of catel and the 2.7.0 of orchestra. and i have keep using the catel services for the dialogs and messagebox without any problem
    advapiIT
    @advapiIT
    Ok ok, I asked this since I've some button with catel layout and some with orchestra
    advapiIT
    @advapiIT
    was I wrong or someone tried/succeded to replace the datawindow with Telerik's one?
    advapiIT
    @advapiIT
    Excuse me, is theresome magic when we use a catel:DataWindow and resources? I try to explain what happens, I use implicit styles in WPF on my main solution everything works using the catel:DataWindow, same code using Orchestra I don't see some UI item as DataTimePicker, normally I fix this adding the ResourceDictionary to the catel:DataWindow.Resources
    but this time it won't work
    Geert van Horrik
    @GeertvanHorrik
    you should add the resources on the app-level
    so in app.xaml, reference the resource dictionary to Orchestra and everything else
    although I thought Orchestra is already aggressively loading / linking the /themes/generic.xaml from each app
    venom_aa
    @venomAA
    I always add it to the app.xaml.
    <Application x:Class="BonaPrimeERP.App"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
        <Application.Resources>
                <ResourceDictionary>
                    <ResourceDictionary.MergedDictionaries>
                     <ResourceDictionary Source="pack://application:,,,/Orchestra.Core;component/themes/Orchestra.generic.xaml" />
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Orange.xaml" />
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/FlatButton.xaml" />
                </ResourceDictionary.MergedDictionaries>
                </ResourceDictionary>
            </Application.Resources>
    </Application>
    advapiIT
    @advapiIT
    it worked
    thanks I 've avoided all the pain I had till now
    advapiIT
    @advapiIT
    excuse me, wht Orc.CrashReporting is not avaiable anymore on gith?
    ok I've seen it's been archivied and no longer mantained
    advapiIT
    @advapiIT
    Excuse me ,how do I perform an action when the application (using Orchestra) is closed? is there a closing event?
    Geert van Horrik
    @GeertvanHorrik
    I think we have something for that, but it might be in our private libs on top of Orc.*
    I don't believe there is an event you can hook into, except for CloseViewModel on MainViewModel
    advapiIT
    @advapiIT
    For the question above I've resolved extending the IApplicationStartupService and putting a Func that's invoked optionally at the exit
    now I was looking for an elegant way to catch the exception and I've found https://github.com/WildGums/Orc.CrashReporting
    but as I've seen it's not supported anymore
    Geert van Horrik
    @GeertvanHorrik
    I think ORchestra has a CrashHandler, but not sure whether it's for internal use only
    advapiIT
    @advapiIT
    excuse me, is there a reason why the there's a double Orchestra.Core here?
    Geert van Horrik
    @GeertvanHorrik
    the first folder is a group
    for core, it doesn't make much sense
    but for the shell it does
    advapiIT
    @advapiIT
    yes that's ok! thxs
    samirem
    @samirem
    Is it possible to step through the source of Orchestra, such as described in the following link?
    http://catelproject.com/2014/04/29/stepping-catel-code-debugging/
    Geert van Horrik
    @GeertvanHorrik
    yes, should be, all Catel & Orc.* and Orchestra libs use the same tools
    samirem
    @samirem
    Great! I don't get it to work atm but I gotta dig a bit into it
    Geert van Horrik
    @GeertvanHorrik
    ok, let us know if it doesn't work, then we'll look into it on our side
    samirem
    @samirem
    Will do, thanks!
    samirem
    @samirem
    @GeertvanHorrik I'm receiving the following message in my Debug Console.. any idea what I might be doing wrong? Have enabled source server support and tried launching VS2017 in Admin mode.
    SRCSRV: The module '{.....}\output\Debug\Catel.Core.dll' does not contain source server information.
    Geert van Horrik
    @GeertvanHorrik
    is there a pdb file next to that file?
    samirem
    @samirem
    Yes
    Geert van Horrik
    @GeertvanHorrik
    What version of Catel?
    samirem
    @samirem
    5.1.0
    Geert van Horrik
    @GeertvanHorrik
    hmmm, can you try 5.2 just to check whether that has a different behavior?
    samirem
    @samirem
    Sure, give me a minute