What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

DataGridView Problems Windows 8.1

LordManzana

New Member
Joined
May 2, 2015
Messages
207
Reaction score
0
Hello!

I'm currently working on plugin wich use DataGridView.

When I run my plugin to test it on Windows 7, launch perfectly. But when I try to launch it on Windows 8.1, crash until launch.

Then, I removed DGV from my form and works perfectly.
Added it on my form without columns, just drag&drop DGV to form and works perfectly.
Added 4 columns setting only "name, with and readOnly" and then, crahed on launch (remember, on windows 7, works perfectly).

Anyone got this problem? Someone know how to solve?

Thanks!
 
Hi, try to set RowHeaderVisible False
 
I am having a similar problem. I am using WPF with a DataGrid. I am connecting using ODBC and an Access database. I have an SQL 2014 server but I went with a portable Access database instead.

I can compile and when I run the plug in, the screen does not display any data. It just sits there frozen.

I used the example WPF Plugin that OUT put on the site and appended to it. My guess is that is has something to do with the CustomControl1.cs call for the form.

If I build it without using the WPF Plugin, it works fine.

Any help would be greatly appreciated.





Code:
public class CustomControl1 : Core
    {
        Window1 mainForm { get; set; }
        private Thread formThread;     
        static CustomControl1()
        {
            //DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomControl1), new FrameworkPropertyMetadata(typeof(CustomControl1)));
        }

        public static string GetPluginAuthor()
        {
            return "Plugin Author";
        }

        public static string GetPluginVersion()
        {
            return "1.0.0.0";
        }

        public static string GetPluginDescription()
        {
            return "My plugin description";
        }

        private void RunForm()
        {
            try
            {
                mainForm = new Window1();
                mainForm.Show();
                System.Windows.Threading.Dispatcher.Run();
                
            }
            catch (Exception error)
            {
                Console.WriteLine(error.ToString());
            }
        }

        //Call on plugin start
        public void PluginRun()
        {
            formThread = new Thread(RunForm);
            formThread.IsBackground = true;
            formThread.SetApartmentState(ApartmentState.STA);
            formThread.Start();
            while (true)
                Thread.Sleep(100);
        }
        //Call on plugin stop
        public void PluginStop()
        {
            try
            {
                if (mainForm != null)
                {
                    mainForm.Dispatcher.Invoke(new Action(() => mainForm.Close()));
                }
            }
            catch
            { }
            try
            {
                formThread.Abort();
                formThread.Join();
            }
            catch (Exception error)
            {
                Console.WriteLine("Error on stopping questing Thread!");
            }
        }
    }
}





I can now display the headers but I always end up with this error when I run a query against the database table:


Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: Updater.exe
Problem Signature 02: 1.5.5.5
Problem Signature 03: 55cc4113
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.30319.34209
Problem Signature 06: 534894cc
Problem Signature 07: 27ab
Problem Signature 08: 0
Problem Signature 09: System.AccessViolationException
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
 
Last edited:
I think I'm having some sort of similar datagridview issue. I did the headerrow trick and that fixed my initial crashes I was having. But I'm still getting crashes when interacting constantly with a dgv. For example I'm selecting multiple rows and deleting rows and such and eventually Updater.exe just crashes. I tried to look at the log file but it seemed to just be a garbled mess. Any thoughts on how I can debug?
 
Back
Top