We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Warning messages

Thread ID:

Created:

Updated:

Platform:

Replies:

10759 Feb 11,2004 05:50 PM UTC Feb 12,2004 06:15 PM UTC WinForms 6
loading
Tags: GridControl
Patrick
Asked On February 11, 2004 05:50 PM UTC

I am using beta 2.0.2.1. I am following the CellButtons example to do drag & drop and I run into a problem when I use TlbExp.exe to export a TLB for a C++ object to import the type library and call methods in the .NET control. I am able to import the tlb before I added the DragButton.cs sample code to my control. After I added the sample code, I am unable to import the tlb any more. Here is the warning message. ------------------------------------------------- Build complete -- 0 errors, 0 warnings Building satellite assemblies... Performing Post-Build Event... Microsoft (R) .NET Framework Assembly to Type Library Converter 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Type library exporter warning processing ''Syncfusion.Windows.Forms.INeedKeyboardMessages.KeyboardMessage(m), Syncfusion.Shared''. Warning: Non COM visible value type System.Windows.Forms.Message is being referenced either from the type currently being exported or from one of its base types. Type library exporter warning processing ''Syncfusion.Windows.Forms.INeedMouseMoveMessages.MouseMessage(m), Syncfusion.Shared''. Warning: Non COM visible value type System.Windows.Forms.Message is being referenced either from the type currently being exported or from one of its base types. Type library exporter warning processing ''Syncfusion.Windows.Forms.Tools.BorderColors.clrLeft, Syncfusion.Shared''. Warning: The public struct contains one or more non-public fields. Type library exporter warning processing ''Syncfusion.Win32.RegistryEntry.registrySubKey, Syncfusion.Shared''. Warning: The public struct contains one or more non-public fields. Type library exporter warning processing ''Syncfusion.Win32.RegistryEntry.registryKey, Syncfusion.Shared''. Warning: Reference types in structs need [MarshalAs(UnmanagedType.Interface)]. Type library exporter warning processing ''Syncfusion.Windows.Forms.Tools.Insets.left, Syncfusion.Shared''. Warning: The public struct contains one or more non-public fields. Type library exporter warning processing ''Syncfusion.Windows.Forms.IScrollBarFrame.IsActive(sbType), Syncfusion.Shared''. Warning: Non COM visible value type System.Windows.Forms.ScrollBars is being referenced either from the type currently being exported or from one of its base types. Type library exporter warning processing ''Syncfusion.Windows.Forms.Grid.GridCellPos._rowNumber, Syncfusion.Grid''. Warning: The public struct contains one or more non-public fields. Assembly exported to D:\snapshots\pchuong.joule.ss\go-ccs\Joule\RegisterWindowModule\RegisterWindowBin\Debug\RegisterWindowUserCtrl.tlb

Administrator [Syncfusion]
Replied On February 11, 2004 10:02 PM UTC

Before you added the CellButtons code, were you also using 2.0.2.1? The cellbuttons code adds a bitmap as an embedded resource. Maybe this is causing the tool to fail. Normally, I would think you could just ignore such warnings as the warnings are about structures intended only for internal use. We only had to make the structs public because the tools dll needs to access them in shared. But outsiders should not use those interfaces.

Patrick
Replied On February 12, 2004 02:18 PM UTC

I was using the same version. I am able to work around this problem by pulling out the interface into a separate DLL. --------------- After I do that I ran into another problem. I basically copy & pasted the DragButton code into my component. I have a virtual grid, so I set the CellType to "DragButton" in the QueryCellInfo handler. When I drag the button in the grid, than there is an exception raised in the grid.dll. This exception is caused on line Grid.Model[_mouseOverRange.Top, _mouseOverRange.Left].Interior = interiorBrush; in the DragButton.cs file. Is this a bug in the grid.dll or it is a client code bug?

Administrator [Syncfusion]
Replied On February 12, 2004 03:35 PM UTC

I do not know. To answer the question will probably require using a debug build of our libraries, getting the callstack at the exception and checking the values of the variables involved, where and how any bad values were set. Can you reproduce the probelm in the CellButtons sample? If the row and column has some weird values, are you using multithreads for anything? If so, are you protecting calls into the grid with grid.InvokeRequired checks? If you can post a sample showing the problem, we can try to spot something here.

Patrick
Replied On February 12, 2004 04:38 PM UTC

I can''t reproduce the problem with the sample. I am not using multithreads. I have attached the callstack. I am affraid that I can''t post my code sample on this forum due to the company policy. We can try to work this out in a secure environment. I hope the callstack will lead you to finding the issue. Callstack_2801.zip

Administrator [Syncfusion]
Replied On February 12, 2004 05:54 PM UTC

Line 91 in the CellButtons code I have currently is a commented out // Set_mouseDown(ht, true); What is it in your code?

Patrick
Replied On February 12, 2004 06:15 PM UTC

me too.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;