Trouble Compiling 16.4

This forum is for programmers who have questions about the source code.

Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 2:38 am

Hi, I am using Visual Studio 2015. I believe I have followed all the instructions but when I run the app that is published it crashes immediately on the splash screen.

What could I be doing wrong?

There are a few errors here but I am not sure which one is causing the issue. I am running Windows Server 2016.

Severity Code Description Project File Line Suppression State
Warning The referenced project '..\..\..\Shared Projects Subversion\EHR\EHR_16_4\EHR\xEHR.csproj' does not exist. OpenDental
Severity Code Description Project File Line Suppression State
Warning Item 'Microsoft.Net.Framework.2.0' could not be located in 'E:\vstudio\SDK\Bootstrapper\'. OpenDental
Severity Code Description Project File Line Suppression State
Warning The referenced component 'xEHR' could not be found. OpenDental


Can any of those warnings be causing the crash?

Thanks
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby cmcgehee » Wed Jun 14, 2017 7:49 am

The first and the third warnings are not what's causing the crash. They are from a reference to a project that is in our internal repository, but the main program will compile fine without it. The second warning I haven't seen before, but maybe you need to make some adjustments in Visual Studio? https://social.msdn.microsoft.com/Forums/en-US/b768f558-5e7d-403c-8def-41c9b520f6b9/microsoftnetframework20-could-not-be-located-in?forum=winformssetup

Are you able to tell on what lines of code the crash is happening?
Chris McGehee
Open Dental Software
http://www.opendental.com
User avatar
cmcgehee
 
Posts: 221
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 8:48 am

Thanks for the reply, I do get this error while debugging.

Managed Debugging Assistant 'LoaderLock' occurred
HResult=0x00000000
Message=**Managed Debugging Assistant 'LoaderLock' :** 'DLL 'C:\Users\Administrator\Desktop\opendental3\OpenDental\bin\Release\Microsoft.DirectX.Direct3D.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.'
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 8:51 am

actually I went back and removed the loaderlock thing and now hthat doesn't happen anymore. But it still crashes when I publish. Are there settings I should be doing when publishing?

It all runs great in debug mode.
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 8:53 am

When i click debug on the crash page it shoes this in VS 2015:

An unhandled exception of type 'System.DllNotFoundException' occurred in NHunspell.dll

Additional information: Hunspell Intel 32Bit DLL not found: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e8982ec67ca4b\Hunspellx86.dll
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby cmcgehee » Wed Jun 14, 2017 10:22 am

You were correct to uncheck "Break when this exception is thrown" for LoaderLock. To fix the other error, copy the file Hunspellx86.dll from the Required dlls folder and paste it into the OpenDental/bin/Debug folder. While you're at it, you will probably want to past the same file into OpenDental/bin/Release folder.
Chris McGehee
Open Dental Software
http://www.opendental.com
User avatar
cmcgehee
 
Posts: 221
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 11:05 am

I did all that and it's fine. But when I publish it doesn't work after. Crashes at open dental splash.

The file install is only about 45mb. I think I'm publishing incorrectly. Any tips?
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby jsalmon » Wed Jun 14, 2017 11:48 am

Your publishing is probably missing dll dependencies. What does your Windows OS Event Viewer show as the error when it crashes?
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com
User avatar
jsalmon
 
Posts: 1261
Joined: Tue Nov 30, 2010 1:33 pm

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 12:33 pm

I have this error from the event:

Application: OpenDental.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
at NHunspell.MarshalHunspellDll.LoadNativeHunspellDll()
at NHunspell.Hunspell.HunspellInit(Byte[], Byte[], System.String)
at NHunspell.Hunspell.Load(Byte[], Byte[], System.String)
at OpenDental.ODtextBox..ctor()
at OpenDental.ContrAccount.InitializeComponent()
at OpenDental.ContrAccount..ctor()
at OpenDental.FormOpenDental..ctor(System.String[])
at OpenDental.ProgramEntry.Main(System.String[])
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 12:35 pm

Also this one:

Log Name: Application
Source: Application Error
Date: 6/14/2017 12:26:08 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: WIN-MO0R2JBQKCF
Description:
Faulting application name: OpenDental.exe, version: 16.4.46.0, time stamp: 0x59418d63
Faulting module name: KERNELBASE.dll, version: 10.0.14393.1358, time stamp: 0x59327ae2
Exception code: 0xe0434352
Fault offset: 0x000da9f2
Faulting process id: 0x5fc
Faulting application start time: 0x01d2e54412c4b928
Faulting application path: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e898af060484b\OpenDental.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: f2e1ad6f-1926-4953-9ee6-76c27a024fe9
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2017-06-14T19:26:08.928668400Z" />
<EventRecordID>5381</EventRecordID>
<Channel>Application</Channel>
<Computer>WIN-MO0R2JBQKCF</Computer>
<Security />
</System>
<EventData>
<Data>OpenDental.exe</Data>
<Data>16.4.46.0</Data>
<Data>59418d63</Data>
<Data>KERNELBASE.dll</Data>
<Data>10.0.14393.1358</Data>
<Data>59327ae2</Data>
<Data>e0434352</Data>
<Data>000da9f2</Data>
<Data>5fc</Data>
<Data>01d2e54412c4b928</Data>
<Data>C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6d0e898af060484b\OpenDental.exe</Data>
<Data>C:\Windows\System32\KERNELBASE.dll</Data>
<Data>f2e1ad6f-1926-4953-9ee6-76c27a024fe9</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 12:51 pm

when i run debug after the crash:
System.DllNotFoundException was unhandled
HResult=-2146233052
Message=Hunspell Intel 32Bit DLL not found: C:\Users\Administrator\AppData\Local\Apps\2.0\N7DNBCHP.NHN\EJ77POW1.QE1\open..tion_9a42886e700af2e1_0001.0000_6e0ca8f9e7f03c8b\Hunspellx86.dll
Source=NHunspell
TypeName=""
StackTrace:
at NHunspell.MarshalHunspellDll.LoadNativeHunspellDll()
at NHunspell.Hunspell.HunspellInit(Byte[] affixData, Byte[] dictionaryData, String key)
at NHunspell.Hunspell.Load(Byte[] affixFileData, Byte[] dictionaryFileData, String key)
at NHunspell.Hunspell..ctor(Byte[] affixFileData, Byte[] dictionaryFileData)
at OpenDental.ODtextBox..ctor()
at OpenDental.ContrAccount.InitializeComponent()
at OpenDental.ContrAccount..ctor()
at OpenDental.FormOpenDental..ctor(String[] cla)
at OpenDental.ProgramEntry.Main(String[] args)
InnerException:
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby adearmondsattler » Wed Jun 14, 2017 12:56 pm

You need to move the Hunspellx64.dll and Hunspellx86.dll from the Required dlls folder into the bin folder of the debug environment for the version you are running.
“If debugging is the process of removing bugs, then programming must be the process of putting them in.”

Allen DeArmond-Sattler
Open Dental Software
http://www.opendental.com
User avatar
adearmondsattler
 
Posts: 131
Joined: Fri Aug 23, 2013 11:29 am

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 12:59 pm

i have done that. still getting the error
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am

Re: Trouble Compiling 16.4

Postby jajayao » Wed Jun 14, 2017 1:10 pm

ok, so it works now. i had to copy the 2 dll manually into the published folder. thanks for all the help
jajayao
 
Posts: 10
Joined: Wed Jun 14, 2017 2:34 am


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest