mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-19 19:57:02 +08:00
Tried to load and use entry point for memory mgmt.
This commit is contained in:
@@ -15,16 +15,10 @@ namespace WinForm32
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
InitTwain();
|
||||
}
|
||||
|
||||
private void InitTwain()
|
||||
{
|
||||
TwainPlatform.PreferLegacyDSM = true;
|
||||
|
||||
twain = new TwainSession(Assembly.GetExecutingAssembly().Location);
|
||||
twain.StateChanged += Twain_StateChanged;
|
||||
|
||||
}
|
||||
|
||||
private static void Twain_StateChanged(TwainSession session, TWAINWorkingGroup.STATE state)
|
||||
|
||||
Reference in New Issue
Block a user