投稿者:ten 投稿日:2023/02/14(Tue) 14:36:49 No.2253
最近プロデル2.0系にバージョンアップをしました(それまでは、1.8系統を使っていました)。デザイナがパワーアップして便利になりました。ありがとうございます。
ただ、画像描画の系統を使うと、エラーが起こり(プログラムを実行すると添付画像のようになります)、コードを書いていたファイルは自動的に閉じて、中身のない無題が開かれた状態になります。
Windows10で使用しています。
エラーメッセージは下記です(終了ボタンを押すと、更にメッセージが出ます)
//////
プロデル 2.0.1176
メモリが不足しています。
場所 System.Drawing.TextureBrush..ctor(Image image, WrapMode wrapMode)
場所 System.Windows.Forms.ControlPaint.DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft)
場所 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
場所 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
場所 System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
場所 System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
場所 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
場所 System.Windows.Forms.Control.WmPaint(Message& m)
場所 System.Windows.Forms.Control.WndProc(Message& m)
場所 System.Windows.Forms.UserControl.WndProc(Message& m)
場所 Produire.TouchableUserControl.WndProc(Message& m)
場所 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
----更に終了ボタンを押した後に出るエラーメッセージ
プロデル 2.0.1176
コレクションが変更されました。列挙操作は実行されない可能性があります。
場所 System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
場所 System.Windows.Forms.Application.ExitInternal()
場所 System.Windows.Forms.Application.Exit(CancelEventArgs e)
場所 Produire.Designer.Program.1(Object 0, ThreadExceptionEventArgs 1)
場所 System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
場所 System.Windows.Forms.Control.WndProcException(Exception e)
場所 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-----以上
投稿者:ゆうと 投稿日:2023/02/19(Sun) 22:33:57 No.2256
こんにちは、いつもありがとうございます。
> 画像描画の系統を使うと、エラーが起こり
キャンバス、ピクチャーなど思い当たる機能を一通り確認しましたが、エラーを再現できなかったです。
「画像描画の系統」というのは具体的には何の部品でしょうか。
再現できないと直せませんので教えてください。
投稿者:ten 投稿日:2023/02/20(Mon) 13:41:42 No.2257
いつもお世話になっております。そして、大変、大変、失礼致しました。絞り込みが足りないなあ、と思いつつ、ちょっと書類作業に追われていて、遅くなってしまいました。
試したところ、キャンバスの背景に画像を設定する時に発生します。そもそもの私の書き方が良くないのであれば、申し訳ありません。1.8系を使っていた頃は、動いていたので・・・
下記コードで発生します。「画像を描く」の方は、大丈夫でした
-----------------
枠背景という画像(「./image/stampbase.gif」)を作る
窓というウィンドウを作る
窓にキャンバス1というキャンバスを作る
そのドッキング方向を全体に変える
その背景画像を枠背景に変える
その倍率は、1
窓を表示する
待機する
----------------
投稿者:ゆうと 投稿日:2023/03/02(Thu) 22:15:42 No.2264
こんにちは
再現プログラムありがとうございます。
再現できました。
ご報告ありがとうございます。
- WebForum -